/* FileOS website: board 60 on the design canvas, night glass. */

:root {
  --bg: #0C0B14;
  --ink: #EEECF7;
  --ink-2: #DDD9EE;
  --muted: #A6A2BC;
  --faint: #8C88A3;
  --soft: #B9B5CE;
  --line: rgba(255, 255, 255, 0.07);
  --brand: #6B56DC;
  --brand-light: #A897F3;
  --brand-pale: #C9BEFF;
  --error: #FF9B8F;
  --glass: linear-gradient(170deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018));
  --glass-edge: rgba(255, 255, 255, 0.09);
  --display: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --topbar-h: 86px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--bg); scroll-padding-top: calc(var(--topbar-h) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Glows, flying files and blocks waiting to slide in reach past the edges; clip, not hidden, so sticky still works. */
main { overflow-x: clip; }

a { color: var(--brand-pale); }
a:hover { color: #FFFFFF; }
img, svg { display: block; }
p, h1, h2, h3, ul { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 10px; background: var(--brand); color: #FFFFFF; text-decoration: none;
}
.skip:focus { top: 12px; }

kbd {
  font: inherit; font-weight: 600; font-size: 13px; padding: 2px 8px; border-radius: 7px; white-space: nowrap;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); color: #FFFFFF;
}

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; }
.narrow { max-width: 1000px; }
.center { text-align: center; }
.muted { color: var(--muted); }

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 14px 30px rgba(0, 0, 0, 0.3);
}

/* ---- Type ---- */

.h2 {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.04;
  font-size: clamp(34px, 4.4vw, 52px); text-wrap: balance;
}
.h2-small { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.08; }
.h2-mid { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.08; }
.h2-big { font-size: clamp(36px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.035em; }
.h3 { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; }
.lead { color: var(--muted); font-size: 18px; text-wrap: pretty; }
/* The pain a section fixes, said first and a little louder (landing page review, LP-10 to LP-15). */
.lead-pain { color: var(--ink); font-weight: 500; }
.lead code, .checks code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; padding: 1px 6px; border-radius: 6px; background: rgba(127, 120, 160, 0.18); }
.checks strong { color: var(--ink); font-weight: 600; }
/* A real result from the app, in the user's words (review LP-11). */
.proof { margin: 0; font-style: italic; color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--tint);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--brand-light)); }

.fineprint { margin-top: 14px; font-size: 14px; color: var(--faint); text-align: center; text-wrap: balance; }
.fineprint.left { text-align: left; margin-top: 0; font-size: 13px; }

/* ---- Buttons ---- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px;
  border: 0; border-radius: 999px; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none;
  cursor: pointer; white-space: nowrap; transition: transform 0.2s var(--ease-out), background-color 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--brand); color: #FFFFFF; box-shadow: 0 8px 24px rgba(107, 86, 220, 0.45); }
.btn-primary:hover { background: #7A64E6; color: #FFFFFF; }
.btn-ghost {
  min-height: 44px; padding: 0 20px; color: #FFFFFF;
  border: 1px solid rgba(168, 151, 243, 0.5); background: rgba(107, 86, 220, 0.16);
}
.btn-ghost:hover { background: rgba(107, 86, 220, 0.3); }
.btn-big { min-height: 52px; padding: 0 28px; font-size: 16px; }

/* ---- Pre-launch and launch ---- */

[hidden] { display: none !important; }

/* ---- Top bar ---- */

/* As the reference's (2026-10-16): a floating rounded bar, 16 px from the top, frosted; it slides away while you
   scroll down and comes back as soon as you scroll up (main.js). Only the bar takes clicks, not the gap around it. */
