/* ShiftDrop website. One visual system with the app: Ink and Tide, Instrument Sans for headlines,
   IBM Plex Sans for reading, JetBrains Mono for file names, sizes and keys. Drawings of the app
   (the wheel, the top panel, the desktop) use Segoe UI Variable, as the app does. */

@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #15171E;
  --tide: #12A58E;
  --tide-700: #0B7A69;
  --tide-300: #2DD4B4;
  --tide-50: #DDF5EF;
  --tide-900: #0F2F2A;

  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --surface-2: #EEF0F3;
  --border: #E3E5EA;
  --border-strong: #D5D8DE;
  --text: #15171E;
  --text-2: #4A4F5A;
  --text-3: #5F6573;
  --accent: #0B7A69;          /* Tide as text and lines on light */
  --accent-mark: #12A58E;     /* the slice, the done corner */
  --accent-soft: #DDF5EF;
  --on-accent: #FFFFFF;
  --button-ink: #15171E;
  --button-ink-text: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(20, 22, 30, 0.06), 0 1px 1px rgba(20, 22, 30, 0.04);
  --shadow-md: 0 1px 2px rgba(20, 22, 30, 0.06), 0 8px 24px -8px rgba(20, 22, 30, 0.16);
  --shadow-lg: 0 2px 4px rgba(20, 22, 30, 0.05), 0 24px 48px -16px rgba(20, 22, 30, 0.22);
  --pattern-ink: 21, 23, 30;

  /* The app's wheel and overlays (src/ThemeTokens.cpp, light, Solid) */
  --w-disc: #FFFFFF;
  --w-disc-line: rgba(21, 23, 30, 0.10);
  --w-tile: #EEF0F3;
  --w-tile-line: #D5D8DE;
  --w-centre: #FFFFFF;
  --w-centre-line: rgba(21, 23, 30, 0.10);
  --w-text: #1B1D23;
  --w-subtle: #5E6370;
  --w-dot: rgba(27, 29, 35, 0.25);
  --w-mark: #0B7A69;
  --w-accent: #0B7A69;
  --w-accent-hi: #2D8D7E;
  --w-shadow: rgba(20, 22, 30, 0.18);
  --w-panel: #FFFFFF;
  --w-panel-line: rgba(21, 23, 30, 0.08);
  --w-desk: #E4E7EB;
  --w-window: #FFFFFF;
  --w-window-2: #F6F7F9;
  --w-taskbar: rgba(243, 244, 246, 0.96);

  --font-display: "Instrument Sans", "IBM Plex Sans", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --font-app: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", "IBM Plex Sans", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --radius-control: 4px;
  --radius-button: 8px;
  --radius-card: 12px;
  --radius-panel: 16px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

/* Dark: set on <html> by theme.js from the visitor's choice, or from the system when they haven't chosen. */
:root[data-theme="dark"] {
  --bg: #0E1014;
  --surface: #16181E;
  --surface-2: #1E2128;
  --border: #2A2E37;
  --border-strong: #3A3F4A;
  --text: #F2F3F5;
  --text-2: #B4B9C3;
  --text-3: #959BA6;
  --accent: #2DD4B4;
  --accent-mark: #2DD4B4;
  --accent-soft: #0F2F2A;
  --on-accent: #15171E;
  --button-ink: #F2F3F5;
  --button-ink-text: #15171E;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -8px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 24px 48px -16px rgba(0, 0, 0, 0.7);
  --pattern-ink: 242, 243, 245;

  --w-disc: #1A1C22;
  --w-disc-line: rgba(255, 255, 255, 0.08);
  --w-tile: #2A2D35;
  --w-tile-line: rgba(255, 255, 255, 0.06);
  --w-centre: #141619;
  --w-centre-line: rgba(255, 255, 255, 0.08);
  --w-text: #EEF0F3;
  --w-subtle: #A9AEB8;
  --w-dot: rgba(238, 240, 243, 0.28);
  --w-mark: #2DD4B4;
  --w-shadow: rgba(0, 0, 0, 0.5);
  --w-panel: #1F2127;
  --w-panel-line: rgba(255, 255, 255, 0.10);
  --w-desk: #111317;
  --w-window: #1B1D22;
  --w-window-2: #24272D;
  --w-taskbar: rgba(27, 29, 34, 0.96);
  color-scheme: dark;
}

/* ---- Base ---------------------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--border-strong) transparent; }

.mono { font-family: var(--font-mono); font-feature-settings: "zero" 0; letter-spacing: -0.01em; }
.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: -100px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-button); box-shadow: var(--shadow-md); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* The mark: the page in ink (near-white on dark), the slice in Tide */
.mark { width: 32px; height: 32px; flex: none; }
.mark-page { fill: var(--text); }
.mark-slice { fill: var(--accent-mark); }

/* ---- Header ------------------------------------------------------------------------------------ */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.lockup:hover { color: var(--text); }
.wordmark { font: 600 1.375rem/1 var(--font-display); letter-spacing: -0.025em; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 0.9375rem; }
.nav a { text-decoration: none; color: var(--text-2); }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-link { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-button); color: var(--text-2); }
.icon-link:hover { color: var(--text); background: var(--surface-2); }
.star-link { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: var(--radius-button); box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text); text-decoration: none; font-size: 0.9375rem; font-weight: 500; white-space: nowrap; }
.star-link:hover { color: var(--text); background: var(--surface-2); }
.star-link .icon { width: 18px; height: 18px; }
.star-label { display: inline-flex; align-items: center; gap: 5px; }
.star-label .icon { width: 16px; height: 16px; color: var(--accent); }
.star-count { padding-left: 9px; border-left: 1px solid var(--border-strong); font-variant-numeric: tabular-nums; color: var(--text-2); }
.theme-toggle { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; }
.theme-toggle > span { display: contents; }
.theme-sun, :root[data-theme="dark"] .theme-moon { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; }

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