/* More apps from us: a slim strip above the top bar, scrolling away with the page. */
.more-apps {
  position: relative; z-index: 21; display: flex; align-items: center; justify-content: flex-start; gap: 8px 22px; flex-wrap: wrap;
  max-width: 1212px; margin: 12px auto 0; padding: 7px 18px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
}
.more-apps-label { color: var(--faint); }
.more-apps a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.more-apps a b { font-weight: 600; }
.more-apps a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.more-apps-icon { width: 20px; height: 20px; border-radius: 5px; } /* Shoji's app icon */
.more-apps-what { color: var(--faint); font-size: 13px; }
.more-apps-out { width: 13px; height: 13px; fill: none; stroke: var(--faint); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.more-apps a:hover .more-apps-out { transform: translate(1px, -1px); stroke: var(--ink); }
@media (max-width: 600px) { .more-apps { margin: 10px 16px 0; font-size: 13px; } .more-apps-what { display: none; } }
.topbar {
  position: sticky; top: 0; z-index: 20; padding: 16px 16px 0; pointer-events: none;
  transition: transform 0.5s var(--ease-out);
}
.topbar.is-hidden { transform: translateY(calc(-100% - 12px)); }
.topbar:focus-within { transform: none; }
.topbar-inner {
  pointer-events: auto; max-width: 1212px; margin: 0 auto; display: flex; align-items: center; gap: 12px 32px; min-height: 48px;
  padding: 12px 12px 12px 20px; border-radius: 24px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.topbar.is-scrolled .topbar-inner {
  background: rgba(20, 18, 32, 0.8); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: #FFFFFF;
  font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.01em;
}
.brand:hover { color: #FFFFFF; }
.brand-icon { display: block; width: 36px; height: 36px; margin: -2px -2px -2px -3px; } /* the app icon (ISSUE-043); its tile has a 10% margin */
.topbar-links { display: flex; gap: 4px 26px; font-size: 15px; }
.topbar-links a { color: var(--soft); text-decoration: none; transition: color 0.2s; }
.topbar-links a:hover { color: #FFFFFF; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  border: 1px solid var(--line); background: transparent; color: var(--soft); cursor: pointer; transition: background-color 0.2s, color 0.2s;
}
.theme-toggle:hover { background: rgba(127, 120, 160, 0.14); color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="light"] .icon-sun, :root:not([data-theme="light"]) .icon-moon { display: none; }

/* A screen drawn in both themes shows the one that matches the page. */
[data-theme="light"] .only-dark, :root:not([data-theme="light"]) .only-light { display: none !important; }

/* ---- Hero ---- */

/* --folder-rgb: the greeting folder's colour right now, set by main.js; the pill follows it (ISSUE-038). No glow
   behind the folder: it clashed with the purple stage below (the user, 2026-10-16). */
.hero { --folder-rgb: 107, 86, 220; position: relative; isolation: isolate; padding: 8px 16px 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-art {
  position: relative; width: 600px; max-width: 100%; height: 250px;
  /* Files rise from below the folder: hidden outside this box, faded at its bottom edge, so they never cross the text. */
  -webkit-mask-image: linear-gradient(180deg, #000 90%, transparent 100%); mask-image: linear-gradient(180deg, #000 90%, transparent 100%);
}
.greet-static { position: absolute; left: 50%; top: 165px; margin: -77px 0 0 -88px; transform: scale(0.8); }
.js .greet-static { display: none; }

/* FileOS's welcome greeting (Views/WelcomeGreeting.swift), drawn by main.js. Everything is placed from the
   folder's centre, as in the app; the folder is 176 pt wide, its shape the app's 100 x 88 units. */
.greet { --greet-scale: 0.8; position: absolute; left: 50%; top: 165px; width: 0; height: 0; transform: scale(var(--greet-scale)); will-change: transform; }
.g-folder { position: absolute; left: -88px; top: -77.44px; width: 176px; height: 154.88px; transform-origin: 50% 100%; will-change: transform; }
.g-folder > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.g-pocket { position: absolute; inset: 0; }
.g-front {
  position: absolute; left: 7.04px; top: 58.08px; width: 161.92px; height: 93.28px; border-radius: 15.84px;
  border: 1px solid rgba(255, 255, 255, 0.5); transform-origin: 50% 100%;
  background: linear-gradient(149deg, var(--glass-1) 0%, var(--glass-2) 55%, var(--glass-3) 100%);
  backdrop-filter: blur(5.6px); -webkit-backdrop-filter: blur(5.6px);
}
/* The symbol on the glass, as the app draws it on a big folder (FolderIcon.swift): 20% of the folder's width, centred
   on the glass, white at 60% with a soft shadow. main.js shows one at a time. */
.g-symbols { position: absolute; left: 50%; top: 50%; width: 35.2px; height: 35.2px; margin: -17.6px 0 0 -17.6px; opacity: 0.6; filter: drop-shadow(0 1.1px 1.1px rgba(0, 0, 0, 0.2)); }
.g-symbols svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #FFFFFF; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.g-file { position: absolute; left: -28px; top: -35px; width: 56px; height: 70px; display: none; will-change: transform, opacity; }
.g-pocket .g-file { left: 60px; top: 42.44px; }
.g-file svg { width: 56px; height: 70px; filter: drop-shadow(0 7px 9px rgba(31, 20, 79, 0.22)); }
.g-file span {
  position: absolute; left: 50%; bottom: 9px; transform: translateX(-50%); padding: 2px 5px; border-radius: 4px;
  font-size: 11px; font-weight: 700; line-height: 1.2; color: #FFFFFF;
}

/* The pill: a slowly turning border in the greeting folder's colour, which it follows as the folder turns (the user,
   2026-10-16: no more rainbow), a faint tint of it inside, and a "live" dot. */
@property --sweep { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.badge {
  --badge-fill: #17141F; --badge-tint: 0.16;
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px 0 12px;
  border-radius: 999px; border: 1px solid transparent; font-size: 14px; color: #FFFFFF;
  background:
    linear-gradient(rgba(var(--folder-rgb), var(--badge-tint)), rgba(var(--folder-rgb), var(--badge-tint))) padding-box,
    linear-gradient(var(--badge-fill), var(--badge-fill)) padding-box,
    conic-gradient(from var(--sweep), rgba(var(--folder-rgb), 1), rgba(var(--folder-rgb), 0.3) 25%, rgba(var(--folder-rgb), 1) 50%,
      rgba(var(--folder-rgb), 0.3) 75%, rgba(var(--folder-rgb), 1)) border-box;
  box-shadow: 0 0 18px rgba(var(--folder-rgb), 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: badge-sweep 6s linear infinite;
}
@keyframes badge-sweep { to { --sweep: 360deg; } }
.badge strong { font-weight: 600; }
.badge-soon { color: #CFCBE2; }
.live {
  position: relative; width: 8px; height: 8px; border-radius: 50%; background: #5FD67F;
  box-shadow: 0 0 8px rgba(95, 214, 127, 0.8);
}
.live::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #5FD67F;
  animation: live 2s ease-out infinite;
}
@keyframes live { from { transform: scale(1); opacity: 0.8; } to { transform: scale(2.8); opacity: 0; } }
.hero-title {
  position: relative; margin-top: 18px; max-width: 760px; font-family: var(--display); font-weight: 600;
  font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance;
}
.hero-intro {
  position: relative; margin-top: 16px; max-width: 660px; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.4;
  color: #CFCBE2; text-wrap: balance;
}
.hero-pills { position: relative; margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hero-pills a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--ink-2);
  font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color 0.2s, border-color 0.2s;
}
.hero-pills a::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
.hero-pills a:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: #FFFFFF; }
.hero-join { position: relative; margin-top: 28px; width: 100%; max-width: 500px; }
@media (min-width: 761px) { .hero-join .fineprint { margin-inline: -120px; } }
/* The window's stage, after the reference's hero image (measured 2026-10-16, rebuilt in CSS in FileOS purple): a
   nearly full-width band of 56 px fluted stripes, each deep on its left and paler on its right. The colour is a dome:
   it starts just above the middle of the window and lower toward the sides, which stay paler; the bottom is vivid.
   The window sits in a frosted frame. The frame and window tilt and flatten on scroll; the band stays put. */
.hero-stage { --pleat: 56px; position: relative; width: 100%; max-width: 1180px; margin-top: 56px; padding-bottom: 88px; }
.hero-stage::before {
  /* Behind everything in the hero (which isolates its layers), so the text and sign-up stay on top. */
  content: ''; position: absolute; z-index: -1; left: 50%; top: -120px; bottom: 0; width: min(1376px, calc(100vw - 24px));
  transform: translateX(-50%); border-radius: 0 0 28px 28px; pointer-events: none;
  /* The flutes and the paler sides lean toward the page's own colour; the dome is a mask, eased so no line shows
     where it starts. (As three masks multiplied, Chrome drew a faint outline of the box.) */
  background:
    repeating-linear-gradient(90deg, transparent 0, color-mix(in srgb, var(--bg) 16%, transparent) var(--pleat)),
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 24%, transparent), transparent 20%, transparent 80%, color-mix(in srgb, var(--bg) 24%, transparent)),
    linear-gradient(180deg, #6A50F2, #5333E6);
  -webkit-mask-image: radial-gradient(110% 100% at 50% 100%, #000 67%, rgba(0, 0, 0, 0.9) 73%, rgba(0, 0, 0, 0.6) 79%, rgba(0, 0, 0, 0.25) 85%, rgba(0, 0, 0, 0.08) 89%, transparent 92%);
  mask-image: radial-gradient(110% 100% at 50% 100%, #000 67%, rgba(0, 0, 0, 0.9) 73%, rgba(0, 0, 0, 0.6) 79%, rgba(0, 0, 0, 0.25) 85%, rgba(0, 0, 0, 0.08) 89%, transparent 92%);
}
.hero-bezel {
  padding: 14px; border-radius: 30px; will-change: transform;
  background: radial-gradient(96% 96% at 50% 4%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 34px 80px rgba(30, 10, 110, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero-shot { border-radius: 17px; box-shadow: 0 0 0 1px rgba(24, 12, 90, 0.16); }

/* ---- Words that appear one by one (the reference's blur-in) ---- */

.js [data-words] .word {
  display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(10px);
  transition: opacity 0.7s var(--ease-out), filter 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--wd, 0ms);
}
.js [data-words].is-in .word { opacity: 1; filter: blur(0); transform: none; }

/* ---- Screens: the design boards, rendered to HTML and scaled to their frame by main.js ---- */

.shot { position: relative; overflow: hidden; background: #0F1014; }
.screen-inner { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; user-select: none; text-align: left; }
.screen-inner button { font: inherit; cursor: default; }
.js .shot:not(.is-sized) .screen-inner { visibility: hidden; }

.split-shot, .wide-shot { border-radius: 14px; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1); }

/* ---- Sections ---- */

.section { padding: 150px 16px 0; }
.section-tight { padding-top: 96px; }
.center-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.center-head .lead { max-width: 600px; text-wrap: balance; }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.head-row .h2 { max-width: 640px; }
.head-row p { max-width: 380px; }

/* Six things FileOS fixes (review LP-09): the outcome as the title, the feature as a small label above it. Three by
   two, then two across; the titles are a few words long, so they need the width. */
.reasons { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .reasons { gap: 10px; } .reasons .reason-name { font-size: 17px; } }
.reason-label { margin-top: 8px; margin-bottom: -6px; font-size: 13px; font-weight: 600; color: var(--soft); }
.reason {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 200px; padding: 24px 22px;
  border-radius: 20px; text-decoration: none; color: var(--ink);
}
.reason:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.18); }
.reason-name { margin-top: 8px; font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.reason-line { font-size: 14px; color: var(--muted); }

/* The app's glass folder (Views/FolderIcon.swift): every folder on the page uses the shared drawing build.mjs adds
   at the top of the page (ISSUE-055); its symbol, when it has one, is .af-mark. */
.af { overflow: visible; }
.af use { stroke: none; }
.af-mark { fill: none; stroke: #FFFFFF; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }
.af-mark.af-bold { opacity: 0.95; }
.rfolder { flex: none; width: 60px; height: 52.8px; }

.split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.split-reverse { flex-wrap: wrap-reverse; }
.split-end { align-items: flex-end; gap: 24px 48px; }
.split-text { flex: 1 1 400px; display: flex; flex-direction: column; gap: 18px; }
.split > .split-text .h2 { font-size: clamp(32px, 3.6vw, 46px); }
.split-end .split-text { flex-basis: 460px; }
.split-shot { flex: 999 1 600px; min-width: 0; }
.wide-shot { margin-top: 48px; }

.checks { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; color: var(--ink-2); }
.split-end .checks { flex: 1 1 420px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px;
  background: var(--check, var(--brand-light));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.5 3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.5 3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.checks-blue { --check: #8FB8F0; }
.checks-teal { --check: #8CCDDC; }
.checks-amber { --check: #F4CB94; }

.keys { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 4px; font-size: 14px; color: #CFCBE2; }
.keys span { display: inline-flex; align-items: center; gap: 7px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; font-size: 14px; }
.chip-safe { background: rgba(48, 209, 88, 0.1); border: 1px solid rgba(48, 209, 88, 0.32); color: #A8EDBD; }
.chip-call { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.34); color: #F8CB7A; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend .dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-safe { background: #5FD67F; }
.dot-call { background: #F2A54A; }

/* Design */
.bento { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 18px; }
.bento-card { display: flex; flex-direction: column; gap: 10px; padding: 30px; border-radius: 24px; overflow: hidden; box-shadow: none; }
.bento-wide { grid-column: 1 / -1; padding-bottom: 0; }
.bento-wide .muted { max-width: 640px; }
.bento-shot { margin-top: 18px; border-radius: 12px 12px 0 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); }
.folder-cards { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fcard {
  display: flex; flex-direction: column; align-items: center; height: 186px; padding: 0 8px; border-radius: 16px; font-size: 13px;
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 10px 26px rgba(0, 0, 0, 0.32);
}
.fcard-folder { flex: none; width: 60px; height: 52.8px; margin-top: auto; } /* with the footer's auto margin: folder and name centred above it */
.fcard strong { margin-top: 12px; max-width: 100%; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcard small {
  margin-top: auto; width: 100%; padding: 9px 0 12px; border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center; font-size: 11px; color: #8E8E95; font-variant-numeric: tabular-nums;
}
.tree {
  margin-top: 18px; padding: 14px; border-radius: 14px; background: #1F1F23; border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: #EDEDF0;
}
.tree-path { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 6px 10px; color: #A1A1A8; }
.tree-path i { font-style: normal; color: #6E6E75; }
.tree-row { display: flex; align-items: center; gap: 8px; min-height: 28px; padding: 0 6px; }
.tree-row.in1 { padding-left: 26px; }
.tree-row b {
  width: 10px; height: 10px; flex: none; border: solid #8E8E95; border-width: 0 2px 2px 0; transform: rotate(-45deg) scale(0.7);
}
.tree-row.open b { transform: rotate(45deg) scale(0.7); }
.tree-row.leaf b { visibility: hidden; }
.tree-row em { margin-left: auto; font-style: normal; color: #8E8E95; font-variant-numeric: tabular-nums; }
.mini-folder { flex: none; width: 18px; height: 15.84px; }
.tree-more { padding: 8px 6px 0; color: #8E8E95; }

/* Developers */
.console {
  margin-top: 6px; padding: 16px 18px; border-radius: 14px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 14px; line-height: 1.9;
}
.console p { display: grid; grid-template-columns: 8.5em 1fr; gap: 0 14px; }
.console code { font: inherit; color: #F4CB94; }
.console span { color: var(--faint); }
.dev-cards { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.dev-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 20px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.dev-card .muted { font-size: 15px; text-wrap: pretty; }
.dev-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 17px; }

.marquee {
  margin-top: 40px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 48px; padding-right: 48px; }
.marquee li { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: rgba(238, 236, 247, 0.38); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Compare */
/* Scrolls sideways on a phone, never up and down: rows rising into view stuck out below, and the wheel scrolled the
   table instead of the page (ISSUE-044). */
.compare { margin-top: 44px; overflow-x: auto; overflow-y: hidden; border-radius: 22px; box-shadow: none; background: linear-gradient(170deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)); }
.compare table { width: 100%; min-width: 640px; border-collapse: collapse; text-align: left; font-size: 15px; }
.compare th, .compare td { padding: 18px 22px; vertical-align: top; }
.compare thead th { font-weight: 600; color: var(--soft); }
.compare thead th:first-child { width: 30%; }
.compare thead th.us { color: #FFFFFF; background: rgba(107, 86, 220, 0.16); }
.compare thead th { vertical-align: middle; }
.compare-app { display: inline-flex; align-items: center; gap: 10px; }
.compare-app img { width: 32px; height: 32px; margin: -3px -2px -3px -3px; } /* the app icon; its tile has a 10% margin */
/* Finder: a plain folder mark, not Apple's icon (Apple's artwork and trademark aren't ours to use). */
.compare-finder { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.compare-finder svg { width: 15px; height: 15px; fill: none; stroke: var(--soft); stroke-width: 1.4; stroke-linejoin: round; }
.compare tbody tr { border-top: 1px solid var(--line); }
.compare tbody th { font-weight: 600; color: var(--ink); }
.compare tbody td { color: #9A96B0; }
.compare tbody td.us { color: var(--ink); background: rgba(107, 86, 220, 0.1); }
.compare td { position: relative; padding-left: 48px; }
.compare td::before { content: ''; position: absolute; left: 22px; top: 25px; width: 14px; height: 2px; border-radius: 1px; background: #6E6A85; }
.compare td.us::before {
  top: 21px; width: 16px; height: 16px; border-radius: 0; background: var(--brand-light);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.5 3 3 7-7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.5 3 3 7-7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.compare + .fineprint { margin-top: 16px; font-size: 13px; }
/* A sign-up right under the comparison (review LP-16): most visitors never scroll as far as pricing. */
.compare-join { margin: 44px auto 0; max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.compare-join .signup { width: 100%; }
.compare-join-line { margin: 0; font-size: 18px; color: var(--ink-2); }
.compare-join-line strong { color: var(--ink); }

/* Keyboard */
.keycaps { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.keycap-card { display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: 20px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); color: var(--ink-2); }
.caps { display: flex; flex-wrap: wrap; gap: 6px; }
.caps kbd {
  min-width: 46px; height: 46px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px; font-size: 18px; background: linear-gradient(180deg, #2A2738, #1E1C29);
  border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 3px 0 #08070D;
  transition: transform 0.15s, box-shadow 0.15s;
}
.keycap-card:hover kbd { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 #08070D; }

/* Everything else */
.more { display: flex; flex-wrap: wrap; gap: 48px; }
.more .h2 { flex: 1 1 300px; }
.more-list { flex: 999 1 600px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 0 32px; }
.more-list li { position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); }
.more-list li::before {
  content: ''; position: absolute; left: 0; top: 17px; width: 18px; height: 18px; background: var(--brand-light);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.5 3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.5 3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Promises: three cards side by side, stacked on a phone (review LP-17: stacking on scroll took about 1,150 px for
   three sentences). */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.promise {
  display: flex; flex-direction: column; gap: 12px; padding: 32px 28px; border-radius: 24px;
  background: linear-gradient(170deg, #1B1928, #13121D); border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 50px rgba(0, 0, 0, 0.3);
}
.promise-n { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--brand-light); }
.h2-promise { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.03em; }
.promise .lead { font-size: 16px; }
@media (max-width: 900px) { .promises { grid-template-columns: minmax(0, 1fr); } }

/* A note from the maker (review LP-18) */
.founder {
  max-width: 680px; margin: 0 auto; padding: 32px clamp(24px, 4vw, 40px); border-radius: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.founder blockquote { margin: 0; }
.founder blockquote p { margin: 0; font-family: var(--display); font-size: clamp(18px, 1.9vw, 21px); line-height: 1.45; letter-spacing: -0.015em; color: var(--ink); text-wrap: pretty; }
.founder figcaption { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--ink-2); }
.founder figcaption b { position: relative; display: table; font-weight: 600; color: var(--ink); } /* its own line, as wide as the name, for the bubble */
/* The maker's photo (the user, 2026-10-17), round, with a thin ring in the brand colour. */
.founder-photo { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--brand-light); }
/* A wave on hover (the user, 2026-10-17: "when hovered over the founders card there should be animation of hey
   gesture"): a "Hey!" bubble pops up beside the name and the hand waves twice; the photo tilts as if nodding. Without
   hover (a phone) it waves once as the card comes into view. */
.founder-photo { transition: transform 0.4s var(--ease-out); }
.founder:hover .founder-photo { transform: rotate(-6deg) scale(1.05); }
.founder-hey {
  position: absolute; left: calc(100% + 10px); top: 50%; margin-top: -14px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px 5px 7px;
  border-radius: 3px 12px 12px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--ink); background: #2A2640;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 8px 20px rgba(0, 0, 0, 0.35); pointer-events: none;
  opacity: 0; transform: translateX(-6px) scale(0.8); transform-origin: 0 50%; transition: opacity 0.25s, transform 0.4s var(--ease-out);
}
.founder-hand { display: inline-block; font-size: 15px; transform-origin: 70% 80%; }
.founder:hover .founder-hey { opacity: 1; transform: none; }
.founder:hover .founder-hand { animation: hey-wave 1.1s ease-in-out 0.15s 2; }
@keyframes hey-wave {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(16deg); }
  30% { transform: rotate(-8deg); }
  45% { transform: rotate(16deg); }
  60% { transform: rotate(-4deg); }
  75% { transform: rotate(10deg); }
}
@media (hover: none) {
  .founder.is-in .founder-hey { opacity: 1; transform: none; transition-delay: 0.5s; }
  .founder.is-in .founder-hand { animation: hey-wave 1.1s ease-in-out 0.8s 1; }
}
@media (prefers-reduced-motion: reduce) {
  .founder-hand, .founder:hover .founder-hand, .founder.is-in .founder-hand { animation: none; }
  .founder:hover .founder-photo { transform: none; }
}
.founder figcaption a { color: var(--brand-light); font-weight: 600; text-decoration: none; }
.founder figcaption a:hover { text-decoration: underline; }

/* Pricing */
.pricing { position: relative; display: flex; flex-direction: column; align-items: center; }
.pricing-glow {
  position: absolute; left: 50%; top: 230px; width: 760px; height: 520px; margin-left: -380px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(107, 86, 220, 0.2), rgba(107, 86, 220, 0)); pointer-events: none;
}
.pricing .center-head { position: relative; }
.pricing .lead { max-width: 520px; }
.price { font-family: var(--display); font-size: 68px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; color: #FFFFFF; }
/* The early access pass (option C, picked by the user on 2026-10-17): a ticket, the details on the left, the price
   and the sign-up on a stub you tear off. */
.pass-wrap { position: relative; width: 100%; max-width: 880px; margin-top: 52px; filter: drop-shadow(0 30px 50px rgba(40, 20, 120, 0.4)); }
.pass {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; border-radius: 28px; text-align: left;
  /* Two notches cut where the stub tears off. */
  -webkit-mask: radial-gradient(circle 14px at calc(100% - 300px) 0, transparent 13.5px, #000 14px), radial-gradient(circle 14px at calc(100% - 300px) 100%, transparent 13.5px, #000 14px);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle 14px at calc(100% - 300px) 0, transparent 13.5px, #000 14px), radial-gradient(circle 14px at calc(100% - 300px) 100%, transparent 13.5px, #000 14px);
  mask-composite: intersect;
}
.pass-main, .pass-stub { position: relative; background: linear-gradient(160deg, #1D1A2E, #131120); }
.pass-main { display: flex; flex-direction: column; gap: 22px; padding: 36px 38px; border-radius: 28px 0 0 28px; overflow: hidden; }
.pass-main::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background: radial-gradient(120% 90% at 100% 0%, rgba(168, 151, 243, 0.2), transparent 55%), radial-gradient(80% 70% at 0% 100%, rgba(47, 111, 219, 0.14), transparent 60%);
}
.pass-brand { display: flex; align-items: center; gap: 12px; }
.pass-brand img { width: 52px; height: 52px; margin: -5px; } /* the app icon's tile has a 10% margin */
.pass-brand b { display: block; font-family: var(--display); font-size: 20px; }
.pass-brand small { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-light); }
.pass-title { margin: 0; font-family: var(--display); font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.pass-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
.pass-fields dt { font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.pass-fields dd { margin: 3px 0 0; font-size: 15.5px; font-weight: 500; }
.pass-feats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-size: 13.5px; color: var(--muted); }
.pass-icons { display: flex; gap: 5px; }
.pass-icons .af { width: 28px; height: 24.64px; }
.pass-stub { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 34px 30px; border-radius: 0 28px 28px 0; text-align: center; }
/* The tear line. */
.pass-stub::before { content: ''; position: absolute; left: 0; top: 22px; bottom: 22px; border-left: 2px dashed rgba(127, 127, 160, 0.35); }
.pass-stub .price { font-size: 64px; }
.pass-stub .signup { text-align: left; }
.pass-save {
  align-self: center; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: #7EE2A8; background: rgba(48, 209, 88, 0.12); box-shadow: inset 0 0 0 1px rgba(48, 209, 88, 0.3);
}
@media (max-width: 760px) {
  .pass { grid-template-columns: minmax(0, 1fr); -webkit-mask: none; mask: none; }
  .pass-main { padding: 28px 24px; border-radius: 24px 24px 0 0; }
  .pass-stub { padding: 28px 24px; border-radius: 0 0 24px 24px; }
  .pass-stub::before { left: 22px; right: 22px; top: 0; bottom: auto; border-left: 0; border-top: 2px dashed rgba(127, 127, 160, 0.35); }
}

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq { margin-top: 40px; }
.faq-item { border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
.faq-item h3 { font: inherit; }
.faq-item button {
  width: 100%; min-height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 4px; border: 0; background: none;
  font: inherit; font-size: 18px; font-weight: 500; color: #FFFFFF; text-align: left; cursor: pointer;
}
.faq-icon {
  position: relative; flex: none; margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.06);
  transition: transform 0.4s var(--ease-out), background-color 0.2s;
}
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 8px; top: 13px; width: 12px; height: 2px; border-radius: 1px; background: var(--brand-pale); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item button:hover .faq-icon { background: rgba(255, 255, 255, 0.12); }
.faq-item button[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.45s var(--ease-out); }
.js .faq-a { grid-template-rows: 0fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 48px 22px 4px; color: var(--muted); text-wrap: pretty; }
.js .faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq + .fineprint { margin-top: 28px; font-size: 15px; }

/* Final */
.final { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding-bottom: 120px; }
.final > :not(.final-folders) { position: relative; z-index: 1; }
/* The floating folders (finalFolders() in main.js). */
.final-folders { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ff {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); pointer-events: auto;
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: calc(var(--i) * 90ms);
}
.js .final-folders:not(.is-in) .ff { opacity: 0; transform: translateY(36px) scale(0.6); }
.ff-tilt {
  display: block; transition: transform 0.8s var(--ease-out);
  transform: translate(calc(var(--mx, 0) * var(--depth) * 22px), calc(var(--my, 0) * var(--depth) * 14px)) rotate(var(--r));
}
.ff:hover .ff-tilt { transition-duration: 0.45s; transform: translate(calc(var(--mx, 0) * var(--depth) * 22px), calc(var(--my, 0) * var(--depth) * 14px)) rotate(0deg) scale(1.14); }
.ff .af { display: block; width: 100%; height: auto; animation: ff-float var(--d) ease-in-out var(--delay) infinite; filter: drop-shadow(0 18px 26px rgba(40, 20, 120, 0.42)); }
@keyframes ff-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-16px) rotate(3deg); } }
@media (max-width: 1100px) { .ff.wide { display: none; } }
@media (max-width: 760px) {
  .ff { left: var(--qx); top: var(--qy); width: var(--qs); }
  .ff.no-phone { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ff .af { animation: none; }
  .ff, .ff-tilt { transition: opacity 0.3s; }
}
.h2-final { max-width: 820px; font-size: clamp(40px, 6vw, 76px); line-height: 1; letter-spacing: -0.04em; }
.final .lead { max-width: 480px; }
.final-join { width: 100%; max-width: 500px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 16px 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; font-size: 14px; }
.footer-name { font-family: var(--display); font-size: 18px; font-weight: 600; color: #FFFFFF; }
.footer nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer nav a { color: var(--soft); text-decoration: none; }
.footer nav a:hover { color: #FFFFFF; }

/* ---- Sign-up ---- */

.signup-form { display: flex; flex-wrap: wrap; gap: 6px; }
.signup-form input {
  flex: 1 1 200px; min-width: 0; min-height: 46px; padding: 0 18px; border: 0; background: none; font: inherit; color: #FFFFFF; outline: none;
}
.signup-form input::placeholder { color: var(--faint); }
.signup-form .btn { flex: 1 0 auto; }
.signup-pill {
  padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); transition: border-color 0.2s, box-shadow 0.2s;
}
.signup-pill:focus-within { border-color: rgba(168, 151, 243, 0.7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 4px rgba(107, 86, 220, 0.18); }
.signup-stacked { flex-direction: column; gap: 8px; }
.signup-stacked label { font-size: 14px; font-weight: 600; }
.signup-stacked input {
  flex: none; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(0, 0, 0, 0.25);
}
.signup-stacked input:focus { border-color: rgba(168, 151, 243, 0.7); }
.signup-stacked .btn { flex: none; min-height: 48px; border-radius: 12px; }
.signup[data-state="error"] .signup-pill, .signup[data-state="error"] .signup-stacked input { border-color: #FF6B5B; }
.signup[data-state="sending"] .btn { opacity: 0.7; pointer-events: none; }
.signup-error { display: none; margin-top: 10px; font-size: 14px; color: var(--error); text-align: left; }
.signup[data-state="error"] .signup-error { display: block; }
/* Cloudflare Turnstile: empty unless Cloudflare wants a click before a sign-up goes through (main.js). */
.signup-check:not(:empty) { margin-top: 10px; }
.signup-done {
  display: none; padding: 14px 20px; border-radius: 20px; font-size: 15px; text-align: left;
  background: rgba(107, 86, 220, 0.16); border: 1px solid rgba(168, 151, 243, 0.4); color: #E4DEFF;
  animation: done-in 0.6s var(--ease-out);
}
.signup[data-state="done"] .signup-form { display: none; }
.signup[data-state="done"] .signup-done { display: block; }
@keyframes done-in { from { opacity: 0; transform: translateY(8px) scale(0.98); filter: blur(6px); } }
/* The one question after a sign-up (review LP-20) */
.signup-ask {
  margin-top: 8px; padding: 14px 20px 16px; border-radius: 20px; text-align: left;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
  animation: done-in 0.6s var(--ease-out) 0.25s both;
}
.signup-ask-q { margin: 0; font-size: 15px; color: var(--ink-2); }
.signup-ask-q strong { color: var(--ink); }
.signup-ask-options { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.signup-ask-options button {
  min-height: 34px; padding: 0 14px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); color: var(--ink);
  transition: background-color 0.2s, border-color 0.2s;
}
.signup-ask-options button:hover { background: rgba(107, 86, 220, 0.22); border-color: rgba(168, 151, 243, 0.6); }
.signup-ask-options .signup-ask-skip { padding: 0 8px; background: none; border-color: transparent; color: var(--faint); }
.signup-ask-options .signup-ask-skip:hover { background: none; border-color: transparent; color: var(--ink-2); text-decoration: underline; }
.signup-ask[data-state="sending"] .signup-ask-options { opacity: 0.6; pointer-events: none; }
.signup-ask[data-state="done"] .signup-ask-options { display: none; }
.signup-ask-done { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.signup-ask-done:empty { display: none; }
.signup-ask[data-state="done"] .signup-ask-done { margin-top: 8px; }

/* ---- Appear on scroll (the reference's Framer "appear" effects) ---- */

.js [data-reveal] {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out), filter 0.8s var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.js [data-reveal="up"] { transform: translateY(50px); }
.js [data-reveal="rise"] { transform: translateY(150px); }
.js [data-reveal="right"] { transform: translateX(100px); }
.js [data-reveal="swing"] { transform: rotate(-30deg); transform-origin: 0 0; }
.js [data-reveal="swing-right"] { transform: translateX(150px) rotate(-30deg); transform-origin: 0 0; }
.js [data-reveal="pop"] { transform: translateY(30px) scale(0.92); }
.js [data-reveal="scale"] { transform: translateY(40px) scale(0.94); }
.js [data-reveal="row"] { transform: translateY(16px); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---- The hero's window: FileOS's workspace page, as in the app (references/, 2026-10-16), in the page's look ----
   Dark is the app's dark look (its colours from FileCard.swift, Brand.swift, WorkspaceView.swift: cards #2A2A2E,
   sidebar icons #A897F3, everything else the text colour at low opacity); light is the user's screenshot. */

/* On every frame holding a window drawn like the app: the hero's, and Smart Downloads' (.aw-shot). */
.hero-shot, .aw-shot {
  --aw-p: 255, 255, 255; --aw-ink: #E8E8ED; --aw-ink-2: #D1D1D6; --aw-dim: #98989F; --aw-dim-2: #AEAEB2; --aw-faint: #7C7C83;
  --aw-off: #5E5E64; --aw-win: #1E1E21; --aw-side: linear-gradient(180deg, #2B2B2F, #28282C 30%); --aw-row-on: rgba(255, 255, 255, 0.1);
  --aw-disk: #232326; --aw-icon: #A897F3; --aw-brand: #8A76EA; --aw-track: rgba(168, 151, 243, 0.22);
  --aw-control: #2E2E33; --aw-control-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 0 0 0.5px rgba(255, 255, 255, 0.12);
  --aw-sel: rgba(255, 255, 255, 0.12); --aw-well: #232326; --aw-blue-ink: #6E9BF5;
  --aw-card: linear-gradient(180deg, #2C2C30, #232326); --aw-card-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  --aw-glow: rgba(47, 111, 219, 0.11); --aw-git: #8CE8A8; --aw-tile-icon: linear-gradient(180deg, #2E2E33, #26262A);
  --aw-docs: #2A2A2E; --aw-docs-shadow: 0 4px 20px rgba(0, 0, 0, 0.25); --aw-frame: rgba(255, 255, 255, 0.1);
}
[data-theme="light"] .hero-shot, [data-theme="light"] .aw-shot {
  --aw-p: 0, 0, 0; --aw-ink: #1D1D1F; --aw-ink-2: #3A3A3C; --aw-dim: #8E8E93; --aw-dim-2: #6E6E73; --aw-faint: #9A9AA0;
  --aw-off: #B5B5BA; --aw-win: #FFFFFF; --aw-side: linear-gradient(180deg, #ECEEF1, #EFEFEF 30%); --aw-row-on: #D7DBDF;
  --aw-disk: #E4E3E3; --aw-icon: #6B56DC; --aw-brand: #6B56DC; --aw-track: #D4D1E4;
  --aw-control: #FFFFFF; --aw-control-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 0.5px rgba(0, 0, 0, 0.09);
  --aw-sel: #EBEAEA; --aw-well: #F2F2F5; --aw-blue-ink: #406DD4;
  --aw-card: linear-gradient(180deg, #EEEEEE, #FAFAFA); --aw-card-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  --aw-glow: rgba(47, 111, 219, 0.05); --aw-git: #157A3A; --aw-tile-icon: linear-gradient(180deg, #F4F4F4, #E9E9EA);
  --aw-docs: #FFFFFF; --aw-docs-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); --aw-frame: rgba(0, 0, 0, 0.14);
}
.hero-shot, .aw-shot { background: var(--aw-win); }
.aw { width: var(--board-w, 1480px); padding: 20px; font: 13px/1.3 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif; color: var(--aw-ink); text-align: left; -webkit-font-smoothing: antialiased; }
.aw p { margin: 0; }
.aw svg { display: inline-block; flex: none; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
/* Folders (drawn with <use>) take no line from that: the app draws only the glass's white rim, which keeps its own (ISSUE-045). */
.aw use { stroke: none; }
.aw-win { display: flex; height: calc(860px + var(--grow, 0px)); border-radius: 16px; overflow: hidden; background: var(--aw-win); box-shadow: 0 0 0 1px var(--aw-frame); }

.aw-side { flex: none; width: 210px; padding: 14px 10px 0; display: flex; flex-direction: column; background: var(--aw-side); border-right: 1px solid rgba(var(--aw-p), 0.07); }
.aw-top { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 6px 8px; }
.aw-lights { display: flex; gap: 8px; }
.aw-lights i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.15); }
.aw-circle { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--aw-ink-2); background: var(--aw-control); box-shadow: var(--aw-control-shadow); }
.aw-circle svg { width: 17px; height: 17px; stroke-width: 1.4; }
.aw-circle.small { width: 26px; height: 26px; }
.aw-circle.small svg { width: 13px; height: 13px; stroke-width: 1.8; }
.aw-h { padding: 12px 8px 4px; font-size: 11px; font-weight: 600; color: var(--aw-faint); }
.aw-row { display: flex; align-items: center; gap: 9px; height: 28px; padding: 0 8px; border-radius: 8px; white-space: nowrap; }
.aw-row svg { width: 17px; height: 17px; stroke: var(--aw-icon); stroke-width: 1.35; }
.aw-row svg.aw-ws { width: 19px; height: 17px; }
.aw-row.on { background: var(--aw-row-on); font-weight: 600; }
.aw-row.add { color: var(--aw-dim); }
.aw-row.add svg { stroke: var(--aw-dim); }
.aw-disk { margin: auto -10px 0; padding: 12px 14px 14px 16px; display: flex; flex-direction: column; gap: 7px; font-size: 11px; color: var(--aw-faint); background: var(--aw-disk); border-top: 1px solid rgba(var(--aw-p), 0.08); }
.aw-disk-top { display: flex; align-items: center; justify-content: space-between; }
.aw-disk-name { display: flex; align-items: center; gap: 6px; }
.aw-disk-name svg { width: 13px; height: 13px; stroke: var(--aw-dim); stroke-width: 1.4; }
.aw-disk b { font-weight: 600; color: var(--aw-dim-2); }
.aw-disk-free { text-align: right; line-height: 1.25; color: var(--aw-dim); }
.aw-bar { height: 4px; border-radius: 2px; background: var(--aw-track); }
.aw-bar i { display: block; width: 37%; height: 100%; border-radius: 2px; background: var(--aw-brand); }

.aw-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.aw-toolbar { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 14px; }
.aw-cap { display: flex; align-items: center; gap: 2px; height: 34px; padding: 0 3px; border-radius: 17px; color: var(--aw-ink-2); background: var(--aw-control); box-shadow: var(--aw-control-shadow); }
.aw-cap > span { min-width: 30px; height: 28px; padding: 0 7px; display: flex; align-items: center; justify-content: center; gap: 3px; border-radius: 14px; }
.aw-cap svg { width: 17px; height: 17px; stroke-width: 1.45; }
.aw-cap svg.tiny { width: 10px; height: 10px; stroke-width: 2; }
.aw-cap .dim { color: var(--aw-off); }
.aw-cap .sel { background: var(--aw-sel); }
.aw-cap .blue { background: #3D6FD8; color: #FFFFFF; }
.aw-seg > span { padding: 0 11px; font-size: 13px; }
.aw-title { margin-left: 4px; font-size: 15px; font-weight: 600; color: var(--aw-ink-2); }
.aw-spacer { flex: 1; }
.aw-search { width: 250px; justify-content: flex-start; gap: 8px; padding: 0 12px; color: var(--aw-dim); }
.aw-search svg { width: 14px; height: 14px; stroke-width: 1.6; }
.aw-pathrow { display: flex; align-items: center; gap: 10px; padding: 0 14px 6px; }
.aw-path { flex: 1; height: 26px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 11.5px; color: var(--aw-ink-2); background: var(--aw-control); box-shadow: inset 0 0 0 1px rgba(var(--aw-p), 0.1); }

.aw-page { flex: 1; min-height: 0; padding: 22px 28px; display: flex; flex-direction: column; gap: 24px; overflow: hidden; }
.aw-head { display: flex; align-items: center; gap: 16px; }
.aw-bigfolder, .aw-cardicon { position: relative; display: flex; align-items: center; justify-content: center; }
/* `.aw .aw-glyph`, not `.aw-glyph`: `.aw svg` would win and paint the symbol in the text colour (ISSUE-041). */
.aw .aw-glyph { position: absolute; left: 50%; width: 12px; height: 12px; margin-left: -6px; stroke: #FFFFFF; stroke-width: 1.7; opacity: 0.75; filter: drop-shadow(0 0.5px 0.5px rgba(0, 0, 0, 0.2)); }
.aw-bigfolder .aw-glyph { top: 27px; }
.aw-head-text { display: flex; flex-direction: column; gap: 4px; }
.aw-head-text b { font-size: 22px; font-weight: 700; }
.aw-head-text span { color: var(--aw-dim); }
.aw-add { margin-left: auto; display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 13px; border-radius: 7px; color: #FFFFFF; font-weight: 500; background: #406DD4; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); }
.aw-add svg { width: 12px; height: 12px; stroke-width: 2; }
.aw-panel { width: 34px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 7px; color: var(--aw-blue-ink); background: var(--aw-well); }
.aw-panel svg { width: 16px; height: 16px; stroke-width: 1.5; }
.aw-sec { display: flex; align-items: baseline; gap: 7px; margin-bottom: -12px !important; }
.aw-sec b { font-size: 13px; font-weight: 600; }
.aw-sec span { font-size: 12px; color: var(--aw-dim); }

.aw-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 260px)); gap: 14px; }
.aw-card, .aw-addcard { position: relative; height: 184px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; }
.aw-card { padding: 0 10px; background: var(--aw-card); box-shadow: inset 0 0 0 1px rgba(var(--aw-p), 0.09), var(--aw-card-shadow); }
.aw-cardicon { height: 56px; margin-top: 16px; }
.aw-cardicon .aw-glyph { top: 28px; width: 11px; height: 11px; margin-left: -5.5px; }
.aw-glow { position: absolute; left: 50%; top: 50%; width: 112px; height: 68px; margin: -34px 0 0 -56px; border-radius: 50%; background: radial-gradient(closest-side, var(--aw-glow), transparent); }
.aw-more { position: absolute; right: 9px; top: 9px; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; gap: 2px; background: rgba(var(--aw-p), 0.07); }
.aw-more i, .aw-dots i { width: 3px; height: 3px; border-radius: 50%; background: var(--aw-ink-2); }
.aw-name { margin-top: 9px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.aw-place { margin-top: 4px; display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--aw-dim); white-space: nowrap; }
.aw-place svg { width: 11px; height: 11px; stroke-width: 1.4; }
.aw-cardfoot { margin-top: auto; align-self: stretch; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 0; border-top: 1px solid rgba(var(--aw-p), 0.06); font-size: 11px; color: var(--aw-dim); font-variant-numeric: tabular-nums; }
.aw-pill { display: flex; align-items: center; gap: 3px; height: 18px; padding: 0 7px; border-radius: 9px; font-size: 10px; font-weight: 500; color: var(--aw-dim); background: rgba(var(--aw-p), 0.05); box-shadow: inset 0 0 0 1px rgba(var(--aw-p), 0.08); }
.aw-pill svg { width: 9px; height: 9px; stroke-width: 2; }
.aw-pill.git { color: var(--aw-git); background: rgba(52, 199, 89, 0.14); box-shadow: inset 0 0 0 1px rgba(52, 199, 89, 0.4); }
.aw-addcard { justify-content: center; gap: 10px; padding: 14px; text-align: center; border: 1.5px dashed rgba(var(--aw-p), 0.16); }
.aw-addcard b { font-weight: 500; }
.aw-addcard > span:last-child { font-size: 12px; color: var(--aw-dim); max-width: 200px; }
.aw-plus { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(var(--aw-p), 0.06); color: var(--aw-ink); }
.aw-plus svg { width: 16px; height: 16px; stroke-width: 2; }
.aw-plus.small { width: 34px; height: 34px; color: var(--aw-dim); }
.aw-plus.small svg { width: 14px; height: 14px; }

.aw-shelf { display: flex; gap: 14px; }
.aw-tile { position: relative; flex: none; height: 168px; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16); }
.aw-tile::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 74px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); }
.aw-tile-text { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; display: flex; flex-direction: column; gap: 1px; color: #FFFFFF; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35); }
.aw-tile-text b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-tile-text span { font-size: 11px; opacity: 0.85; }
.aw-tile-icon { display: flex; align-items: flex-start; justify-content: center; padding-top: 10px; background: var(--aw-tile-icon); }
.aw-tile-icon img { width: 128px; height: 128px; display: block; }
.aw-addtile { flex: none; width: 104px; height: 168px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--aw-dim); border: 1.5px dashed rgba(var(--aw-p), 0.16); }
.art-launch { background: radial-gradient(circle at 70% 30%, #FFD9A8, transparent 45%), linear-gradient(150deg, #FBE3D2, #F2B8C6 55%, #C9A9F2); }
.art-launch::before { content: ''; position: absolute; left: 50%; top: 18px; width: 150px; height: 88px; margin-left: -75px; border-radius: 8px; background: linear-gradient(#6B56DC, #6B56DC) 10px 12px / 50px 8px no-repeat, linear-gradient(#E5E3F5, #E5E3F5) 10px 28px / 90px 6px no-repeat, linear-gradient(#E5E3F5, #E5E3F5) 10px 40px / 70px 6px no-repeat, linear-gradient(135deg, #8A76EA, #4F6BED) 104px 12px / 36px 66px no-repeat, #FFFFFF; box-shadow: 0 0 0 5px #1D1D22, 0 14px 24px rgba(60, 30, 90, 0.35); }
.art-launch::after { content: ''; position: absolute; left: 50%; top: 111px; width: 190px; height: 8px; margin-left: -95px; border-radius: 0 0 8px 8px; background: #2A2A30; }

.aw-docs { border-radius: 14px; overflow: hidden; background: var(--aw-docs); box-shadow: inset 0 0 0 1px rgba(var(--aw-p), 0.08), var(--aw-docs-shadow); }
.aw-doc { display: grid; grid-template-columns: 30px minmax(160px, 1.4fr) minmax(120px, 260px) 96px 66px 26px; gap: 12px; align-items: center; height: 44px; padding: 0 8px 0 14px; }
.aw-doc + .aw-doc { box-shadow: inset 14px 1px 0 var(--aw-docs), inset 0 1px 0 rgba(var(--aw-p), 0.07); }
.aw-doc-head { height: 30px; font-size: 11px; font-weight: 600; color: var(--aw-dim); }
.aw-doc b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-doc .dim { color: var(--aw-dim-2); }
.aw-doc .r { text-align: right; }
.aw-where { display: flex; align-items: center; gap: 5px; color: var(--aw-dim-2); }
.aw-where svg { width: 12px; height: 12px; stroke-width: 1.4; }
.aw-dots { display: flex; justify-content: center; gap: 2px; }
.aw-kind { position: relative; width: 24px; height: 30px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px; border-radius: 3px 8px 3px 3px; background: linear-gradient(180deg, #FFFFFF, #F1F1F3); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14); }
.aw-kind i { font-style: normal; font-size: 6px; font-weight: 800; line-height: 1; letter-spacing: 0.2px; color: #FFFFFF; background: var(--k); border-radius: 2px; padding: 1.5px 3px; }

/* ---- The hero demo (the user, 2026-10-16): Downloads full of loose files, sorted by kind with one click, then a
   workspace. Drawn like the app (the user's screenshots, Views/IconGridView.swift, FileCard.swift); main.js plays it
   with two attributes on .aw: data-scene, dl (Downloads) or ws (the workspace page, also what shows without
   JavaScript), and data-sorted, once Downloads is grouped by kind. ---- */

.aw { position: relative; }
.aw-panes { position: relative; flex: 1; min-width: 0; }
.aw-panes > .aw-main { position: absolute; inset: 0; transition: opacity 0.45s ease; }
.aw[data-scene="ws"] .aw-dl, .aw:not([data-scene="ws"]) .aw-wspane { opacity: 0; }
.aw-row { transition: background-color 0.25s; }
.aw[data-scene="ws"] [data-demo-row="ws"], .aw:not([data-scene="ws"]) [data-demo-row="dl"] { background: var(--aw-row-on); font-weight: 600; }
.aw .is-press { filter: brightness(0.92); }
.aw.is-still, .aw.is-still * { transition: none !important; }

.dl-crumbs { flex: none; display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 18px; font-size: 13.5px; color: var(--aw-dim); border-bottom: 1px solid rgba(var(--aw-p), 0.07); }
.dl-crumbs i { font-style: normal; color: var(--aw-off); }
.dl-crumbs b { font-weight: 600; color: var(--aw-ink); }
.dl-crumbs em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--aw-off); }
.dl-body { position: relative; flex: 1; min-height: 0; overflow: hidden; padding: 16px 24px 0; }
.aw .dl-sec { margin: 0 0 10px !important; }
.dl-grid { display: grid; grid-template-columns: repeat(6, 182px); gap: 18px; }
.dl-heads { position: relative; height: 26px; margin-top: 18px; }
.dl-heads .dl-sec { position: absolute; left: 0; top: 0; transition: opacity 0.3s; }
.aw:not([data-sorted]) .dl-sec-kinds, .aw[data-sorted] .dl-sec-files { opacity: 0; }
.aw-dl .aw-seg > span { transition: background-color 0.25s; }
.aw:not([data-sorted]) .aw-dl .dl-none, .aw[data-sorted] .aw-dl .dl-kindbtn { background: var(--aw-sel); }

/* Folders as the icon view draws them (FolderCard): the count and size on the glass, the symbol in its middle. */
.dl-fold { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dl-icon { position: relative; display: block; width: 142px; height: 125px; transform-origin: 50% 100%; }
.dl-icon > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.dl-glass { position: absolute; left: 4%; top: 37.5%; width: 92%; height: 60.2%; color: #FFFFFF; text-shadow: 0 1px 1.5px rgba(31, 15, 89, 0.45); }
.dl-glass b { position: absolute; left: 10px; top: 8px; font-size: 11px; font-weight: 600; }
.dl-glass small { position: absolute; left: 10px; bottom: 7px; font-size: 9px; }
.aw .dl-info { position: absolute; right: 8px; top: 7px; width: 14px; height: 14px; stroke: #FFFFFF; stroke-width: 1.3; }
.aw .dl-sym { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; stroke: #FFFFFF; stroke-width: 1.5; opacity: 0.6; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2)); }
.aw .dl-fronts [data-kind="other"] .dl-sym, .aw.sd [data-kind="other"] .dl-sym { stroke-width: 2.8; }
.dl-label { font-size: 13px; color: var(--aw-ink); }

/* Loose files as cards (FileCard, board 47): the preview on a pale well, the kind's badge, the name, kind and size. */
.dl-stack { position: relative; z-index: 0; }
.dl-files { position: relative; z-index: 2; }
.dl-file { width: 182px; border-radius: 12px; overflow: hidden; background: var(--aw-docs); box-shadow: inset 0 0 0 1px rgba(var(--aw-p), 0.09), 0 1px 2px rgba(0, 0, 0, 0.05); will-change: transform, opacity; }
.dl-prev { position: relative; display: block; height: 113px; overflow: hidden; background: var(--aw-well); }
.dl-foot { display: flex; align-items: center; gap: 7px; padding: 8px 6px 9px 8px; }
.dl-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dl-meta b { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-meta small { font-size: 11px; color: var(--aw-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The kinds' folders take the files' place, in two layers as the app draws a folder (FolderIcon.swift): the back and
   its papers below the files, the frosted glass above them, so a file drops into the pocket behind the glass
   (ISSUE-046). Each pops in, and gives a little as a file lands (main.js). */
.dl-kinds, .dl-fronts { position: absolute; left: 0; top: 0; }
.dl-kinds { z-index: 1; }
.dl-fronts { z-index: 3; pointer-events: none; }
.dl-fronts .dl-label { visibility: hidden; }
.dl-kinds .dl-fold, .dl-fronts .dl-fold { opacity: 0; transform: scale(0.6); transition: opacity 0.35s ease, transform 0.5s var(--ease-out); will-change: transform; }
/* They come in once every file has risen out of the way (main.js: all up by 1.1 s). */
.aw[data-sorted] .dl-kinds .dl-fold, .aw[data-sorted] .dl-fronts .dl-fold { opacity: 1; transform: none; transition-delay: calc(1050ms + var(--i, 0) * 60ms); }
.dl-front { position: absolute; left: 4%; top: 37.5%; width: 92%; height: 60.2%; box-sizing: border-box; border-radius: 12.8px; border: 1px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(149deg, var(--g1) 0%, var(--g2) 55%, var(--g3) 100%); backdrop-filter: blur(4.5px); -webkit-backdrop-filter: blur(4.5px); }
.dl-front .dl-glass { left: 0; top: 0; width: 100%; height: 100%; }

.dl-status { flex: none; display: flex; align-items: center; justify-content: space-between; height: 28px; padding: 0 14px; font-size: 11.5px; color: var(--aw-dim); border-top: 1px solid rgba(var(--aw-p), 0.07); }
.dl-sizes { display: flex; gap: 3px; }
.dl-sizes i { width: 18px; height: 14px; border-radius: 4px; background: rgba(var(--aw-p), 0.08); }
.dl-sizes i.on { background: #3D6FD8; }

/* Previews of the dummy files: pages and slides on the pale well, icons for installers and unknown files. */
.dl-prev.art-letter, .dl-prev.art-receipt { background: var(--aw-well); }
.art-sheet, .art-slide, .art-ticket { background: var(--aw-well); }
.art-sheet::before { content: ''; position: absolute; inset: 14px 16px 10px; border-radius: 3px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  background: linear-gradient(#1E7B45, #1E7B45) 0 0 / 100% 13px no-repeat, repeating-linear-gradient(90deg, transparent 0 31px, #DCDCDC 31px 32px), repeating-linear-gradient(transparent 0 12px, #DCDCDC 12px 13px), #FFFFFF; }
.art-slide::before { content: ''; position: absolute; inset: 18px 20px; border-radius: 4px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background: linear-gradient(#FFFFFF, #FFFFFF) 14px 18px / 64px 9px no-repeat, linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)) 14px 33px / 92px 5px no-repeat, linear-gradient(135deg, #F2A54A, #D9467A 55%, #6B56DC); }
.art-ticket::before { content: ''; position: absolute; inset: 22px 18px; border-radius: 6px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  background: linear-gradient(#2F6FDB, #2F6FDB) 0 0 / 100% 16px no-repeat, linear-gradient(#2B2B2B, #2B2B2B) 12px 26px / 28px 11px no-repeat, linear-gradient(#2B2B2B, #2B2B2B) calc(100% - 12px) 26px / 28px 11px no-repeat, linear-gradient(#C9C9CE, #C9C9CE) 12px 46px / 60% 5px no-repeat, #FFFFFF; }
.dl-prev.is-icon { display: flex; align-items: center; justify-content: center; }
.dl-app { position: relative; display: block; }
.dl-app.dmg { width: 62px; height: 52px; border-radius: 10px; background: linear-gradient(180deg, #F6F6F8, #CDD0D6); box-shadow: inset 0 -12px 0 #B8BCC4, 0 6px 14px rgba(0, 0, 0, 0.18); }
.dl-app.dmg::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 4px; border-radius: 2px; background: #5D626C; }
.dl-app.pkg { width: 60px; height: 56px; border-radius: 6px; background: linear-gradient(160deg, #E1A96E, #B0733A); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2); }
.dl-app.pkg::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 12px; margin-left: -6px; background: rgba(255, 255, 255, 0.35); }
.dl-app.page { width: 46px; height: 58px; border-radius: 4px 12px 4px 4px; background: linear-gradient(180deg, #FFFFFF, #F1F1F3); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.12); }

/* The pointer that does the clicking. */
.aw-cursor { position: absolute; left: 0; top: 0; z-index: 3; width: 22px; height: 28px; opacity: 0; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
  transition: transform 1s cubic-bezier(0.45, 0.05, 0.25, 1), opacity 0.3s; }
.aw .aw-cursor svg { display: block; width: 100%; height: 100%; transform-origin: 3px 2px; transition: transform 0.12s; }
.aw.is-demo .aw-cursor { opacity: 1; }
.aw .aw-cursor.is-click svg { transform: scale(0.82); }

/* In the window, notes pointing at what the demo is doing (the user, 2026-10-16: "explanation in UI component"),
   like macOS popovers in FileOS purple. Outside the scaled window, so the type stays readable; main.js places each one
   by the part of the window it points at. On a phone the window is too small for them: a caption under it instead. */
.demo-tip { position: absolute; left: 0; top: 0; z-index: 4; width: max-content; max-width: 290px; padding: 10px 14px 11px; border-radius: 12px;
  background: #6B56DC; color: rgba(255, 255, 255, 0.92); font-size: 13.5px; line-height: 1.4; text-align: left; pointer-events: none;
  box-shadow: 0 14px 32px rgba(40, 20, 120, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.14); opacity: 0; transition: opacity 0.3s, transform 0.35s var(--ease-out); }
.demo-tip b { display: block; margin-bottom: 2px; font-weight: 600; color: #FFFFFF; }
.demo-tip::before { content: ''; position: absolute; width: 12px; height: 12px; border-radius: 2px; background: #6B56DC; transform: rotate(45deg); }
.demo-tip[data-side="below"] { transform: translateY(6px); }
.demo-tip[data-side="below"]::before { top: -5px; left: var(--ax, 50%); margin-left: -6px; }
.demo-tip[data-side="right"] { transform: translateX(-6px); }
.demo-tip[data-side="right"]::before { left: -5px; top: var(--ay, 50%); margin-top: -6px; }
.demo-tip.is-on { opacity: 1; transform: none; }
.demo-caption { display: none; }

/* Under the window: the demo's chapters and a pause button, on the band (and the caption, on a phone). */
.demo-caption { position: absolute; left: 50%; bottom: 80px; z-index: 1; width: min(760px, calc(100% - 32px)); margin: 0; transform: translateX(-50%);
  text-align: center; text-wrap: balance; font-size: 17px; line-height: 1.4; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 2px rgba(30, 10, 90, 0.35); transition: opacity 0.25s, transform 0.25s; }
.demo-caption b { font-weight: 600; color: #FFFFFF; }
.demo-caption.is-out { opacity: 0; transform: translate(-50%, 6px); }
.demo-bar { position: absolute; left: 50%; bottom: 22px; z-index: 1; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 5px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.demo-play, .demo-chap { border: 0; font: inherit; cursor: pointer; }
.demo-play { width: 34px; height: 34px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.18); color: #FFFFFF; }
.demo-play svg { width: 13px; height: 13px; fill: currentColor; }
.demo-play .i-play, .demo-bar.is-paused .i-pause { display: none; }
.demo-bar.is-paused .i-play { display: block; }
.demo-chap { position: relative; overflow: hidden; height: 34px; padding: 0 15px; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, 0.88); font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: background-color 0.25s, color 0.25s; }
.demo-chap:hover { background: rgba(255, 255, 255, 0.12); }
.demo-chap.is-on { background: #FFFFFF; color: #3A2A9E; }
.demo-fill { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--p, 0) * 100%); background: currentColor; opacity: 0.45; }
.demo-chap span:last-child { position: relative; }

/* ---- Smart Downloads: Downloads grouped by kind, with the Insights panel open (InsightsPanel.swift) ---- */

/* The opening act: Finder with a messy Downloads (partials/finder-window.html), played by finderIntro() in main.js
   over the hero's window once per browser session, then swept away for the FileOS demo. A generic macOS window. */
.fi-layer { display: none; z-index: 2; }
.hero-stage.is-intro .fi-layer { display: block; }
.hero-stage.is-intro .demo-bar, .hero-stage.is-intro .demo-caption { visibility: hidden; }
.fi-win { height: 860px; }
.fi-side { flex: none; width: 200px; padding: 16px 10px; display: flex; flex-direction: column; gap: 1px; background: var(--aw-side); border-right: 1px solid rgba(var(--aw-p), 0.07); }
.fi-lights { margin: 0 0 14px 6px; }
.fi-h { margin: 12px 8px 4px; font-size: 11px; font-weight: 600; color: var(--aw-faint); }
.fi-srow { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 8px; border-radius: 6px; font-size: 13px; }
.fi-srow.on { background: var(--aw-row-on); }
.fi .fi-srow svg { width: 16px; height: 16px; stroke: #2F7CF6; stroke-width: 1.4; }
.fi-tag { width: 10px; height: 10px; margin: 0 3px; border-radius: 50%; background: var(--c); }
.fi-main { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fi-toolbar { display: flex; align-items: center; gap: 14px; height: 52px; padding: 0 16px; border-bottom: 1px solid rgba(var(--aw-p), 0.08); }
.fi-nav { display: flex; gap: 10px; }
.fi .fi-nav svg, .fi .fi-tool svg, .fi .fi-tools svg { width: 17px; height: 17px; stroke-width: 1.5; color: var(--aw-ink-2); }
.fi .fi-nav svg.dim { color: var(--aw-off); }
.fi-title { font-size: 15px; font-weight: 600; }
.fi-spacer { flex: 1; }
.fi-tools { display: flex; padding: 3px; border-radius: 8px; background: rgba(var(--aw-p), 0.06); }
.fi-tools span { display: flex; padding: 3px 8px; border-radius: 6px; }
.fi-tools span.on { background: var(--aw-control); box-shadow: var(--aw-control-shadow); }
.fi-search { display: flex; align-items: center; gap: 7px; width: 34px; height: 30px; padding: 0 9px; border-radius: 8px; font-size: 13px; overflow: hidden; transition: width 0.35s var(--ease-out), background-color 0.2s; }
.fi-search.is-open { width: 230px; background: var(--aw-control); box-shadow: var(--aw-control-shadow), 0 0 0 3px color-mix(in srgb, #2F7CF6 35%, transparent); }
.fi .fi-search svg { flex: none; width: 15px; height: 15px; stroke-width: 1.6; color: var(--aw-dim); }
.fi-query { white-space: pre; }
.fi-caret { display: none; width: 1.5px; height: 15px; margin-left: -6px; background: var(--aw-ink); animation: dv-blink 1s steps(1) infinite; }
.fi-search.is-open .fi-caret { display: block; }
.fi-scope { display: none; align-items: center; gap: 6px; height: 38px; padding: 0 16px; font-size: 12.5px; border-bottom: 1px solid rgba(var(--aw-p), 0.08); background: rgba(var(--aw-p), 0.02); }
.fi-scope.is-on { display: flex; }
.fi-scope span { padding: 3px 10px; border-radius: 6px; }
.fi-scope span.on { color: #FFFFFF; background: #2F7CF6; }
.fi-scope-end { margin-left: auto; box-shadow: inset 0 0 0 1px rgba(var(--aw-p), 0.15); }
.fi-content { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.fi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 18px 8px; padding: 22px 20px; will-change: transform; }
.fi-item { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; text-align: center; }
.fi-item b { display: -webkit-box; max-width: 118px; overflow: hidden; font-size: 12px; font-weight: 400; line-height: 1.25; word-break: break-word; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fi-thumb { position: relative; display: block; width: 76px; height: 64px; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(var(--aw-p), 0.1); }
.fi-doc { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 52px; height: 64px; padding-bottom: 8px; border-radius: 3px 12px 3px 3px; background: #FBFBFD; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.08); }
.fi-doc i { padding: 1px 5px; border-radius: 3px; font-size: 9px; font-style: normal; font-weight: 700; color: #FFFFFF; background: var(--k); }
.fi .fi-folder { width: 70px; height: 57px; stroke: none; }
.fi .fi-folder .b { fill: #5AA6EE; }
.fi .fi-folder .f { fill: #79BAF5; }
.fi-results { position: absolute; inset: 0; display: none; flex-direction: column; padding: 6px 12px; background: var(--aw-win); }
.fi-results.is-on { display: flex; }
.fi-row { display: grid; grid-template-columns: minmax(0, 1.6fr) 1fr 1.2fr 0.9fr; align-items: center; gap: 12px; height: 32px; padding: 0 10px; border-radius: 6px; font-size: 13px; }
.fi-row:nth-child(even) { background: rgba(var(--aw-p), 0.035); }
.fi-row > span:not(.fi-rname) { color: var(--aw-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fi-rhead { height: 28px; font-size: 11.5px; font-weight: 600; background: none !important; }
.fi-rname { display: flex; align-items: center; gap: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fi-rdoc { flex: none; width: 13px; height: 16px; border-radius: 2px; background: #FBFBFD; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }
.fi-status { height: 28px; display: flex; align-items: center; justify-content: center; font-size: 11.5px; color: var(--aw-dim); border-top: 1px solid rgba(var(--aw-p), 0.07); }
.fi-mini {
  position: absolute; z-index: 3; width: 430px; border-radius: 12px; overflow: hidden; visibility: hidden; background: var(--aw-win);
  box-shadow: 0 0 0 1px var(--aw-frame), 0 26px 60px rgba(0, 0, 0, 0.35);
}
.fi-mini.is-on { visibility: visible; }
.fi-mini-bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgba(var(--aw-p), 0.08); background: var(--aw-side); }
.fi-mini-bar b { font-size: 13px; }
.fi-mini-bar small { margin-left: auto; font-size: 11px; color: var(--aw-dim); }
.fi-mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 18px 14px; }
.fi-mini .fi-thumb { width: 64px; height: 54px; }
.fi-mini .fi-doc { width: 44px; height: 54px; }
.fi-mini .fi-folder { width: 60px; height: 49px; }
.fi-note {
  position: absolute; right: 44px; top: 40px; z-index: 4; display: flex; align-items: center; gap: 12px; width: 380px; padding: 12px 14px; border-radius: 16px;
  font-size: 13px; visibility: hidden; background: color-mix(in srgb, var(--aw-win) 88%, transparent); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: 0 0 0 1px rgba(var(--aw-p), 0.12), 0 14px 34px rgba(0, 0, 0, 0.3);
}
.fi-note.is-on { visibility: visible; }
.fi-note b { display: block; }
.fi-note small { align-self: flex-start; margin-left: auto; font-size: 11px; color: var(--aw-dim); }
.fi-note-icon { flex: none; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: linear-gradient(180deg, #8E8E93, #6E6E73); }
.fi .fi-note-icon svg { width: 20px; height: 20px; stroke: #FFFFFF; stroke-width: 1.4; }
.fi .aw-cursor { transition: opacity 0.3s; }
/* The story's captions: over the frame, not scaled, so they stay readable on a phone. */
.fi-say {
  position: absolute; left: 50%; bottom: 7%; z-index: 5; width: max-content; max-width: 86%; margin: 0; padding: 10px 18px; border-radius: 999px; transform: translateX(-50%);
  font-size: clamp(13px, 1.5vw, 17px); font-weight: 600; text-align: center; color: #FFFFFF; background: rgba(20, 16, 36, 0.86);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.fi-say.is-on { opacity: 1; }
@media (max-width: 600px) { .fi-say { bottom: 5%; max-width: 92%; padding: 6px 12px; border-radius: 12px; font-size: 11.5px; line-height: 1.3; } .fi-say img { width: 20px; height: 20px; } }
.fi-say.is-good { display: flex; align-items: center; gap: 10px; background: linear-gradient(90deg, #6B56DC, #2F6FDB); box-shadow: 0 12px 34px rgba(80, 50, 220, 0.45); }
.fi-say img { width: 26px; height: 26px; margin: -4px -2px -4px -6px; }
/* The sweep from Finder to FileOS: a line of light that crosses the window as Finder is cut away behind it. */
.fi-wipe {
  position: absolute; top: 0; bottom: 0; left: 0; z-index: 4; width: 4px; margin-left: -2px; visibility: hidden; pointer-events: none;
  background: linear-gradient(180deg, transparent, #FFFFFF 15%, #C9BEFF 50%, #FFFFFF 85%, transparent);
  box-shadow: 0 0 18px 4px rgba(168, 151, 243, 0.9), 0 0 60px 16px rgba(107, 86, 220, 0.55);
}
.fi-wipe.is-on { visibility: visible; }
/* The act's bar sits where the demo's bar comes, as the same frosted pill on the purple band, in both themes
   (ISSUE-060: it used the page's text colours, grey on purple in light mode, and pushed the band down while shown). */
.fi-bar { position: absolute; left: 50%; bottom: 22px; z-index: 1; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 5px 5px 5px 16px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 13.5px; font-weight: 500; white-space: nowrap; color: rgba(255, 255, 255, 0.88); }
.fi-bar[hidden] { display: none; }
.fi-progress { width: 160px; height: 4px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, 0.24); }
.fi-progress i { display: block; width: 0; height: 100%; border-radius: 2px; background: #FFFFFF; }
.fi-skip { height: 34px; padding: 0 16px; border: 0; border-radius: 999px; font: inherit; color: #3A2A9E; background: #FFFFFF; cursor: pointer; transition: background-color 0.2s; }
.fi-skip:hover { background: #EEEBFC; }

/* Dual pane (partials/dual-window.html), played by dualDemo() in main.js: the app's two panes (Views/DualPaneView.swift),
   its bar along the bottom and its toast, in the app window's colours for both looks. */
.dp .aw-win { height: calc(780px + var(--grow, 0px)); }
.dp-swap > span { gap: 6px; padding: 0 10px; font-size: 13px; }
.dp kbd { font: inherit; font-size: 11px; line-height: 1; padding: 3px 5px; border-radius: 4px; background: rgba(var(--aw-p), 0.07); color: var(--aw-dim); }
.dp-panes { position: relative; flex: 1; min-height: 0; display: flex; border-top: 1px solid rgba(var(--aw-p), 0.07); }
.dp-pane { flex: 1; min-width: 0; display: flex; flex-direction: column; background: rgba(var(--aw-p), 0.025); }
.dp-pane + .dp-pane { border-left: 1px solid rgba(var(--aw-p), 0.08); }
.dp-pane.is-active { background: var(--aw-win); }
.dp-path { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; font-size: 13px; color: var(--aw-dim); border-bottom: 1px solid rgba(var(--aw-p), 0.07); white-space: nowrap; }
.dp-path i { font-style: normal; color: var(--aw-off); }
.dp-path b { color: var(--aw-ink); font-weight: 600; }
.dp-pane.is-active .dp-path { box-shadow: inset 0 -2px 0 var(--aw-brand); }
.dp-pathicon { width: 18px; height: 15.84px; margin-right: 2px; }
.dp-meta { margin-left: auto; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.dp-head, .dp-row { display: grid; grid-template-columns: minmax(0, 1fr) 112px 70px; gap: 10px; align-items: center; padding: 0 12px; }
.dp-head { height: 30px; margin: 0 8px; font-size: 11px; font-weight: 600; color: var(--aw-dim); }
.dp-head span:last-child, .dp-row > span:last-child { text-align: right; }
/* Stripes stay where they are while rows come and go. */
.dp-list { position: relative; flex: 1; margin: 0 8px; background: repeating-linear-gradient(180deg, transparent 0 32px, rgba(var(--aw-p), 0.03) 32px 64px); }
.dp-row { height: 32px; border-radius: 6px; overflow: hidden; color: var(--aw-ink); }
.dp-row > span:not(.dp-name) { font-size: 12px; color: var(--aw-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dp-name { display: flex; align-items: center; gap: 9px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-icon { width: 18px; height: 15.84px; }
.dp-doc { flex: none; position: relative; width: 12px; height: 15px; margin: 0 3px; border-radius: 2px; background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14); }
.dp-doc::after { content: ''; position: absolute; left: 2px; right: 2px; bottom: 3px; height: 3px; border-radius: 1px; background: var(--k); }
.dp-row.is-on { background: color-mix(in srgb, var(--aw-brand) 30%, transparent); }
.dp-row.is-new { animation: dp-new 1.8s ease-out; }
@keyframes dp-new { from { background: color-mix(in srgb, var(--aw-brand) 30%, transparent); } }
.dp-fly { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.dp-fly .dp-row { position: absolute; left: 0; top: 0; background: color-mix(in srgb, var(--aw-brand) 30%, var(--aw-win)); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2); }
.dp-toast {
  position: absolute; left: 50%; bottom: 18px; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-radius: 12px; font-size: 13px; white-space: nowrap; transform: translateX(-50%); visibility: hidden;
  background: color-mix(in srgb, var(--aw-win) 90%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 0 0 1px rgba(var(--aw-p), 0.1), 0 6px 18px rgba(0, 0, 0, 0.2);
}
.dp-toast.is-on { visibility: visible; }
.dp-toast b { font-weight: 600; }
.dp .dp-tick { width: 20px; height: 20px; stroke: none; }
.dp .dp-tick path:first-child { fill: #34C759; }
.dp .dp-tick .dp-tick-mark { fill: none; stroke: #FFFFFF; stroke-width: 1.8; }
.dp-undo { padding: 4px 11px; border-radius: 6px; font-size: 12.5px; background: rgba(var(--aw-p), 0.07); box-shadow: inset 0 0 0 1px rgba(var(--aw-p), 0.12); transition: transform 0.12s, filter 0.12s; }
.dp-toast.is-undone .dp-undo { display: none; }
.dp .dp-x { width: 12px; height: 12px; stroke: var(--aw-dim); stroke-width: 1.6; }
.dp-bar { flex: none; display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 14px; border-top: 1px solid rgba(var(--aw-p), 0.07); }
.dp-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px; white-space: nowrap;
  color: var(--aw-ink); background: var(--aw-control); box-shadow: var(--aw-control-shadow); transition: opacity 0.25s, transform 0.12s, filter 0.12s;
}
.dp-btn.primary { color: #FFFFFF; background: var(--aw-brand); box-shadow: none; }
.dp-btn.primary kbd { color: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.2); }
.dp .dp-btn svg { width: 13px; height: 13px; stroke-width: 1.7; }
.dp[data-picked="0"] .dp-btn { opacity: 0.45; }
.dp-btn.is-press, .dp-undo.is-press { transform: scale(0.95); filter: brightness(0.9); }
.dp-hint { margin-left: auto; font-size: 11px; color: var(--aw-dim); white-space: nowrap; }
/* The demos glide the pointer themselves; the hero's one-second transition would replay each move (ISSUE-056). */
.dp .aw-cursor, .dv .aw-cursor, .sc .aw-cursor { transition: opacity 0.3s; }
.dp .dp-cmd { position: absolute; left: 17px; top: 18px; padding: 3px 5px; border-radius: 5px; font-size: 11px; font-weight: 600; color: #1D1D1F; background: #FFFFFF; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); opacity: 0; transition: opacity 0.15s; }
.dp .aw-cursor.is-cmd .dp-cmd { opacity: 1; }

/* For developers (partials/dev-window.html), played by devDemo() in main.js: the git chip and its panel
   (Views/GitChip.swift), the path bar's editor and command row (Views/PathBar.swift), and Terminal opening on top. */
.dv .aw-win { height: calc(740px + var(--grow, 0px)); }
.dv .aw-side { width: 180px; }
.dv-pathrow {
  position: relative; z-index: 4; flex: none; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px;
  font-size: 12.5px; border-bottom: 1px solid rgba(var(--aw-p), 0.07);
}
.dv-crumbs { display: flex; align-items: center; gap: 5px; color: var(--aw-dim); white-space: nowrap; }
.dv-crumbs i, .dv-crumbs + * i { font-style: normal; }
.dv-crumbs i { color: var(--aw-off); }
.dv-crumbs b { color: var(--aw-ink); font-weight: 600; }
.dv-field {
  flex: 1; display: none; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border-radius: 7px;
  font: 12.5px/1 ui-monospace, 'SF Mono', Menlo, monospace; color: var(--aw-ink); background: var(--aw-control);
  box-shadow: 0 0 0 1px rgba(var(--aw-p), 0.12), 0 0 0 3.5px color-mix(in srgb, var(--aw-brand) 35%, transparent);
}
.dv-pathrow.is-editing .dv-field { display: flex; }
.dv-pathrow.is-editing .dv-crumbs, .dv-pathrow.is-editing .dv-chipwrap, .dv-pathrow.is-editing .dv-hint { display: none; }
.dv-fieldicon { width: 16px; height: 14.08px; }
.dv-typed { white-space: pre; border-radius: 2px; }
.dv-typed.is-all { background: color-mix(in srgb, var(--aw-brand) 32%, transparent); }
.dv-caret { flex: none; width: 1.5px; height: 15px; margin-left: -7px; background: var(--aw-ink); animation: dv-blink 1s steps(1) infinite; }
.dv-typed.is-all + .dv-caret { visibility: hidden; }
@keyframes dv-blink { 50% { opacity: 0; } }
.dv-tab { margin-left: auto; font: 11px -apple-system, BlinkMacSystemFont, sans-serif; color: var(--aw-dim); visibility: hidden; }
.dv-pathrow.has-rows .dv-tab { visibility: visible; }
.dv-chipwrap { position: relative; margin-left: auto; }
.dv-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 12px; white-space: nowrap;
  font-size: 11.5px; font-weight: 500; color: var(--aw-brand); background: color-mix(in srgb, var(--aw-brand) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--aw-brand) 28%, transparent); transition: background-color 0.2s, box-shadow 0.2s;
}
.dv-chip.is-open { background: color-mix(in srgb, var(--aw-brand) 24%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--aw-brand) 55%, transparent); }
.dv .dv-chip svg { width: 13px; height: 13px; stroke-width: 1.5; }
.dv-changes { display: inline-flex; align-items: center; gap: 5px; padding-left: 7px; border-left: 1px solid color-mix(in srgb, var(--aw-brand) 30%, transparent); color: var(--aw-ink-2); }
.dv-changes i, .dv-pop-card b i { width: 7px; height: 7px; border-radius: 50%; background: #F59E0B; }
.dv-hint { font-size: 11px; color: var(--aw-faint); white-space: nowrap; }
.dv-pop {
  position: absolute; top: calc(100% + 10px); left: 50%; width: 300px; margin-left: -150px; display: none; flex-direction: column; gap: 12px;
  padding: 14px; border-radius: 12px; font-size: 12.5px; text-align: left; white-space: normal; transform-origin: 50% 0;
  background: var(--aw-control); box-shadow: 0 0 0 1px rgba(var(--aw-p), 0.1), 0 14px 34px rgba(0, 0, 0, 0.28);
}
.dv-pop.is-open { display: flex; }
.dv-pop-h { font-size: 10.5px; font-weight: 600; letter-spacing: 0.03em; color: var(--aw-dim); }
.dv-pop-branch { display: flex; align-items: center; gap: 10px; }
.dv-pop-branch > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.dv-pop-branch b { font-size: 13.5px; font-weight: 600; }
.dv-pop-branch small, .dv-pop-card small, .dv-pop-note { font-size: 11px; line-height: 1.35; color: var(--aw-dim); }
.dv-pop-icon { flex: none; width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #FFFFFF; background: var(--aw-brand); }
.dv .dv-pop-icon svg { width: 16px; height: 16px; stroke-width: 1.5; }
.dv-pop-card { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 9px; background: rgba(var(--aw-p), 0.05); box-shadow: inset 0 0 0 1px rgba(var(--aw-p), 0.08); }
.dv-pop-card b { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.dv-pop-counts { font-size: 12px; color: var(--aw-dim); }
.dv-pop-counts em { margin: 0 4px 0 12px; font-style: normal; font-weight: 600; color: var(--aw-ink); }
.dv-pop-counts em:first-child { margin-left: 0; }
.dv-pop-counts em.c { color: #E8890C; }
.dv-pop-counts em.n { color: #22A55A; }
.dv-pop-btns { display: flex; gap: 8px; }
.dv-pop-btn { padding: 5px 11px; border-radius: 6px; font-size: 12px; background: var(--aw-control); box-shadow: var(--aw-control-shadow); }
.dv-pop-btn.primary { color: #FFFFFF; background: var(--aw-brand); box-shadow: none; }
.dv-drop {
  position: absolute; left: 14px; top: calc(100% + 4px); width: 560px; display: none; flex-direction: column; gap: 2px; padding: 6px;
  border-radius: 10px; background: color-mix(in srgb, var(--aw-win) 94%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 0 0 1px rgba(var(--aw-p), 0.12), 0 6px 28px rgba(0, 0, 0, 0.18); transform-origin: 30% 0;
}
.dv-drop.is-open { display: flex; }
.dv-cmd { display: flex; align-items: center; gap: 10px; height: 28px; padding: 0 8px; border-radius: 6px; color: #FFFFFF; background: var(--aw-brand); }
.dv .dv-appicon { width: 18px; height: 18px; }
.dv-cmd b { font-weight: 500; }
.dv-cmd code { margin-left: auto; font: 11px ui-monospace, 'SF Mono', Menlo, monospace; color: rgba(255, 255, 255, 0.85); }
.dv-ret { font-size: 11px; }
.dv-drop-hints { display: flex; gap: 14px; margin-top: 4px; padding: 7px 8px 2px; border-top: 1px solid rgba(var(--aw-p), 0.1); font-size: 11px; color: var(--aw-dim); white-space: nowrap; }
.dv-drop-end { margin-left: auto; }
.dv-list { flex: 1; min-height: 0; padding: 6px 8px 0; }
.dv-head, .dv-row { display: grid; grid-template-columns: minmax(0, 1fr) 128px 70px 104px; gap: 10px; align-items: center; padding: 0 12px; }
.dv-head { height: 28px; font-size: 11px; font-weight: 600; color: var(--aw-dim); }
.dv-row { height: 30px; border-radius: 6px; }
.dv-row:nth-child(odd) { background: rgba(var(--aw-p), 0.03); }
.dv-row > span:not(.dp-name) { font-size: 12px; color: var(--aw-dim); white-space: nowrap; }
.dv-head span:nth-child(3), .dv-row > span:nth-child(3) { text-align: right; }
.dv-status { flex: none; display: flex; align-items: center; height: 30px; padding: 0 16px; font-size: 11px; color: var(--aw-dim); border-top: 1px solid rgba(var(--aw-p), 0.07); }
/* Terminal, the app it opens: always dark, on top of the FileOS window. */
.dv-term {
  position: absolute; right: 44px; bottom: 66px; z-index: 5; width: 560px; border-radius: 10px; overflow: hidden; visibility: hidden;
  color: #E6E6E6; background: #1E1E1E; font: 12.5px/1.55 ui-monospace, 'SF Mono', Menlo, monospace;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 26px 60px rgba(0, 0, 0, 0.45);
}
.dv-term.is-on { visibility: visible; }
.dv-term-bar { position: relative; display: flex; align-items: center; height: 30px; padding: 0 12px; font: 12px -apple-system, BlinkMacSystemFont, sans-serif; color: #B5B5BA; background: #2D2D2F; }
.dv-term-bar > span:last-child { position: absolute; left: 0; right: 0; text-align: center; }
.dv-term-body { min-height: 236px; padding: 10px 14px 12px; white-space: pre; }
.dv-term-body .d { color: #9A9AA2; }
.dv-term-body .u { color: #7DD3A8; }
.dv-term-body .r { color: #F87171; }
.dv-term-caret { display: inline-block; width: 7.5px; height: 15px; vertical-align: -3px; background: #E6E6E6; animation: dv-blink 1s steps(1) infinite; }
.dv .dv-key { position: absolute; left: 17px; top: 18px; padding: 3px 6px; border-radius: 5px; font-size: 11px; font-weight: 600; color: #1D1D1F; background: #FFFFFF; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); opacity: 0; transition: opacity 0.15s; }
.dv .aw-cursor.is-key .dv-key { opacity: 1; }

/* Smart Clean (partials/clean-window.html), played by cleanDemo() in main.js: the app's page (Views/BrushUpView.swift),
   a suggestion's review, the toast, the Empty Trash question and the disk ring filling back up. */
.sc .aw-win { height: calc(860px + var(--grow, 0px)); }
.sc .aw-side { width: 180px; }
.aw-row svg.sc-ws { width: 18px; height: 15.84px; stroke: none; }
.sc-body { position: relative; flex: 1; min-height: 0; overflow: hidden; border-top: 1px solid rgba(var(--aw-p), 0.07); }
.sc-page, .sc-review { position: absolute; inset: 0; padding: 22px 28px; display: flex; flex-direction: column; gap: 18px; }
.sc-review { display: none; }
.sc-review.is-on { display: flex; }
.sc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.sc-head h4 { margin: 0; font-size: 22px; font-weight: 700; }
.sc-head p { max-width: 540px; margin: 3px 0 0; font-size: 12.5px; color: var(--aw-dim); }
.sc-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 7px; font-size: 12.5px; white-space: nowrap; background: var(--aw-control); box-shadow: var(--aw-control-shadow); }
.sc .sc-btn svg { width: 13px; height: 13px; stroke-width: 1.6; }
.sc-disk, .sc-card { background: var(--aw-card); box-shadow: var(--aw-card-shadow), inset 0 0 0 1px rgba(var(--aw-p), 0.06); }
.sc-disk { display: flex; align-items: center; gap: 22px; padding: 18px 22px; border-radius: 16px; }
.sc-ring { position: relative; flex: none; width: 112px; height: 112px; }
.sc .sc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); fill: none; }
.sc .sc-track { stroke: rgba(var(--aw-p), 0.09); stroke-width: 11; }
.sc .sc-arc { stroke: #E8890C; stroke-width: 11; stroke-linecap: round; transition: stroke 0.6s; }
.sc .sc-arc.is-ok { stroke: var(--aw-brand); }
.sc-ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sc-ring-text b { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.sc-ring-text small { margin-top: 1px; font-size: 9.5px; color: var(--aw-dim); }
.sc-freed {
  position: absolute; left: 50%; top: -14px; padding: 4px 10px; border-radius: 999px; white-space: nowrap; opacity: 0; transform: translateX(-50%);
  font-size: 15px; font-weight: 700; color: #FFFFFF; background: #22A55A; box-shadow: 0 8px 20px rgba(34, 165, 90, 0.4);
}
.sc-disk-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sc-disk-name { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.sc-disk-name b { font-size: 15px; }
.sc-disk-name span { font-size: 12.5px; color: var(--aw-dim); font-variant-numeric: tabular-nums; }
.sc-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: 12px; }
.sc-legend span { display: inline-flex; align-items: center; gap: 5px; }
.sc-legend span[hidden] { display: none; }
.sc-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.sc-legend em { font-style: normal; color: var(--aw-dim); font-variant-numeric: tabular-nums; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.sc-could, .sc-trash { display: inline-flex; align-items: center; gap: 6px; height: 28px; border-radius: 8px; font-size: 12.5px; white-space: nowrap; }
.sc-could { padding: 0 11px; color: #7EE2A8; background: rgba(48, 209, 88, 0.12); box-shadow: inset 0 0 0 1px rgba(48, 209, 88, 0.32); }
.sc-trash { padding: 0 4px 0 10px; color: #F8CB7A; background: rgba(245, 158, 11, 0.1); box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.35); }
.sc-trash[hidden] { display: none; }
.sc .sc-could svg, .sc .sc-trash svg { width: 13px; height: 13px; stroke-width: 1.5; }
.sc-could b, .sc-trash b { font-variant-numeric: tabular-nums; }
.sc-empty { margin-left: 6px; padding: 3px 9px; border-radius: 6px; color: var(--aw-ink); background: rgba(var(--aw-p), 0.08); transition: transform 0.12s, filter 0.12s; }
.sc-group { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; }
.sc-group i { flex: 1; height: 1px; background: rgba(var(--aw-p), 0.08); }
.sc-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 500; }
.sc-pill.safe { color: #7EE2A8; background: rgba(48, 209, 88, 0.12); box-shadow: inset 0 0 0 1px rgba(48, 209, 88, 0.32); }
.sc .sc-pill svg { width: 10px; height: 10px; stroke-width: 1.8; }
.sc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sc-card { display: flex; flex-direction: column; align-items: center; height: 172px; padding: 18px 16px 0; border-radius: 16px; transition: transform 0.15s; }
.sc-card.is-press { transform: scale(0.97); }
.sc-card[hidden] { display: none; }
.sc-folder { width: 54px; height: 47.52px; }
.sc-card b { margin-top: 10px; font-size: 14px; font-weight: 600; }
.sc-card small { margin-top: 3px; font-size: 12px; color: var(--aw-dim); }
.sc-card-foot { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: auto; padding: 12px 2px 14px; border-top: 1px solid rgba(var(--aw-p), 0.07); }
.sc-card-foot strong { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sc-back { font-size: 13px; color: var(--aw-brand); }
.sc-rhead { display: flex; align-items: flex-start; gap: 14px; }
.sc-rhead .sc-folder { width: 48px; height: 42.24px; }
.sc-rtitle { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; font-weight: 600; }
.sc-rhead p:not(.sc-rtitle) { margin: 4px 0 0; font-size: 12.5px; color: var(--aw-dim); }
.sc-items { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: var(--aw-docs); box-shadow: var(--aw-docs-shadow), inset 0 0 0 1px rgba(var(--aw-p), 0.06); }
.sc-item { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto 64px; align-items: center; gap: 12px; height: 50px; padding: 0 14px; }
.sc-item + .sc-item { border-top: 1px solid rgba(var(--aw-p), 0.06); }
.sc-check { display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 4px; background: var(--aw-brand); }
.sc .sc-check svg { width: 11px; height: 11px; stroke: #FFFFFF; stroke-width: 2.4; }
.sc-item b { display: block; overflow: hidden; font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.sc-item small { display: block; font-size: 11px; color: var(--aw-dim); white-space: nowrap; }
.sc-reason { font-size: 11.5px; color: var(--aw-dim); white-space: nowrap; }
.sc-size { text-align: right; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.sc-rfoot { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--aw-dim); }
.sc-move { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 7px; font-size: 13px; font-weight: 500; color: #FFFFFF; background: var(--aw-brand); transition: transform 0.12s, filter 0.12s; }
.sc-move.is-press, .sc-empty.is-press, .sc-alert-btn.is-press { transform: scale(0.95); filter: brightness(0.9); }
.sc-toast {
  position: absolute; left: 50%; bottom: 44px; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px;
  font-size: 13px; white-space: nowrap; visibility: hidden; transform: translateX(-50%);
  background: color-mix(in srgb, var(--aw-win) 92%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 0 0 1px rgba(var(--aw-p), 0.1), 0 6px 18px rgba(0, 0, 0, 0.22);
}
.sc-toast.is-on { visibility: visible; }
.sc-toast > span:not(.sc-undo) { display: flex; flex-direction: column; gap: 1px; }
.sc-toast small { font-size: 11px; color: var(--aw-dim); }
.sc .sc-tick { width: 20px; height: 20px; stroke: none; }
.sc .sc-tick path:first-child { fill: #34C759; }
.sc .sc-tick .sc-tick-mark { fill: none; stroke: #FFFFFF; stroke-width: 1.8; }
.sc-undo { padding: 4px 11px; border-radius: 6px; font-size: 12.5px; background: rgba(var(--aw-p), 0.07); box-shadow: inset 0 0 0 1px rgba(var(--aw-p), 0.12); }
.sc-toast.no-undo .sc-undo { display: none; }
.sc-alert {
  position: absolute; left: 50%; top: 46%; z-index: 5; width: 270px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 16px 16px;
  border-radius: 14px; text-align: center; visibility: hidden; transform: translate(-50%, -50%);
  background: color-mix(in srgb, var(--aw-win) 94%, transparent); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: 0 0 0 1px rgba(var(--aw-p), 0.12), 0 24px 60px rgba(0, 0, 0, 0.35);
}
.sc-alert.is-on { visibility: visible; }
.sc-alert img { width: 60px; height: 60px; margin: -4px 0 0; }
.sc-alert b { font-size: 13.5px; }
.sc-alert p { margin: 0 0 6px; font-size: 11.5px; line-height: 1.4; color: var(--aw-ink-2); }
.sc-alert-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.sc-alert-btn { height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 7px; font-size: 13px; background: var(--aw-control); box-shadow: var(--aw-control-shadow); transition: transform 0.12s, filter 0.12s; }
.sc-alert-btn.danger { color: #FF453A; font-weight: 500; }

/* Laid out as a narrower app window (data-w="1000" on its frame, ISSUE-051), so it's shown bigger: the sidebar and
   Insights narrow a little, folders sit three across, and the toolbar drops what macOS would move into its » menu
   (the view options; the filter field becomes its magnifier). */
.sd .aw-side { width: 180px; }
.sd .sd-panel { width: 252px; }
.sd .dl-grid { grid-template-columns: repeat(3, 150px); gap: 10px 12px; }
.sd .dl-body { padding-top: 10px; }
.sd .aw-toolbar > .aw-spacer + .aw-cap { display: none; }
.sd .aw-search { width: 34px; padding: 0; justify-content: center; font-size: 0; }
.sd .sd-sec { margin-top: 8px !important; }
.sd-body { flex: 1; min-height: 0; display: flex; }
.sd-body > .dl-body { flex: 1; min-width: 0; }
.sd-panel { flex: none; width: 300px; display: flex; flex-direction: column; border-left: 1px solid rgba(var(--aw-p), 0.07); background: rgba(var(--aw-p), 0.025); }
.sd-panel-in { flex: 1; min-height: 0; overflow: hidden; padding: 18px; display: flex; flex-direction: column; gap: 22px; }
.sd-head { display: flex; flex-direction: column; gap: 3px; }
.sd-head b { font-size: 15px; font-weight: 600; }
.sd-head span { color: var(--aw-dim); }
.sd-head strong { margin-right: 4px; font-size: 22px; font-weight: 600; color: var(--aw-ink); }
.sd-head small { font-size: 12.5px; color: var(--aw-dim); }
.sd-group { display: flex; flex-direction: column; gap: 10px; }
.sd-h { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; color: var(--aw-dim); }
.sd-row { display: flex; flex-direction: column; gap: 5px; }
.sd-row-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.sd-row-top b { font-weight: 500; }
.sd-row-top span { margin-left: auto; color: var(--aw-dim); font-variant-numeric: tabular-nums; }
.sd-dot { width: 8px; height: 8px; margin: 0 3px; border-radius: 50%; background: var(--t); }
.aw .sd-folder { width: 14px; height: 12px; }
.sd-bar { height: 5px; border-radius: 3px; overflow: hidden; background: rgba(var(--aw-p), 0.07); }
.sd-bar i { display: block; width: var(--w); min-width: 3px; height: 100%; border-radius: 3px; background: var(--t); }
.sd-more { font-size: 11px; color: var(--aw-dim); }
.sd-card { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px; border-radius: 10px; background: rgba(var(--aw-p), 0.05); box-shadow: inset 0 0 0 1px rgba(var(--aw-p), 0.08); }
.sd-card b { font-size: 12.5px; font-weight: 600; }
.sd-card small { font-size: 11.5px; color: var(--aw-dim); }
.sd-btn { margin-top: 7px; padding: 4px 11px; border-radius: 6px; font-size: 12px; background: rgba(var(--aw-p), 0.1); }
.sd-tidy { flex: none; display: flex; align-items: center; justify-content: center; height: 36px; margin: 0 18px 18px; border-radius: 8px; font-weight: 500; color: #FFFFFF; background: var(--aw-brand); }
.checks-green { --check: #8CD3A5; }

/* ---- Workspaces: four example workspaces to click through ---- */

.ws-split .split-text { flex: 1 1 380px; max-width: 420px; }
.ws-split .split-text .h2 { font-size: clamp(30px, 2.9vw, 38px); }
.ws-tabs { margin-top: 6px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ws-tabs button {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px;
  border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03);
  font: inherit; color: var(--ink); text-align: left; cursor: pointer; transition: background-color 0.25s, border-color 0.25s, transform 0.2s var(--ease-out);
}
.ws-tabs button:hover { background: rgba(255, 255, 255, 0.06); }
.ws-tabs button:active { transform: scale(0.98); }
.ws-tabs button[aria-selected="true"] {
  background: linear-gradient(170deg, color-mix(in srgb, var(--ws) 22%, transparent), rgba(255, 255, 255, 0.03));
  border-color: color-mix(in srgb, var(--ws) 60%, transparent);
}
.ws-tab-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ws-tab-text strong { font-size: 15px; font-weight: 600; white-space: nowrap; }
/* The short description is for screen readers; the line under the tabs says it for everyone. */
.ws-tab-text small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ws-tab-folder { flex: none; width: 30px; height: 26.4px; overflow: visible; }
.ws-tab-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--ws); transform: scaleX(0); transform-origin: 0 50%; }
.ws-tabs.is-auto button[aria-selected="true"] .ws-tab-progress { animation: ws-progress 7s linear forwards; }
.ws-tabs.is-paused button[aria-selected="true"] .ws-tab-progress { animation-play-state: paused; }
@keyframes ws-progress { to { transform: scaleX(1); } }

/* The mess the selected workspace solves; a fixed height so switching doesn't move the page. */
.ws-problem { margin: 0; font-size: 16px; color: var(--ink-2); text-wrap: pretty; min-height: 4.6em; }
.ws-shot { border-radius: 14px; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1); }
.ws-shot .screen-inner { pointer-events: auto; }

/* The window: FileOS's workspace page in its dark theme (boards 41 and 55), drawn by main.js at 1280 px and scaled. */
.wd { width: var(--board-w, 1280px); padding: 20px; font: 13px/1.35 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif; color: #EDEDF0; text-align: left; }
.wd svg { display: inline-block; }
.wd-win { display: flex; height: calc(820px + var(--grow, 0px)); background: #1C1C1F; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; }
.wd-side { flex: none; width: 210px; padding: 14px 10px; background: #232327; border-right: 1px solid rgba(255, 255, 255, 0.06); display: flex; flex-direction: column; gap: 14px; }
.wd-lights { display: flex; gap: 8px; padding: 2px 6px 4px; }
.wd-lights i { width: 12px; height: 12px; border-radius: 50%; }
.wd-group { display: flex; flex-direction: column; gap: 1px; }
.wd-h { padding: 0 8px 4px; font-size: 11px; font-weight: 600; color: #8E8E95; }
.wd-row {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 28px; padding: 0 8px; border: 0; border-radius: 6px;
  background: none; font: inherit; color: #EDEDF0; text-align: left; cursor: default;
}
button.wd-row { cursor: pointer; }
button.wd-row:hover { background: rgba(255, 255, 255, 0.05); }
.wd-row.is-on { background: rgba(255, 255, 255, 0.1); font-weight: 500; }
.wd-row > svg, .wd-bar svg, .wd-where svg, .wd-path svg { flex: none; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wd-row > svg { width: 16px; height: 16px; stroke: #A897F3; stroke-width: 1.4; }
/* The app's glass folder (Views/FolderIcon.swift) at the app's sizes: 18 pt in the sidebar, 54 on a card, 56 in the
   page's header (ISSUE-052). */
.wd-gf-mini { flex: none; width: 18px; height: 15.84px; }
.wd-gf { position: relative; flex: none; width: 54px; height: 47.52px; margin-top: 4px; overflow: visible; }
.wd-gf-head { width: 56px; height: 49.28px; margin-top: 0; }
.wd-card.is-missing .wd-gf { opacity: 0.55; }

.wd-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wd-bar { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.wd-btn { width: 30px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #EDEDF0; }
.wd-btn.on { background: rgba(255, 255, 255, 0.06); }
.wd-btn svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.6; }
.wd-title { display: flex; align-items: center; gap: 8px; margin-left: 6px; font-size: 15px; font-weight: 600; }
.wd-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.wd-seg { display: flex; padding: 2px; border-radius: 7px; background: rgba(255, 255, 255, 0.06); }
.wd-seg span { width: 30px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 5px; color: #A1A1A8; }
.wd-seg span.on { background: rgba(255, 255, 255, 0.14); color: #EDEDF0; }
.wd-seg svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.5; }
.wd-search { display: flex; align-items: center; gap: 8px; width: 210px; height: 28px; padding: 0 10px; border-radius: 7px; background: rgba(255, 255, 255, 0.06); color: #8E8E95; white-space: nowrap; overflow: hidden; }
.wd-search svg { width: 13px; height: 13px; stroke: #8E8E95; stroke-width: 1.6; }
.wd-path { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.02); color: #A1A1A8; }
.wd-path b { color: #EDEDF0; font-weight: 600; }
.wd-path svg { width: 9px; height: 9px; stroke: #6E6E75; stroke-width: 2.4; }
.wd-path em { margin-left: auto; font-style: normal; font-size: 11px; color: #6E6E75; }

.wd-body { flex: 1; min-height: 0; display: flex; }
.wd-page { flex: 1; min-width: 0; padding: 22px 28px; display: flex; flex-direction: column; gap: 22px; }
.wd-head { display: flex; align-items: center; gap: 14px; }
.wd-head h4 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.2px; }
.wd-head p { margin: 2px 0 0; color: #A1A1A8; }
.wd-add { margin-left: auto; display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: 7px; background: var(--ws); color: #FFFFFF; font-weight: 600; }
.wd-add svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; }
.wd-label { display: flex; gap: 6px; margin-bottom: 10px; font-size: 11px; font-weight: 600; color: #8E8E95; }
.wd-label span { color: #6E6E75; font-weight: 500; }
.wd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; } /* the app's cards, 200 to 260 pt (ISSUE-052) */
.wd-card {
  position: relative; height: 184px; padding: 16px 10px 0; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)); border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 10px 26px rgba(0, 0, 0, 0.32);
}
.wd-glow { position: absolute; left: 50%; top: 10px; width: 112px; height: 68px; margin-left: -56px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(10px); }
.wd-more { position: absolute; right: 10px; top: 10px; width: 24px; height: 24px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); display: flex; align-items: center; justify-content: center; gap: 2px; }
.wd-more i { width: 3px; height: 3px; border-radius: 50%; background: #A1A1A8; }
.wd-name { position: relative; margin-top: 13px; max-width: 100%; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-where { position: relative; margin-top: 5px; display: flex; align-items: center; gap: 5px; max-width: 100%; font-size: 12px; color: #A1A1A8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-where svg { width: 12px; height: 12px; stroke: #8E8E95; stroke-width: 1.5; }
.wd-foot { position: relative; margin-top: auto; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 0 13px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.wd-meta { font-size: 11px; color: #8E8E95; font-variant-numeric: tabular-nums; }
.wd-pill { display: flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 11px; font-weight: 500; border: 1px solid; white-space: nowrap; }
.wd-pill.git { background: rgba(48, 209, 88, 0.14); border-color: rgba(48, 209, 88, 0.4); color: #8CE8A8; }
.wd-pill.time { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); color: #C7C7CC; }
.wd-pill.missing { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.38); color: #F8CB7A; }
.wd-shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.wd-image { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wd-art { position: relative; height: 128px; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.wd-image b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-docs { border-radius: 10px; background: rgba(255, 255, 255, 0.025); border: 1px solid rgba(255, 255, 255, 0.06); overflow: hidden; }
.wd-doc { display: grid; grid-template-columns: 26px minmax(0, 1fr) 190px 80px 64px; gap: 12px; align-items: center; height: 38px; padding: 0 12px; }
.wd-doc + .wd-doc { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.wd-doc > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-doc .dim { color: #A1A1A8; }
.wd-doc .num { color: #A1A1A8; text-align: right; font-variant-numeric: tabular-nums; }
.wd-kind {
  position: relative; display: flex; align-items: flex-end; justify-content: center; width: 20px; height: 25px; padding-bottom: 3px;
  border-radius: 2px 6px 2px 2px; background: #F2F2F5; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}
.wd-kind i { font-style: normal; font-size: 6.5px; font-weight: 800; line-height: 1; color: #FFFFFF; background: var(--k); border-radius: 2px; padding: 1px 2px; }
/* Add folders or files, after the cards; Changed lately under the page, where the app puts it when the page is
   narrower than 760 pt (Views/WorkspaceView.swift, widthForColumn; ISSUE-052). */
.wd-addcard {
  height: 184px; padding: 14px; border-radius: 18px; border: 1.5px dashed rgba(255, 255, 255, 0.16);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
}
.wd-addcard > span { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.06); }
.wd-addcard svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.wd-addcard b { font-weight: 500; }
.wd-addcard small { font-size: 11px; color: #8E8E95; }
.wd-recent { display: flex; flex-direction: column; gap: 2px; }
.wd-recent .wd-label em { margin-left: auto; font-style: normal; font-weight: 500; color: var(--ws); }
.wd-change { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 7px; }
.wd-change span { display: flex; flex-direction: column; min-width: 0; }
.wd-change b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-change small { font-size: 11px; color: #8E8E95; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Switching workspace: the page's parts arrive one after another. */
.wd-anim > *, .wd-anim .wd-card, .wd-anim .wd-addcard, .wd-anim .wd-image, .wd-anim .wd-change { animation: wd-in 0.55s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes wd-in { from { opacity: 0; transform: translateY(12px); } }

/* Image previews, drawn in CSS. */
.art-receipt { background: #D9D4CB; }
.art-receipt::before {
  content: ''; position: absolute; left: 50%; top: 12px; bottom: -6px; width: 78px; margin-left: -39px; background:
    linear-gradient(#2B2B2B, #2B2B2B) 10px 14px / 40px 6px no-repeat,
    repeating-linear-gradient(#FFFFFF 0 9px, #E2E2E2 9px 11px) 0 30px / 100% 60px no-repeat,
    linear-gradient(#2B2B2B, #2B2B2B) 10px 96px / 58px 5px no-repeat, #FFFFFF;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25); transform: rotate(-4deg);
}
.art-letter { background: #EFEBE3; }
.art-letter::before {
  content: ''; position: absolute; inset: 14px 26px -4px; background:
    linear-gradient(#2E9E5B, #2E9E5B) 12px 12px / 38px 10px no-repeat,
    repeating-linear-gradient(transparent 0 8px, #DADADA 8px 10px) 12px 36px / calc(100% - 24px) 60px no-repeat, #FFFFFF;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}
.art-desk { background: linear-gradient(180deg, #F1E4CF 0 62%, #B98A5B 62%); }
.art-desk::before { content: ''; position: absolute; left: 50%; bottom: 40px; width: 92px; height: 58px; margin-left: -56px; border-radius: 5px; background: linear-gradient(160deg, #4B5BD8, #1F2A6B); box-shadow: 0 0 0 4px #2A2A2E; }
.art-desk::after { content: ''; position: absolute; right: 30px; bottom: 46px; width: 26px; height: 34px; border-radius: 50% 50% 6px 6px; background: radial-gradient(circle at 50% 30%, #3E9E5A, #24683A); }
.art-fuji { background: linear-gradient(180deg, #FFB38A 0%, #F07A8E 45%, #7C5CC4 100%); }
.art-fuji::before { content: ''; position: absolute; inset: 34px -10px 0; background: #2E2A5C; clip-path: polygon(0 100%, 34% 18%, 44% 8%, 56% 8%, 66% 18%, 100% 100%); }
.art-fuji::after { content: ''; position: absolute; inset: 34px -10px 0; background: #FFFFFF; clip-path: polygon(30.5% 24%, 44% 8%, 56% 8%, 69.5% 24%, 62% 22%, 56% 27%, 50% 22%, 44% 27%, 38% 22%); }
.art-city { background: linear-gradient(180deg, #0B1026, #2B2560); }
.art-city::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 76%;
  background: radial-gradient(circle, #FFD47A 0 1.2px, transparent 1.6px) 0 0 / 9px 11px, linear-gradient(#323A7A, #20255A);
  clip-path: polygon(0 40%, 12% 40%, 12% 15%, 24% 15%, 24% 50%, 34% 50%, 34% 0, 46% 0, 46% 35%, 58% 35%, 58% 20%, 70% 20%, 70% 55%, 80% 55%, 80% 30%, 92% 30%, 92% 45%, 100% 45%, 100% 100%, 0 100%);
}
.art-torii {
  background:
    linear-gradient(#D93A2F, #D93A2F) 50% 26% / 72% 11px no-repeat,
    linear-gradient(#D93A2F, #D93A2F) 50% 42% / 54% 7px no-repeat,
    linear-gradient(#C73228, #C73228) 34% 100% / 9px 66% no-repeat,
    linear-gradient(#C73228, #C73228) 66% 100% / 9px 66% no-repeat,
    linear-gradient(180deg, #2F6A4D, #183D2C);
}
.art-logo { background: #6B56DC; display: flex; align-items: center; justify-content: center; gap: 12px; }
.art-logo::before { content: ''; width: 46px; height: 46px; border-radius: 50%; background: conic-gradient(#FFFFFF 0 25%, #C9BEFF 0 50%, #FFFFFF 0 75%, #C9BEFF 0); }
.art-logo::after { content: ''; width: 74px; height: 30px; background: linear-gradient(#FFFFFF, #FFFFFF) 0 2px / 74px 12px no-repeat, linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)) 0 22px / 48px 6px no-repeat; }
.art-mood { background: linear-gradient(#E8B65A, #E8B65A) 0 0 / 50% 55% no-repeat, linear-gradient(#2E8C82, #2E8C82) 100% 0 / 50% 55% no-repeat, linear-gradient(#26395A, #26395A) 0 100% / 50% 45% no-repeat, #EDE9DF; }
.art-mood::before { content: ''; position: absolute; left: 18%; top: 14%; width: 36px; height: 36px; border-radius: 50%; background: #E9805A; }
.art-mood::after { content: ''; position: absolute; left: 12%; bottom: 0; width: 0; height: 0; border-left: 22px solid transparent; border-right: 22px solid transparent; border-bottom: 34px solid #E2603F; }
.art-hero { background: linear-gradient(180deg, #4A2A8A, #C2417A 70%, #F2A54A); }
.art-hero::before { content: ''; position: absolute; left: 58%; top: 46%; width: 34px; height: 34px; border-radius: 50%; background: #FFD98A; }
.art-hero::after { content: ''; position: absolute; inset: 52% -10px 0; background: #3A1F6E; clip-path: polygon(0 100%, 22% 20%, 40% 70%, 60% 0, 82% 60%, 100% 30%, 100% 100%); }
.art-phone { background: linear-gradient(160deg, #1B2340, #2F3B6B); }
.art-phone::before {
  content: ''; position: absolute; left: 50%; top: 14px; bottom: -20px; width: 66px; margin-left: -33px; border-radius: 12px; border: 3px solid #0B0D18;
  background: linear-gradient(#2F6FDB, #2F6FDB) 8px 14px / 34px 6px no-repeat, linear-gradient(#FFFFFF, #FFFFFF) 8px 28px / 44px 22px no-repeat,
    linear-gradient(#C9D8F6, #C9D8F6) 8px 56px / 44px 10px no-repeat, linear-gradient(#C9D8F6, #C9D8F6) 8px 72px / 30px 10px no-repeat, #F4F6FB;
}
.art-phone.dark::before { background: linear-gradient(#FFFFFF, #FFFFFF) 8px 14px / 26px 6px no-repeat, linear-gradient(#2F6FDB, #5B9BF5) 8px 28px / 44px 30px no-repeat, linear-gradient(#3A4570, #3A4570) 8px 64px / 44px 9px no-repeat, linear-gradient(#3A4570, #3A4570) 8px 79px / 44px 9px no-repeat, #141A33; }
.art-icon { background: radial-gradient(circle at 30% 20%, #3B4C8F, #121833); display: flex; align-items: center; justify-content: center; }
.art-icon::before { content: ''; width: 68px; height: 68px; border-radius: 16px; background: linear-gradient(150deg, #5B9BF5, #2F6FDB 55%, #1E4FB0); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.art-icon::after { content: ''; position: absolute; width: 30px; height: 30px; border-radius: 50%; border: 5px solid #FFFFFF; border-right-color: transparent; transform: rotate(45deg); }

/* ---- Light mode: the same page in daylight; every FileOS window in the app's light look ---- */

[data-theme="light"] {
  --bg: #F7F6FB;
  --ink: #16132A;
  --ink-2: #2E2A45;
  --muted: #5D5A72;
  --faint: #6F6B85;
  --soft: #4A4660;
  --line: rgba(22, 19, 42, 0.08);
  --brand-light: #6B56DC;
  --brand-pale: #4E3BBE;
  --error: #C0362C;
  --glass: linear-gradient(170deg, #FFFFFF, #F8F7FC);
  --glass-edge: rgba(22, 19, 42, 0.08);
  color-scheme: light;
}
[data-theme="light"] a:hover { color: #2F2290; }
[data-theme="light"] kbd { background: #FFFFFF; border-color: rgba(22, 19, 42, 0.14); color: var(--ink); box-shadow: 0 1px 0 rgba(22, 19, 42, 0.08); }
[data-theme="light"] .glass { box-shadow: inset 0 1px 0 #FFFFFF, 0 12px 30px rgba(40, 30, 110, 0.07); }
[data-theme="light"] .eyebrow { color: color-mix(in srgb, var(--dot) 80%, #000); }

[data-theme="light"] .btn-primary { box-shadow: 0 8px 22px rgba(107, 86, 220, 0.3); }
[data-theme="light"] .btn-ghost { color: #4E3BBE; border-color: rgba(107, 86, 220, 0.35); background: rgba(107, 86, 220, 0.07); }
[data-theme="light"] .btn-ghost:hover { background: rgba(107, 86, 220, 0.14); color: #2F2290; }

[data-theme="light"] .topbar-inner { background: rgba(255, 255, 255, 0.6); border-color: rgba(22, 19, 42, 0.08); }
[data-theme="light"] .topbar.is-scrolled .topbar-inner { background: rgba(255, 255, 255, 0.86); box-shadow: 0 12px 32px rgba(40, 30, 90, 0.1); }
[data-theme="light"] .brand, [data-theme="light"] .brand:hover, [data-theme="light"] .footer-name { color: var(--ink); }
[data-theme="light"] .topbar-links a:hover, [data-theme="light"] .footer nav a:hover { color: var(--ink); }

[data-theme="light"] .g-file svg { filter: drop-shadow(0 6px 10px rgba(31, 20, 79, 0.2)); }
[data-theme="light"] .g-file svg path:first-child { stroke: rgba(22, 19, 42, 0.12); stroke-width: 1; }
[data-theme="light"] .badge {
  --badge-fill: #FFFFFF; --badge-tint: 0.07; color: var(--ink);
  box-shadow: 0 0 18px rgba(var(--folder-rgb), 0.16), 0 1px 2px rgba(22, 19, 42, 0.06);
}
[data-theme="light"] .badge-soon { color: var(--muted); }
[data-theme="light"] .live { background: #22A84A; box-shadow: 0 0 6px rgba(34, 168, 74, 0.5); }
[data-theme="light"] .live::after { border-color: #22A84A; }
[data-theme="light"] .hero-intro { color: #3D3955; }
[data-theme="light"] .hero-pills a { background: #FFFFFF; border-color: rgba(22, 19, 42, 0.1); box-shadow: 0 1px 2px rgba(22, 19, 42, 0.04); }
[data-theme="light"] .hero-pills a:hover { background: #F3F1FC; border-color: rgba(107, 86, 220, 0.3); color: var(--ink); }

[data-theme="light"] .shot { background: #FFFFFF; }
[data-theme="light"] .hero-bezel { box-shadow: 0 30px 70px rgba(50, 20, 140, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.7); }
[data-theme="light"] .split-shot, [data-theme="light"] .wide-shot, [data-theme="light"] .ws-shot { box-shadow: 0 30px 80px rgba(40, 30, 110, 0.16), 0 0 0 1px rgba(22, 19, 42, 0.08); }
[data-theme="light"] .bento-shot { box-shadow: 0 0 0 1px rgba(22, 19, 42, 0.08); }

[data-theme="light"] .reason:hover { border-color: rgba(107, 86, 220, 0.3); }
[data-theme="light"] .checks-blue { --check: #2F6FDB; }
[data-theme="light"] .checks-green { --check: #2E9E5B; }
[data-theme="light"] .checks-teal { --check: #0E7490; }
[data-theme="light"] .checks-amber { --check: #B45309; }
[data-theme="light"] .keys { color: #3D3955; }
[data-theme="light"] .chip-safe { background: rgba(52, 199, 89, 0.12); border-color: rgba(36, 138, 61, 0.3); color: #1E7B36; }
[data-theme="light"] .chip-call { background: rgba(245, 158, 11, 0.12); border-color: rgba(217, 119, 6, 0.32); color: #9A5400; }
[data-theme="light"] .dot-safe { background: #28A745; }
[data-theme="light"] .dot-call { background: #D97706; }

/* The Design section's small app pieces, in the app's light colours. */
[data-theme="light"] .fcard { background: linear-gradient(170deg, #FFFFFF, #F4F4F8); border-color: rgba(0, 0, 0, 0.07); box-shadow: inset 0 1px 0 #FFFFFF, 0 10px 24px rgba(30, 30, 70, 0.08); }
[data-theme="light"] .fcard small { border-top-color: rgba(0, 0, 0, 0.06); color: #8E8E93; }
[data-theme="light"] .tree { background: #FFFFFF; border-color: rgba(0, 0, 0, 0.08); color: #1D1D1F; box-shadow: 0 8px 22px rgba(30, 30, 70, 0.06); }
[data-theme="light"] .tree-path { color: #6E6E73; }
[data-theme="light"] .tree-path i { color: #AEAEB2; }
[data-theme="light"] .tree-row b { border-color: #AEAEB2; }
[data-theme="light"] .tree-row em, [data-theme="light"] .tree-more { color: #8E8E93; }

[data-theme="light"] .console { background: #FFFFFF; border-color: rgba(22, 19, 42, 0.08); box-shadow: 0 8px 22px rgba(40, 30, 110, 0.05); }
[data-theme="light"] .console code { color: #B45309; }
[data-theme="light"] .dev-card, [data-theme="light"] .keycap-card { background: #FFFFFF; box-shadow: 0 8px 22px rgba(40, 30, 110, 0.05); }
[data-theme="light"] .marquee li { color: rgba(22, 19, 42, 0.3); }

[data-theme="light"] .compare { background: linear-gradient(170deg, #FFFFFF, #FAF9FD); box-shadow: 0 12px 30px rgba(40, 30, 110, 0.06); }
[data-theme="light"] .compare thead th.us { color: var(--ink); background: rgba(107, 86, 220, 0.1); }
[data-theme="light"] .compare-finder { background: rgba(22, 19, 42, 0.05); box-shadow: inset 0 0 0 1px rgba(22, 19, 42, 0.1); }
[data-theme="light"] .compare tbody td { color: #6F6B85; }
[data-theme="light"] .compare tbody td.us { color: var(--ink); background: rgba(107, 86, 220, 0.06); }
[data-theme="light"] .compare td::before { background: #C3C0D3; }
[data-theme="light"] .compare td.us::before { background: var(--brand); }

[data-theme="light"] .caps kbd {
  background: linear-gradient(180deg, #FFFFFF, #F1F0F6); border-color: rgba(22, 19, 42, 0.12); color: var(--ink);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 3px 0 #D3D0E2;
}
[data-theme="light"] .keycap-card:hover kbd { box-shadow: inset 0 1px 0 #FFFFFF, 0 1px 0 #D3D0E2; }

[data-theme="light"] .promise {
  background: linear-gradient(170deg, #FFFFFF, #F7F6FC); border-color: rgba(22, 19, 42, 0.08);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 14px 36px rgba(40, 30, 110, 0.08);
}

[data-theme="light"] .pricing-glow { background: radial-gradient(closest-side, rgba(107, 86, 220, 0.12), rgba(107, 86, 220, 0)); }
[data-theme="light"] .ff .af { filter: drop-shadow(0 16px 22px rgba(60, 40, 160, 0.2)); }
[data-theme="light"] .sc-could, [data-theme="light"] .sc-pill.safe { color: #1F8A4C; background: rgba(52, 199, 89, 0.12); box-shadow: inset 0 0 0 1px rgba(52, 199, 89, 0.35); }
[data-theme="light"] .sc-trash { color: #B45309; }
[data-theme="light"] .sc-alert-btn.danger { color: #D70015; }
[data-theme="light"] .more-apps { background: rgba(255, 255, 255, 0.7); border-color: rgba(22, 19, 42, 0.08); }
[data-theme="light"] .founder-hey { background: #FFFFFF; box-shadow: 0 0 0 1px rgba(22, 19, 42, 0.08), 0 8px 20px rgba(40, 30, 110, 0.14); }
[data-theme="light"] .pass-wrap { filter: drop-shadow(0 24px 40px rgba(60, 40, 160, 0.14)); }
[data-theme="light"] .pass-main, [data-theme="light"] .pass-stub { background: linear-gradient(160deg, #FFFFFF, #F5F3FD); }
[data-theme="light"] .pass-save { color: #157A3A; background: rgba(52, 199, 89, 0.12); }
[data-theme="light"] .price { color: var(--ink); }

[data-theme="light"] .faq-item { border-bottom-color: rgba(22, 19, 42, 0.09); }
[data-theme="light"] .faq-item button { color: var(--ink); }
[data-theme="light"] .faq-icon { background: rgba(22, 19, 42, 0.05); }
[data-theme="light"] .faq-item button:hover .faq-icon { background: rgba(22, 19, 42, 0.09); }

[data-theme="light"] .signup-form input { color: var(--ink); }
[data-theme="light"] .signup-pill { background: #FFFFFF; border-color: rgba(22, 19, 42, 0.12); box-shadow: 0 8px 24px rgba(40, 30, 110, 0.08); }
[data-theme="light"] .signup-pill:focus-within { border-color: rgba(107, 86, 220, 0.6); box-shadow: 0 8px 24px rgba(40, 30, 110, 0.08), 0 0 0 4px rgba(107, 86, 220, 0.14); }
[data-theme="light"] .signup-stacked input { background: #FFFFFF; border-color: rgba(22, 19, 42, 0.14); }
[data-theme="light"] .signup-stacked input:focus { border-color: rgba(107, 86, 220, 0.6); }
[data-theme="light"] .signup[data-state="error"] .signup-pill, [data-theme="light"] .signup[data-state="error"] .signup-stacked input { border-color: #D92D20; }
[data-theme="light"] .signup-ask { background: #FFFFFF; border-color: rgba(22, 19, 42, 0.1); }
[data-theme="light"] .signup-ask-options button { background: #FFFFFF; border-color: rgba(22, 19, 42, 0.14); }
[data-theme="light"] .signup-ask-options button:hover { background: #F3F1FC; border-color: rgba(107, 86, 220, 0.4); }
[data-theme="light"] .signup-ask-options .signup-ask-skip { background: none; border-color: transparent; }
[data-theme="light"] .signup-done { background: #EEEBFC; border-color: rgba(107, 86, 220, 0.3); color: #2F2290; }

[data-theme="light"] .ws-tabs button { background: #FFFFFF; border-color: rgba(22, 19, 42, 0.08); box-shadow: 0 1px 2px rgba(22, 19, 42, 0.04); }
[data-theme="light"] .ws-tabs button:hover { background: #F6F5FB; }
[data-theme="light"] .ws-tabs button[aria-selected="true"] {
  background: linear-gradient(170deg, color-mix(in srgb, var(--ws) 12%, #FFFFFF), #FFFFFF);
  border-color: color-mix(in srgb, var(--ws) 50%, transparent);
}

/* The Workspaces demo window in the app's light look (as the hero's window). */
[data-theme="light"] .wd { color: #1D1D1F; }
[data-theme="light"] .wd-win { background: #FFFFFF; border-color: rgba(0, 0, 0, 0.12); }
[data-theme="light"] .wd-side { background: linear-gradient(180deg, #ECEEF1, #EFEFEF 30%); border-right-color: rgba(0, 0, 0, 0.07); }
[data-theme="light"] .wd-h { color: #9A9AA0; }
[data-theme="light"] .wd-row { color: #1D1D1F; }
[data-theme="light"] button.wd-row:hover { background: rgba(0, 0, 0, 0.05); }
[data-theme="light"] .wd-row.is-on { background: #D7DBDF; font-weight: 600; }
[data-theme="light"] .wd-row > svg { stroke: #6B56DC; }
[data-theme="light"] .wd-bar { border-bottom-color: rgba(0, 0, 0, 0.07); }
[data-theme="light"] .wd-btn { color: #3A3A3C; }
[data-theme="light"] .wd-btn.on, [data-theme="light"] .wd-seg, [data-theme="light"] .wd-search { background: rgba(0, 0, 0, 0.05); }
[data-theme="light"] .wd-seg span { color: #6E6E73; }
[data-theme="light"] .wd-seg span.on { background: #FFFFFF; color: #1D1D1F; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
[data-theme="light"] .wd-title { color: #3A3A3C; }
[data-theme="light"] .wd-path { background: rgba(0, 0, 0, 0.02); border-bottom-color: rgba(0, 0, 0, 0.06); color: #6E6E73; }
[data-theme="light"] .wd-path b { color: #1D1D1F; }
[data-theme="light"] .wd-path svg { stroke: #AEAEB2; }
[data-theme="light"] .wd-path em { color: #AEAEB2; }
[data-theme="light"] .wd-head p, [data-theme="light"] .wd-where, [data-theme="light"] .wd-doc .dim, [data-theme="light"] .wd-doc .num { color: #6E6E73; }
[data-theme="light"] .wd-where svg { stroke: #8E8E93; }
[data-theme="light"] .wd-label { color: #1D1D1F; }
[data-theme="light"] .wd-label span { color: #8E8E93; }
[data-theme="light"] .wd-card { background: linear-gradient(180deg, #EEEEEE, #FAFAFA); border-color: rgba(0, 0, 0, 0.09); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1); }
[data-theme="light"] .wd-glow { opacity: 0.45; }
[data-theme="light"] .wd-more { background: rgba(0, 0, 0, 0.07); }
[data-theme="light"] .wd-more i { background: #3A3A3C; }
[data-theme="light"] .wd-foot { border-top-color: rgba(0, 0, 0, 0.06); }
[data-theme="light"] .wd-meta { color: #8E8E93; }
[data-theme="light"] .wd-pill.git { background: rgba(52, 199, 89, 0.14); border-color: rgba(52, 199, 89, 0.4); color: #157A3A; }
[data-theme="light"] .wd-pill.time { background: rgba(0, 0, 0, 0.05); border-color: rgba(0, 0, 0, 0.08); color: #8E8E93; }
[data-theme="light"] .wd-pill.missing { background: rgba(245, 158, 11, 0.14); border-color: rgba(245, 158, 11, 0.4); color: #9A5B00; }
[data-theme="light"] .wd-art { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14); }
[data-theme="light"] .wd-docs { background: #FFFFFF; border-color: rgba(0, 0, 0, 0.08); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); }
[data-theme="light"] .wd-doc + .wd-doc { border-top-color: rgba(0, 0, 0, 0.07); }
[data-theme="light"] .wd-addcard { border-color: rgba(0, 0, 0, 0.16); }
[data-theme="light"] .wd-addcard > span { background: rgba(0, 0, 0, 0.06); }
[data-theme="light"] .wd-addcard small { color: #8E8E93; }
[data-theme="light"] .wd-change small { color: #8E8E93; }

/* ---- Small screens ---- */

@media (max-width: 760px) {
  :root { --topbar-h: 72px; }
  .topbar { padding: 10px 10px 0; }
  .topbar-inner { padding: 8px 8px 8px 14px; border-radius: 20px; }
  .topbar-links { display: none; }
  .section { padding-top: 110px; }
  .hero-art { height: 215px; }
  .greet, .greet-static { top: 146px; }
  .greet { --greet-scale: 0.7; }
  .greet-static { transform: scale(0.7); }
  .hero-stage { --pleat: 32px; margin-top: 48px; padding-bottom: 114px; }
  .demo-tip { display: none; }
  .demo-caption { display: block; bottom: 62px; font-size: 13.5px; }
  .demo-bar { bottom: 14px; gap: 2px; padding: 4px; }
  .fi-bar { bottom: 14px; gap: 10px; padding: 4px 4px 4px 14px; }
  .fi-progress { width: 90px; }
  .demo-play { width: 30px; height: 30px; }
  .demo-chap { height: 30px; padding: 0 10px; font-size: 12px; }
  .hero-stage::before { top: -60px; width: 100vw; border-radius: 0 0 20px 20px; }
  .hero-bezel { padding: 6px; border-radius: 16px; }
  .hero-shot { border-radius: 11px; }
  .folder-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .folder-cards .fcard:nth-child(3) { display: none; }
  .faq-a p { padding-right: 8px; }
  .footer nav { margin-left: 0; }
  .price { font-size: 56px; }
  .ws-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ws-tabs button { min-height: 52px; padding: 10px 12px; gap: 10px; }
  .ws-tab-text strong { font-size: 15px; }
  .ws-problem { font-size: 15px; }
  /* The comparison: one card per row, each answer labelled */
  .compare { overflow: visible; }
  .compare table, .compare tbody, .compare tr, .compare th, .compare td { display: block; min-width: 0; width: auto; }
  .compare thead { display: none; }
  .compare tbody tr { padding: 18px 20px; }
  .compare tbody tr:first-child { border-top: 0; }
  .compare th, .compare td { padding: 0; }
  .compare tbody th { margin-bottom: 10px; }
  .compare tbody td { margin-top: 8px; padding: 8px 12px; border-radius: 10px; }
  .compare tbody td.us { background: rgba(107, 86, 220, 0.14); }
  .compare td::before, .compare td.us::before {
    content: attr(data-label); position: static; display: block; width: auto; height: auto; margin-bottom: 2px;
    background: none; -webkit-mask: none; mask: none; font-size: 12px; font-weight: 600; color: var(--faint);
  }
  .compare td.us::before { color: var(--brand-pale); }
}

/* ---- Reduce Motion: everything in place, nothing moves ---- */

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-track ul + ul { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee ul { flex-wrap: wrap; justify-content: center; gap: 12px 32px; padding: 0; }
  .js [data-reveal], .js [data-words] .word { opacity: 1; transform: none; filter: none; transition: none; }
  .faq-a, .faq-icon { transition: none; }
  .badge, .live::after { animation: none; }
  .topbar { transition: none; }
  .demo-play { display: none; }
  .wd-anim > *, .wd-anim .wd-card, .wd-anim .wd-addcard, .wd-anim .wd-image, .wd-anim .wd-change { animation: none; }
  .ws-tab-progress { display: none; }
}