.button {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 60px; padding: 14px 28px 14px 22px;
  border-radius: var(--radius-button);
  text-decoration: none; font-weight: 500; line-height: 1.2;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease;
}
.button:active { transform: scale(0.97); }
.button-text { display: flex; flex-direction: column; gap: 3px; }
.button .icon { width: 22px; height: 22px; }
.button > [data-icon] { flex: none; display: inline-flex; }
.button-text > span { font: 600 1.25rem/1.2 var(--font-display); letter-spacing: -0.01em; }
.button-text small { font-size: 0.8125rem; font-weight: 400; opacity: 0.8; }
.button-ink { background: var(--button-ink); color: var(--button-ink-text); }
.button-ink:hover { color: var(--button-ink-text); background: color-mix(in srgb, var(--button-ink) 86%, var(--tide)); }
.button-line { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.button-line:hover { color: var(--text); border-color: var(--text-3); }
.button-small { min-height: 38px; padding: 8px 16px; font: 600 0.9375rem/1 var(--font-display); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-side .cta-row { display: grid; grid-template-columns: max-content; } /* stacked, one width */

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

.hero { padding: clamp(24px, 4vw, 56px) 0 clamp(64px, 9vw, 120px); }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; margin-bottom: clamp(40px, 5vw, 72px); }
.display { font-size: clamp(3.25rem, 9vw, 6rem); line-height: 0.98; letter-spacing: -0.04em; }
.hero-side { display: grid; gap: 32px; padding-bottom: 8px; }
.lede { font-size: 1.1875rem; line-height: 1.55; color: var(--text-2); max-width: 36em; }
.fineprint { font-size: 1rem; color: var(--text-3); }

/* ---- The demo desktop -------------------------------------------------------------------- */

.stage {
  position: relative;
  border-radius: var(--radius-panel);
  overflow: hidden;
  background: var(--w-desk);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm);
  font-family: var(--font-app);
  user-select: none; -webkit-user-select: none;
  touch-action: manipulation;
  outline: none;
}
.desk {
  position: relative;
  height: clamp(520px, 52vw, 660px);
  padding: 32px;
  /* The page pattern, 44 px tile, at 7%: the mark's page in outline */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M17 13h3.5a6 6 0 0 0 6 6v8.5a2 2 0 0 1-2 2H17a2 2 0 0 1-2-2V15a2 2 0 0 1 2-2z' fill='%2315171E' fill-opacity='0.07' transform='rotate(-8 21 21)'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .desk { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M17 13h3.5a6 6 0 0 0 6 6v8.5a2 2 0 0 1-2 2H17a2 2 0 0 1-2-2V15a2 2 0 0 1 2-2z' fill='%23F2F3F5' fill-opacity='0.06' transform='rotate(-8 21 21)'/%3E%3C/svg%3E"); }

.explorer {
  position: relative;
  width: min(620px, 56%);
  height: calc(100% - 56px);
  background: var(--w-window);
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--w-panel-line), 0 2px 4px rgba(20, 22, 30, 0.06), 0 16px 40px -12px rgba(20, 22, 30, 0.22);
  display: flex; flex-direction: column;
  overflow: hidden;
  color: var(--w-text);
}
.explorer-bar { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 0 0 16px; font-size: 13px; border-bottom: 1px solid var(--w-panel-line); }
.explorer-title .icon { width: 16px; height: 16px; stroke-width: 1.8; }
.explorer-controls { margin-left: auto; display: flex; height: 100%; }
.explorer-controls i { width: 44px; position: relative; }
.explorer-controls i::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; background: var(--w-subtle); transform: translate(-50%, -50%); }
.explorer-controls i:nth-child(2)::before { height: 10px; background: none; border: 1px solid var(--w-subtle); border-radius: 2px; }
.explorer-controls i:nth-child(3)::before { width: 12px; transform: translate(-50%, -50%) rotate(45deg); }
.explorer-controls i:nth-child(3)::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: var(--w-subtle); transform: translate(-50%, -50%) rotate(-45deg); }
.explorer-body { display: flex; flex: 1; min-height: 0; }
.explorer-side { width: 160px; padding: 14px 8px; border-right: 1px solid var(--w-panel-line); font-size: 13px; display: grid; align-content: start; gap: 2px; }
.explorer-side li { padding: 6px 12px; border-radius: 4px; position: relative; }
.explorer-side li.is-on { background: var(--w-tile); }
.explorer-side li.is-on::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--w-mark); }
.explorer-files { flex: 1; padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); align-content: start; gap: 6px; overflow: auto; }

.file {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 6px 10px;
  border: 1px solid transparent; border-radius: 6px;
  background: none; cursor: grab;
  font-size: 12px; color: var(--w-text);
  transition: background-color 120ms ease, opacity 160ms ease;
  touch-action: manipulation;
}
.file:hover { background: var(--w-window-2); }
.file:focus-visible { outline: 2px solid var(--w-mark); outline-offset: 0; }
.file.is-dragging { opacity: 0.4; background: color-mix(in srgb, var(--tide) 12%, transparent); border-color: color-mix(in srgb, var(--tide) 45%, transparent); }
.file.is-selected { background: color-mix(in srgb, var(--tide) 10%, transparent); border-color: color-mix(in srgb, var(--tide) 35%, transparent); }
.file-name { max-width: 100%; text-align: center; overflow-wrap: anywhere; line-height: 1.3; }

/* A file's page: the brand's page with its concave corner (the slice's bite). The finished file
   gets the teal slice in that corner. */
.file-page, .page-tile {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 54px;
  color: var(--w-text);
  --bite: 12px;
  --page: var(--w-window);
}
.file-page::before, .page-tile::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  border-radius: 6px;
  background: radial-gradient(circle var(--bite) at 100% 0, transparent calc(var(--bite) - 1px), var(--w-tile-line) calc(var(--bite) - 0.5px), var(--page) var(--bite));
  box-shadow: inset 0 0 0 1px var(--w-tile-line);
  -webkit-mask: radial-gradient(circle calc(var(--bite) - 1px) at 100% 0, transparent 98%, #000 100%);
  mask: radial-gradient(circle calc(var(--bite) - 1px) at 100% 0, transparent 98%, #000 100%);
}
.file-page .icon, .page-tile .icon { position: relative; z-index: 1; width: 20px; height: 20px; stroke-width: 1.6; }
.file-new .file-page::after, .page-tile.done::after {
  content: ""; position: absolute; right: 0; top: 0;
  width: calc(var(--bite) - 2px); height: calc(var(--bite) - 2px);
  background: var(--accent-mark);
  border-radius: 0 3px 0 100%;
}
.file-new .file-name { color: var(--w-text); font-weight: 600; }

/* The overlay: the wheel, its top panel and card, the drag picture, the done panel */
.overlay { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.overlay.is-open { pointer-events: auto; }
/* The opening pose lets clicks through to the window, except on the wheel and its panel */
.overlay.is-attract { pointer-events: none; }
.overlay.is-attract .wheel-wrap, .overlay.is-attract .panel { pointer-events: auto; }
.wheel-wrap { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.wheel-wrap svg { width: 100%; height: 100%; overflow: visible; }
.wheel-svg { letter-spacing: normal; line-height: normal; }

.panel, .island, .result-card, .ghost { position: absolute; left: 0; top: 0; }
.panel {
  display: flex; align-items: center; gap: 2px;
  padding: 4px; border-radius: 999px;
  background: var(--w-panel);
  box-shadow: 0 0 0 1px var(--w-panel-line), 0 4px 16px -4px rgba(20, 22, 30, 0.18);
  font-size: 12px; color: var(--w-text); white-space: nowrap;
  opacity: 0; visibility: hidden;
  transition: opacity 120ms ease, visibility 0s 120ms;
}
.overlay.is-open .panel { opacity: 1; visibility: visible; transition: opacity 120ms ease; }
.panel-tab { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: none; cursor: pointer; font-family: var(--font-app); font-size: 12px; font-weight: 600; color: var(--w-text); }
.panel-tab .icon { width: 14px; height: 14px; stroke-width: 1.8; }
.panel-tab:hover { background: var(--w-tile); }
.panel-tab.is-on { background: var(--w-accent); color: #fff; }
.panel-hint { padding: 0 12px 0 8px; color: var(--w-subtle); font-size: 11px; }

.result-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  min-width: 320px; max-width: 92%;
  padding: 10px 16px 10px 10px;
  background: var(--w-panel); border-radius: 8px;
  box-shadow: 0 0 0 1px var(--w-panel-line), 0 8px 24px -8px rgba(20, 22, 30, 0.22);
  color: var(--w-text); font-size: 13px;
  opacity: 0; transition: opacity 120ms ease;
}
.result-card.is-on { opacity: 1; }
.card-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; background: var(--w-tile); }
.card-icon .icon { width: 16px; height: 16px; stroke-width: 1.8; }
.card-text { display: grid; line-height: 1.35; min-width: 0; }
.card-text strong { font-weight: 600; }
.card-text .mono { font-size: 12px; color: var(--w-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-size { color: var(--w-subtle); font-size: 12px; white-space: nowrap; align-self: start; padding-top: 1px; }

.island {
  display: flex; align-items: center; gap: 10px;
  min-width: 260px; height: 40px; padding: 0 16px 0 6px;
  border-radius: 999px; background: var(--w-panel);
  box-shadow: 0 0 0 1px var(--w-panel-line), 0 6px 20px -6px rgba(20, 22, 30, 0.22);
  color: var(--w-text); font-size: 13px; font-weight: 600; white-space: nowrap;
  opacity: 0; visibility: hidden;
  transition: opacity 200ms ease, visibility 0s 200ms;
}
.island.is-on { opacity: 1; visibility: visible; transition: opacity 160ms ease; }
.island-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--w-tile); flex: none; }
.island-mark .icon { width: 15px; height: 15px; stroke-width: 1.8; }
.island-mark.is-done { background: var(--w-accent); color: #fff; }
.island-mark.is-done .icon { stroke-width: 2.4; }
.island-bar { width: 72px; height: 4px; border-radius: 2px; background: var(--w-tile); overflow: hidden; margin-left: auto; }
.island-bar span { display: block; height: 100%; width: 100%; background: var(--w-mark); transform-origin: left; animation: progress 900ms var(--ease-out) forwards; }
@keyframes progress { from { transform: scaleX(0.04); } to { transform: scaleX(1); } }

.ghost {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; border-radius: 6px;
  background: var(--w-panel); color: var(--w-text);
  box-shadow: 0 0 0 1px var(--w-panel-line), 0 6px 16px -4px rgba(20, 22, 30, 0.25);
  font-size: 12px; white-space: nowrap;
  opacity: 0; transition: opacity 120ms ease;
  z-index: 3;
}
.ghost.is-on { opacity: 1; }
.ghost .icon { width: 14px; height: 14px; stroke-width: 1.8; }

/* The Shift key, bottom left: it lights when Shift is pressed; a tap opens the wheel */
.keycap {
  position: absolute; left: 32px; bottom: 24px; z-index: 6;
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px 0 12px;
  border: 1px solid color-mix(in srgb, var(--tide) 55%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--tide) 10%, var(--w-window));
  box-shadow: 0 3px 0 color-mix(in srgb, var(--tide) 80%, #000 0%);
  color: var(--tide-700);
  font: 500 15px/1 var(--font-mono);
  cursor: pointer;
  transition: transform 90ms ease, box-shadow 90ms ease, background-color 120ms ease;
}
.keycap .icon { width: 16px; height: 16px; stroke-width: 2; }
.keycap.is-ready { animation: nudge 1.4s ease-in-out infinite; }
.keycap.is-down, .keycap:active { transform: translateY(3px); box-shadow: 0 0 0 var(--tide); background: color-mix(in srgb, var(--tide) 22%, var(--w-window)); }
@keyframes nudge { 0%, 100% { box-shadow: 0 3px 0 var(--tide), 0 0 0 0 color-mix(in srgb, var(--tide) 40%, transparent); } 50% { box-shadow: 0 3px 0 var(--tide), 0 0 0 6px color-mix(in srgb, var(--tide) 0%, transparent); } }
:root[data-theme="dark"] .keycap { color: var(--tide-300); }


.hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 4;
  max-width: min(560px, calc(100% - 220px));
  padding: 8px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--w-window) 92%, transparent);
  box-shadow: 0 0 0 1px var(--w-panel-line);
  color: var(--w-text); font-size: 13px; text-align: center; line-height: 1.35;
}

.taskbar { display: flex; align-items: center; justify-content: center; position: relative; height: 48px; background: var(--w-taskbar); border-top: 1px solid var(--w-panel-line); color: var(--w-text); }
.taskbar-apps { display: flex; align-items: center; gap: 4px; }
.taskbar-apps > span, .taskbar-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; position: relative; }
.taskbar-apps .icon { width: 18px; height: 18px; stroke-width: 1.7; }
.taskbar-apps .is-on { background: var(--w-tile); }
.taskbar-apps .is-on::after { content: ""; position: absolute; bottom: 2px; left: 50%; width: 14px; height: 3px; border-radius: 2px; background: var(--w-mark); transform: translateX(-50%); }
.taskbar-mark { padding: 10px; }
.taskbar-clock { position: absolute; right: 16px; display: grid; text-align: right; font-family: var(--font-app); font-size: 11px; line-height: 1.35; }

.stage-note { margin-top: 14px; font-size: 0.875rem; color: var(--text-3); }

/* The wheel itself (classes set by wheel.js) */
.wheel-plate { fill: var(--w-disc); stroke: var(--w-disc-line); stroke-width: 1; }
.wheel-shadow-stop { stop-color: var(--w-shadow); }
.tile-base { fill: var(--w-tile); }
.tile-line { fill: none; stroke: var(--w-tile-line); stroke-width: 1; }
.tile-accent { stop-color: var(--w-accent); }
.tile-accent-hi { stop-color: var(--w-accent-hi); }
.tile-label { color: color-mix(in srgb, var(--w-text), #FFFFFF calc(var(--hot, 0) * 100%)); fill: currentColor; font: 600 13px var(--font-app); }
.tile.is-dim .tile-label { color: color-mix(in srgb, var(--w-text) 38%, transparent); }
.tile-icon { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile-icon [fill="currentColor"] { fill: currentColor; }
.wheel-centre-disc { fill: var(--w-centre); }
.wheel-centre-line { fill: none; stroke: var(--w-centre-line); stroke-width: 1; }
.wheel-main { fill: var(--w-text); font: 600 20px var(--font-app); }
.wheel-detail { fill: var(--w-subtle); font: 400 12px var(--font-app); }
.dot { fill: var(--w-dot); }
.dot.on { fill: var(--w-mark); }

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

.section { padding: clamp(104px, 14vw, 200px) 0 0; }
.h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.05; letter-spacing: -0.035em; margin-bottom: clamp(40px, 5vw, 72px); max-width: 18ch; }
.h2-big { font-size: clamp(2.5rem, 5.6vw, 4.25rem); max-width: 14ch; margin-bottom: 16px; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px 96px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head .h2 { margin-bottom: 0; }
.section-lede { color: var(--text-2); max-width: 34em; }

/* Illustration panels: the dot grid at 8%, flat, 16 px corners */
.illus {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 20px;
  min-height: 260px; padding: 28px;
  border-radius: var(--radius-panel);
  background-color: var(--surface);
  background-image: radial-gradient(circle at 1px 1px, rgba(var(--pattern-ink), 0.09) 1px, transparent 0);
  background-size: 16px 16px;
  box-shadow: inset 0 0 0 1px var(--border);
  overflow: hidden;
  font-family: var(--font-app);
  color: var(--w-text);
  --w-window: var(--surface);
}
.illus .page-tile, .formats .page-tile { --page: var(--surface); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.steps-alt { margin-top: clamp(48px, 6vw, 80px); text-align: center; color: var(--text-2); font-size: 1.0625rem; }
kbd {
  display: inline-block; min-width: 1.6em; padding: 0.05em 0.45em; border: 1px solid var(--border-strong);
  border-bottom-width: 2px; border-radius: 6px; background: var(--surface); color: var(--text);
  font-family: inherit; font-size: 0.85em; font-weight: 500; line-height: 1.45; text-align: center; white-space: nowrap;
}
.step h3, .feature h3 { display: flex; align-items: baseline; gap: 10px; margin: 28px 0 10px; font-size: 1.375rem; letter-spacing: -0.02em; }
.step p, .feature p { color: var(--text-2); max-width: 40em; }
.step-n { font-size: 1.125rem; font-weight: 600; color: var(--accent); }
.step p { padding-left: 1.4em; }

.illus-drag .ghosted { opacity: 0.35; }
.illus-drag .trail { position: absolute; width: 90px; left: calc(50% - 50px); top: calc(50% - 30px); fill: none; stroke: var(--text-3); stroke-width: 1.5; stroke-dasharray: 3 4; opacity: 0.6; }
.illus-drag .lifted { transform: translate(28px, 18px) rotate(6deg); filter: drop-shadow(0 10px 12px rgba(20, 22, 30, 0.18)); }
.illus-drag .cursor { position: absolute; left: calc(50% + 66px); top: calc(50% + 46px); color: var(--text); }
.illus-drag .cursor .icon { width: 22px; height: 22px; fill: var(--surface); stroke-width: 1.6; }
.page-tile.large { width: 72px; height: 88px; --bite: 18px; }
.page-tile.large .icon { width: 30px; height: 30px; }
.page-tile.medium { width: 56px; height: 68px; --bite: 14px; }
.page-tile.medium .icon { width: 24px; height: 24px; }
.page-tile.small { width: 40px; height: 48px; --bite: 10px; }
.page-tile.small .icon { width: 18px; height: 18px; }
.page-tile.tiny { width: 26px; height: 32px; --bite: 7px; }
.page-tile.tiny::before { border-radius: 4px; }
.page-tile.tiny .icon { width: 13px; height: 13px; }

.keycap-static { position: relative; left: auto; bottom: auto; cursor: default; flex: none; }
.still-wheel { flex: none; }
.still-wheel svg { width: 100%; height: auto; overflow: visible; }
.still-wheel.small { width: 220px; margin: -24px -16px -24px 0; }
.still-wheel.tiny { width: 132px; margin: -14px -8px; }
.illus-shift { gap: 8px; }

.illus-drop { gap: 32px; }
.mini-file { display: grid; justify-items: center; gap: 10px; font-size: 12px; }
.mini-file .page-tile { width: 60px; height: 74px; --bite: 15px; }
.mini-file .page-tile .icon { width: 26px; height: 26px; }
.mini-file figcaption { font-size: 12px; color: var(--text-2); }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(64px, 8vw, 112px) clamp(24px, 3vw, 40px); }
.feature .illus { min-height: 340px; }
.big-file { display: grid; justify-items: center; gap: 10px; text-align: center; }
.big-file figcaption { font-size: 12px; line-height: 1.6; color: var(--text); }
.faint { color: var(--text-3); }
.accent { color: var(--accent); }
.round-arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-md); color: var(--text); flex: none; }
.round-arrow .icon { width: 18px; height: 18px; }
.illus-smaller .round-arrow { color: var(--accent); }
.out-list { display: grid; gap: 14px; font-size: 12px; }
.out-list li { display: flex; align-items: center; gap: 12px; }

.thumbs { display: flex; gap: 14px; align-items: flex-end; }
.thumb { display: grid; justify-items: center; gap: 8px; font-size: 11px; color: var(--text-3); }
.thumb .lines { display: grid; align-content: start; gap: 6px; width: 76px; height: 98px; padding: 12px 10px; background: var(--surface); border-radius: 4px; box-shadow: inset 0 0 0 1px var(--w-tile-line), var(--shadow-sm); }
.lines i { display: block; height: 3px; border-radius: 2px; background: var(--border-strong); }
.lines i:nth-child(3n) { width: 70%; }
.lines b { display: block; height: 8px; border-radius: 2px; background: var(--text); width: 90%; }
.lines i.hl { background: color-mix(in srgb, var(--tide) 45%, transparent); }
.thumb.lifted { transform: translateY(-14px) rotate(-5deg); }
.thumb.lifted .lines { box-shadow: inset 0 0 0 1.5px var(--accent), 0 12px 24px -10px rgba(20, 22, 30, 0.3); }
.thumb.lifted figcaption { color: var(--accent); font-weight: 500; }
.illus-pages { flex-direction: column; gap: 22px; }

.illus-video { flex-direction: column; gap: 14px; }
.clip { position: relative; width: min(340px, 100%); padding: 10px 0; overflow: hidden; }
.clip-frames { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; height: 54px; border-radius: 6px; overflow: hidden; }
.clip-frames i { background: linear-gradient(160deg, color-mix(in srgb, var(--tide) 22%, var(--surface-2)), var(--surface-2) 70%); box-shadow: inset 0 0 0 1px var(--border); }
.clip-frames i:nth-child(even) { background: linear-gradient(200deg, color-mix(in srgb, var(--tide) 14%, var(--surface-2)), var(--surface-2) 75%); }
.clip-keep { position: absolute; top: 4px; bottom: 4px; left: 14%; width: 42%; border: 2px solid var(--accent); border-radius: 8px; box-shadow: 0 0 0 999px color-mix(in srgb, var(--surface) 55%, transparent); }
.clip-keep b { position: absolute; top: 50%; width: 8px; height: 26px; margin-top: -13px; border-radius: 4px; background: var(--accent); }
.clip-keep b:first-child { left: -5px; }
.clip-keep b:last-child { right: -5px; }
.clip-head { position: absolute; top: 0; bottom: 0; left: 38%; width: 2px; border-radius: 1px; background: var(--text); }
.clip-times { display: flex; justify-content: space-between; width: min(340px, 100%); font-size: 11px; color: var(--text-3); margin-bottom: 8px; }

.film { margin: 0; border-radius: var(--radius-panel); overflow: hidden; background: #15171E; box-shadow: var(--shadow-lg); }
.film video { display: block; width: 100%; aspect-ratio: 16 / 9; max-width: 100%; background: #15171E; }
.illus-audio { flex-direction: column; gap: 26px; }
.wave { position: relative; display: flex; align-items: center; gap: 4px; height: 110px; width: min(340px, 100%); justify-content: center; }
.wave i { flex: none; width: 6px; height: calc(var(--h) * 1%); border-radius: 3px; background: color-mix(in srgb, var(--text) 30%, transparent); }
.wave i:nth-child(n+11):nth-child(-n+15) { background: var(--accent); }
.wave-bleep { position: absolute; top: -14px; left: 50%; transform: translateX(-62%); padding: 2px 8px; border-radius: 6px; background: var(--accent); color: var(--on-accent); font: 600 11px var(--font-app); }
.illus-docs { gap: 22px; }
.doc-stack { display: grid; gap: 12px; }
.doc-stack .big-file { grid-template-columns: auto auto; align-items: center; justify-items: start; gap: 12px; text-align: left; }
.doc-stack .page-tile { transform: scale(0.72); transform-origin: left center; margin-right: -12px; }
.illus-photo { gap: 28px; }
.photo { position: relative; width: 210px; height: 160px; flex: none; border-radius: 6px; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--tide) 16%, var(--surface)), var(--surface-2)); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-md); }
.photo-sun { position: absolute; top: 28px; left: 36px; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--tide) 45%, var(--surface)); }
.photo-hill { position: absolute; left: -20px; right: 30px; bottom: -40px; height: 110px; border-radius: 50%; background: color-mix(in srgb, var(--tide) 38%, var(--surface-2)); }
.photo-hill.back { left: 70px; right: -40px; bottom: -50px; height: 120px; background: color-mix(in srgb, var(--tide) 24%, var(--surface-2)); z-index: -0; }
.photo-crop { position: absolute; inset: 18px 26px 22px 46px; border: 1.5px solid var(--surface); box-shadow: 0 0 0 999px rgba(15, 18, 24, 0.38); z-index: 2; }
.photo-crop i { position: absolute; width: 12px; height: 12px; border: 3px solid var(--surface); }
.photo-crop i:nth-child(1) { top: -3px; left: -3px; border-right: 0; border-bottom: 0; }
.photo-crop i:nth-child(2) { top: -3px; right: -3px; border-left: 0; border-bottom: 0; }
.photo-crop i:nth-child(3) { bottom: -3px; left: -3px; border-right: 0; border-top: 0; }
.photo-crop i:nth-child(4) { bottom: -3px; right: -3px; border-left: 0; border-top: 0; }
.photo-arrow { position: absolute; z-index: 3; right: 40px; bottom: 34px; width: 60px; height: 40px; fill: none; stroke: #F2F4F7; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); font: 500 13px var(--font-app); color: var(--text); white-space: nowrap; }
.chip .icon { width: 15px; height: 15px; stroke-width: 1.8; margin-left: -2px; }
.chip.is-on, .chip-done { color: var(--accent); background: color-mix(in srgb, var(--tide) 9%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tide) 55%, transparent); }

.illus-sign { justify-content: flex-start; padding-left: 40px; }
.sheet { position: relative; width: 230px; height: 240px; padding: 18px 20px; background: var(--surface); border-radius: 4px; box-shadow: inset 0 0 0 1px var(--w-tile-line), var(--shadow-md); display: grid; align-content: start; gap: 12px; }
.sheet-title { display: block; width: 50%; height: 5px; border-radius: 2px; background: var(--text); opacity: 0.75; }
.fields { display: grid; grid-template-columns: auto auto; gap: 6px 10px; justify-content: start; margin-top: 10px; }
.field { white-space: nowrap; padding: 2px 6px; border: 1px dashed var(--accent); border-radius: 2px; font-size: 11px; }
.signature { grid-column: 1 / -1; width: 110px; height: 36px; border: 1px dashed var(--accent); border-radius: 2px; padding: 2px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side-tools { display: grid; gap: 10px; justify-items: start; margin-left: 12px; }
.illus-sign .chip-done { position: absolute; right: 24px; bottom: 24px; }

.receipt { display: grid; gap: 10px; width: 200px; padding: 18px 16px; background: var(--surface); border-radius: 4px; box-shadow: inset 0 0 0 1px var(--w-tile-line), var(--shadow-md); transform: rotate(-2deg); font-size: 12px; text-align: center; }
.receipt strong { font-weight: 500; letter-spacing: 0.12em; }
.receipt .sel { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 8px; text-align: left; border: 1px dashed var(--accent); background: color-mix(in srgb, var(--tide) 22%, transparent); border-radius: 2px; }
.receipt small { font-size: 11px; color: var(--text-3); }
.copied { display: grid; gap: 12px; justify-items: start; }
.copied pre { margin: 0; font-size: 12px; line-height: 1.6; color: var(--text-2); }

.tags { display: grid; gap: 8px; padding: 12px 14px; background: var(--surface); border-radius: 6px; box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm); font-size: 12px; color: var(--text-3); }
.tags li { white-space: nowrap; display: flex; align-items: center; gap: 8px; text-decoration: line-through; text-decoration-color: var(--text-3); }
.tags .icon { width: 14px; height: 14px; stroke-width: 1.8; }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.illus-private { flex-direction: column; gap: 26px; }
.boundary { position: relative; display: flex; align-items: center; gap: 12px; padding: 34px 26px 26px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-card); }
.boundary-label { position: absolute; left: 20px; top: -15px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); font-size: 13px; font-weight: 500; }
.boundary-label .icon { width: 14px; height: 14px; stroke-width: 1.8; }
.flow .icon { width: 16px; height: 16px; color: var(--text-3); }

.code-card { width: min(380px, 100%); background: var(--surface); border-radius: var(--radius-card); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-md); overflow: hidden; }
.code-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.code-bar .icon { width: 16px; height: 16px; }
.code-big { padding: 22px 20px 16px; font: 600 1.75rem/1.1 var(--font-display); letter-spacing: -0.03em; }
.code-card .chips { justify-content: flex-start; padding: 0 20px 20px; }

.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.formats li { display: flex; gap: 18px; align-items: center; padding: 28px; background: var(--surface); border-radius: var(--radius-card); box-shadow: inset 0 0 0 1px var(--border); --w-window: var(--surface); }
.formats h3 { font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 4px; }
.formats p { font-size: 0.8125rem; line-height: 1.6; color: var(--text-2); }

.download {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: center;
  padding: clamp(32px, 6vw, 80px);
  background: var(--surface); border-radius: var(--radius-panel);
  box-shadow: inset 0 0 0 1px var(--border);
}
.download-main { display: grid; gap: 4px; }
.download-main .cta-row { margin-top: 24px; }
.badge { display: inline-flex; align-items: center; gap: 8px; justify-self: start; height: 34px; padding: 0 14px 0 10px; margin-bottom: 20px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--border-strong); font-size: 0.875rem; font-weight: 500; }
.badge .mark { width: 20px; height: 20px; }
.download-icon { width: clamp(120px, 16vw, 200px); height: auto; margin-right: clamp(0px, 3vw, 40px); }
.install { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 40px; margin-top: 16px; border-top: 1px solid var(--border); counter-reset: step; }
.install li { counter-increment: step; color: var(--text-2); font-size: 0.9375rem; }
.install li::before { content: counter(step); display: block; margin-bottom: 8px; font: 600 1.125rem var(--font-mono); color: var(--accent); }
.install strong { color: var(--text); font-weight: 600; }
.install .mono { font-size: 0.85em; color: var(--text); overflow-wrap: anywhere; }
.requirements { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--text-3); }
.requirements a { color: var(--text-2); }

.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 24px 96px; align-items: start; }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 26px 0; cursor: pointer; list-style: none; font: 600 1.125rem/1.3 var(--font-display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: translateY(-3px) rotate(45deg); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { padding: 0 32px 22px 0; color: var(--text-2); }
.faq .mono { font-size: 0.9em; color: var(--text); }

/* ---- Footer ---------------------------------------------------------------------------- */

.site-footer { margin-top: clamp(80px, 10vw, 140px); padding: 48px 0 32px; border-top: 1px solid var(--border); }
.footer-row { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { display: grid; gap: 14px; max-width: 320px; }
.footer-brand p { color: var(--text-2); font-size: 0.9375rem; }
.footer-links { display: flex; gap: 64px; }
.footer-links div { display: grid; gap: 10px; align-content: start; }
.footer-links h3 { font: 500 0.75rem var(--font-mono); color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.footer-links a { text-decoration: none; color: var(--text-2); font-size: 0.9375rem; }
.footer-links a:hover { color: var(--text); }
.footer-small { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; font-size: 0.8125rem; color: var(--text-3); }

/* ---- 404 ---------------------------------------------------------------------------------- */

.lost { min-height: calc(100vh - 64px); display: grid; place-items: center; text-align: center; padding: 48px var(--gutter); }
.lost-code { display: flex; align-items: center; justify-content: center; font: 600 clamp(7rem, 20vw, 12rem)/1 var(--font-display); letter-spacing: -0.05em; }
.lost-code .still-wheel { width: clamp(150px, 26vw, 230px); margin: 0 -6px; }
.lost p { margin: 16px 0 28px; font-size: 1.25rem; color: var(--text-2); }

/* ---- Smaller screens ---------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 900px) {
  .hero-top, .section-head, .faq-wrap { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .features, .pair { grid-template-columns: 1fr; }
  .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .install { grid-template-columns: 1fr; }
  .explorer { width: 100%; }
  .explorer-side { display: none; }
}

@media (max-width: 640px) {
  .header-row { gap: 12px; }
  .header-actions { gap: 2px; }
  .header-actions .icon-link { width: 36px; }
  body { font-size: 1rem; }
  .desk { height: 560px; padding: 12px; }
  .explorer { height: calc(100% - 84px); }
  .explorer-files { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); padding: 10px; gap: 2px; }
  .file { padding: 8px 2px; font-size: 11px; }
  .keycap { left: 12px; bottom: 16px; }
  .hint { left: auto; right: 12px; bottom: 16px; transform: none; max-width: calc(100% - 132px); text-align: left; border-radius: 12px; font-size: 12px; }
  .taskbar-apps > span:not(.is-on) { display: none; }
  .formats { grid-template-columns: 1fr; }
  .download { grid-template-columns: 1fr; }
  .download-icon { display: none; }
  .illus { padding: 20px 16px; gap: 12px; }
  .illus-sign { padding-left: 16px; }
  .sheet { width: 180px; }
  .illus-sign .chip-done { right: 12px; bottom: 12px; }
  .still-wheel.small { width: 170px; }
  .thumb .lines { width: 58px; height: 76px; }
  .thumbs { gap: 8px; }
  .boundary { padding: 30px 14px 18px; gap: 6px; }
  .still-wheel.tiny { width: 104px; }
  .cta-row .button { width: 100%; }
  .hero-side .cta-row { grid-template-columns: 1fr; }
  .result-card { min-width: 0; width: calc(100% - 24px); }
  .panel-hint { display: none; }
  .panel-tab { padding: 0 8px; }
  .panel-tab .icon { display: none; }
  .footer-links { gap: 40px; }
  .illus-convert, .illus-smaller, .illus-safe { gap: 10px; }
  .illus-ocr { flex-direction: column; }
  .tags { padding: 10px; font-size: 11px; }
  .illus-safe .big-file figcaption { font-size: 11px; }
  .illus-safe .page-tile.medium { width: 44px; height: 54px; --bite: 12px; }
  .desk { height: 520px; }
  .illus, .feature .illus { min-height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .keycap.is-ready { animation: none; }
  .island-bar span { animation-duration: 1ms; }
  .button:active { transform: none; }
}

/* ---- Phones and tablets: no live demo, a calmer centred layout ---------------------------------- */

.hero-still { display: none; }
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .stage, .stage-note { display: none; }
  .hero-still { display: grid; justify-items: center; gap: 28px; text-align: center; padding-top: 8px; }
  .hero-loop { display: block; width: min(360px, 100%); aspect-ratio: 1; border-radius: 22px; background: #15171E; box-shadow: var(--shadow-lg); }
  .hero-still p { max-width: 30ch; color: var(--text-2); font-size: 1rem; }
}
@media (max-width: 900px) {
  .hero-top { text-align: center; justify-items: center; gap: 28px; }
  .hero-side { justify-items: center; }
  .hero-side .lede { margin-inline: auto; }
  .hero-side .cta-row { justify-content: center; }
  .h2, .section-lede { margin-inline: auto; text-align: center; }
  .section-head { justify-items: center; }
  .step, .feature { text-align: center; }
  .step h3, .feature h3 { justify-content: center; }
  .step p { padding-left: 0; margin-inline: auto; }
  .feature p { margin-inline: auto; }
  .button { text-align: left; }
  .download { text-align: center; justify-items: center; }
  .download-main { justify-items: center; }
  .download-main .badge { justify-self: center; }
  .download-main .cta-row { justify-content: center; }
  .install { text-align: left; }
}
@media (max-width: 640px) {
  .header-actions a.icon-link { display: none; }
  .star-link > span:first-child { display: none; }
  .star-label { font-size: 0; }
  .star-link { gap: 6px; padding: 0 10px; }
  .star-count { padding-left: 0; border-left: 0; }
  .display { font-size: clamp(3rem, 15vw, 4rem); }
  .lede { font-size: 1.0625rem; }
  .steps, .features, .pair { gap: 72px; }
  .formats li .page-tile { display: none; }
  .formats li { padding: 22px 24px; }
  .download { padding: 40px 20px; }
  .download .button-text > span { font-size: 1.125rem; }
}

/* Grid items may shrink below their content on very narrow phones; illustrations clip instead. */
.hero-top > *, .steps > *, .features > *, .pair > *, .formats > *, .download > * { min-width: 0; }
.illus { overflow: hidden; }
.download-main > * { min-width: 0; max-width: 100%; }
@media (max-width: 400px) {
  .h2-big { font-size: 2.25rem; }
  .button-text small.mono { display: none; }
}

@media (max-width: 640px) {
  .illus-photo { flex-direction: column; gap: 18px; }
  .illus-photo .side-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-left: 0; }
  .illus-docs { gap: 12px; }
}
@media (max-width: 400px) {
  .illus-sign { flex-direction: column; justify-content: center; padding-left: 16px; }
  .illus-sign .side-tools { display: flex; gap: 8px; margin-left: 0; }
  .illus-sign .chip-done { position: static; }
}
@media (max-width: 374px) {
  .site-header .wordmark { display: none; }
}

/* Policy pages: one readable column. */
.doc { padding-block: clamp(48px, 8vw, 104px) 0; }
.doc-wrap { max-width: 760px; }
.doc-kicker { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.doc-lede { margin-top: 20px; font-size: 1.1875rem; color: var(--text-2); max-width: 62ch; }
.doc section { margin-top: clamp(48px, 6vw, 72px); }
.doc h2 { font: 600 1.5rem/1.25 var(--font-display); letter-spacing: -0.015em; margin-bottom: 16px; text-wrap: balance; }
.doc p, .doc li { color: var(--text-2); max-width: 68ch; }
.doc p + p, .doc ul + p, .doc p + ul, .doc .doc-table + p { margin-top: 14px; }
.doc ul { display: grid; gap: 12px; padding-left: 1.2em; list-style: disc; }
.doc li::marker { color: var(--accent); }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--accent); }
.doc .mono { font-size: 0.9em; overflow-wrap: anywhere; }
.doc-callout { padding: 18px 20px; border-radius: var(--radius-panel); background: color-mix(in srgb, var(--tide) 8%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tide) 35%, transparent); }
.doc-callout strong { font-weight: 500; }
.doc-table { overflow-x: auto; border-radius: var(--radius-panel); box-shadow: inset 0 0 0 1px var(--border); }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.doc th, .doc td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.doc th { font-weight: 600; color: var(--text); background: var(--surface-2); }
.doc td { color: var(--text-2); }
.doc tr:last-child td { border-bottom: 0; }
.doc td:first-child { color: var(--text); font-weight: 500; white-space: nowrap; }
.doc-updated { margin-top: 28px; font-size: 0.8125rem; color: var(--text-3); }
@media (max-width: 640px) {
  .doc td:first-child { white-space: normal; }
  .doc th, .doc td { padding: 12px; }
}
