/* MacMin: the page is a Mac desktop. One wallpaper, real-looking windows, a working Dock.
   Windows follow the system theme like real ones do. Yellow means "do this". */

:root {
  --wall-dim: rgba(0, 0, 0, 0);
  --win: #ffffff;
  --win-2: #f5f5f4;
  --side: rgba(236, 234, 238, 0.82);
  --bar: #ececec;
  --line: rgba(0, 0, 0, 0.1);
  --text: #1d1d1f;
  --muted: #5f5f64;
  --yellow: #f5b82e;
  --yellow-2: #ffd36b;
  --yellow-ink: #3a2a05;
  --link: #8a5c00;
  --ring: #8a5c00;
  --sel: #0a63d6;
  --menubar: rgba(246, 244, 250, 0.62);
  --menubar-text: #111;
  --dock: rgba(255, 255, 255, 0.34);
  --win-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.22), 0 24px 60px -10px rgba(16, 10, 50, 0.45), 0 8px 22px -6px rgba(16, 10, 50, 0.3);
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --wall-dim: rgba(8, 6, 20, 0.08);
    --win: #232325;
    --win-2: #2b2b2e;
    --side: rgba(44, 42, 50, 0.82);
    --bar: #303033;
    --line: rgba(255, 255, 255, 0.1);
    --text: #f2f2f4;
    --muted: #a8a8b0;
    --link: #f5c552;
    --ring: #f5c552;
    --sel: #1f66d8;
    --menubar: rgba(30, 28, 40, 0.55);
    --menubar-text: #f5f5f7;
    --dock: rgba(40, 38, 52, 0.42);
    --win-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.55), 0 26px 60px -10px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[hidden] { display: none !important; }

body {
  margin: 0;
  color: var(--text);
  background: #e9a23a;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* The wallpaper: fixed behind everything, like a real desktop */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(var(--wall-dim), var(--wall-dim)), url("media/wallpaper.jpg") center / cover no-repeat;
}
@media (max-width: 760px) { body::before { background-image: linear-gradient(var(--wall-dim), var(--wall-dim)), url("media/wallpaper-sm.jpg"); } }

::selection { background: color-mix(in srgb, var(--sel) 30%, transparent); }
img, video { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2.5px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4, h5 { margin: 0; text-wrap: balance; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif; }
p { margin: 0; }
p, dd, li, summary, figcaption { text-wrap: pretty; }
kbd { font: 600 0.85em -apple-system, sans-serif; padding: 1px 6px; border-radius: 5px; background: var(--win-2); border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line); }
code, pre { font: 13px/1.5 ui-monospace, "SF Mono", Menlo, monospace; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Menu bar (the nav) ---------- */
.menubar {
  position: sticky; top: 0; z-index: 50;
  height: 30px;
  background: var(--menubar);
  -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8);
  color: var(--menubar-text);
  font-size: 13.5px;
}
.menubar-inner { height: 100%; display: flex; align-items: center; gap: 4px; padding: 0 10px; position: relative; }
.menubar a { color: inherit; }
.menubar a:hover { text-decoration: none; }
.mb-app { display: flex; align-items: center; gap: 7px; padding: 3px 9px; border-radius: 5px; }
.mb-app b { font-weight: 700; }
.mb-menus { display: flex; }
.mb-menus a, .mb-get { padding: 3px 10px; border-radius: 5px; }
.mb-menus a:hover, .mb-app:hover, .mb-get:hover, .mb-extra:hover, .mb-toggle:hover { background: rgba(127, 127, 127, 0.22); }
.mb-right { margin-left: auto; display: flex; align-items: center; gap: 4px; position: relative; }
.mb-get { font-weight: 600; }
.mb-extra, .mb-toggle { border: 0; background: none; color: inherit; cursor: pointer; border-radius: 5px; font: inherit; }
.mb-extra { width: 30px; height: 24px; display: grid; place-items: center; }
.mb-extra svg { width: 17px; height: 17px; }
.mb-extra[aria-expanded="true"] { background: rgba(127, 127, 127, 0.3); }
.mb-toggle { display: none; padding: 3px 10px; font-weight: 600; }
.menu-drop {
  position: absolute; right: 0; top: 30px; width: 300px;
  padding: 6px; border-radius: 12px;
  background: var(--win); box-shadow: var(--win-shadow);
}
.menu-drop img { width: 100%; height: auto; border-radius: 8px; }
.menu-drop p { padding: 8px 6px 4px; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .mb-toggle { display: block; }
  .mb-extra, .menu-drop { display: none !important; }
  .mb-menus {
    display: none; position: absolute; left: 6px; top: 30px; min-width: 200px;
    flex-direction: column; padding: 5px; border-radius: 10px;
    background: var(--win); color: var(--text); box-shadow: var(--win-shadow);
  }
  .mb-menus.open { display: flex; }
  .mb-menus a { padding: 9px 12px; font-size: 16px; }
  .mb-menus a:hover { background: var(--sel); color: #fff; }
}

/* ---------- The desktop: windows placed like someone actually works here ---------- */
.desktop {
  max-width: 1320px; margin: 0 auto;
  padding: 40px 28px 72px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 72px;
  align-items: start;
}
.win-welcome  { grid-column: 1 / span 7; grid-row: 1; z-index: 2; margin-top: 8px; }
.win-player   { grid-column: 7 / span 6; grid-row: 1; z-index: 3; margin-top: 150px; }
.win-doc      { grid-column: 2 / span 10; }
.win-finder   { grid-column: 1 / span 11; }
.win-about    { grid-column: 3 / span 10; }
.win-settings { grid-column: 1 / span 10; }
.win-mac      { grid-column: 4 / span 9; }
.win-installer{ grid-column: 1 / span 12; }
.win-help     { grid-column: 2 / span 10; }
.alert        { grid-column: 4 / span 6; }
.footer       { grid-column: 1 / -1; }
@media (max-width: 1099px) {
  .desktop { grid-template-columns: minmax(0, 1fr); row-gap: 40px; padding: 24px 16px 56px; }
  .desktop > * { grid-column: 1 !important; grid-row: auto !important; margin-top: 0 !important; }
  .win-player { margin-top: -24px !important; margin-left: 12%; z-index: 3; }
  .alert { justify-self: center; width: min(100%, 460px); }
}
@media (max-width: 760px) {
  .desktop { padding: 14px 10px 40px; row-gap: 22px; }
  .win-player { margin: 0 !important; }
}

/* ---------- A window ---------- */
.win {
  background: var(--win);
  border-radius: var(--radius);
  box-shadow: var(--win-shadow);
  overflow: clip;
  scroll-margin-top: 44px;
  transform-origin: 50% 100%;
}
.titlebar {
  position: relative; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--win); border-bottom: 1px solid var(--line);
  padding: 0 80px;
}
.titlebar.dark { background: #1d1d1f; border-bottom-color: #000; }
.titlebar.dark .win-title { color: #d8d8dc; }
.win-title { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lights { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); display: flex; gap: 8px; }
.lights > * { width: 12px; height: 12px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.18); }
.l-close { background: #ff5f57; }
.l-zoom { background: #28c840; }
.l-min { background: #febc2e; }
.win-body { padding: clamp(22px, 3.4vw, 44px); }

/* ---------- Welcome ---------- */
.welcome h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 800; }
.accent { color: #c98a00; }
@media (prefers-color-scheme: dark) { .accent { color: var(--yellow); } }
.aside {
  width: fit-content; margin: 2px 0 0 auto; margin-right: 18%;
  font: italic 500 clamp(17px, 1.8vw, 20px)/1.3 "Bradley Hand", "Marker Felt", "Chalkboard SE", cursive;
  color: var(--link); transform: rotate(-3deg);
}
.lede { margin-top: 16px; max-width: 56ch; font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.perks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; font-weight: 600; }
.perks li { display: inline-flex; align-items: center; gap: 6px; }
.perks li::before, .perks-buy strong::before, .promises li::before {
  content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.6L13 6.5' fill='none' stroke='%233a2a05' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.fine { font-size: 13px; color: var(--muted); margin-top: 12px; }
.send-link { margin-top: 12px; padding: 4px 0; border: 0; background: none; cursor: pointer; font: 600 14px -apple-system, sans-serif; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Buttons: macOS push buttons, the default one in yellow ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border: 0; border-radius: 9px; cursor: pointer;
  font: 600 15px/1.2 -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--yellow-ink);
  background: linear-gradient(180deg, var(--yellow-2), var(--yellow));
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.6), 0 0 0 0.5px rgba(120, 80, 0, 0.45), 0 1px 2px rgba(60, 40, 0, 0.25);
}
.btn:hover { text-decoration: none; filter: brightness(1.04); }
.btn:active { filter: brightness(0.95); }
.btn-quiet { color: var(--text); background: var(--win-2); box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.4), 0 0 0 0.5px rgba(0, 0, 0, 0.22), 0 1px 2px rgba(0, 0, 0, 0.12); }
.btn-big { padding: 13px 24px; font-size: 17px; border-radius: 11px; }

/* ---------- The player ---------- */
.player { position: relative; background: #000; }
.player video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.qt-bar {
  display: flex; align-items: center; gap: 12px; padding: 9px 14px;
  background: #1d1d1f; color: #d8d8dc; font-size: 12.5px;
}
.qt-play {
  flex: none; width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, 0.12);
}
.qt-play:hover { background: rgba(255, 255, 255, 0.2); }
.qt-play svg { width: 12px; height: 12px; }
.qt-play .i-pause { stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; fill: none; }
.qt-play .i-play { fill: currentColor; display: none; }
.qt-play[aria-pressed="true"] .i-pause { display: none; }
.qt-play[aria-pressed="true"] .i-play { display: block; }
.qt-play:focus-visible { border-radius: 50%; }
.qt-track { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.qt-track i { display: block; height: 100%; width: 100%; background: var(--yellow); transform-origin: left; transform: scaleX(var(--t, 0)); }
.qt-name { flex: none; font-weight: 600; }
.qt-play.floating { position: absolute; right: 12px; bottom: 12px; background: rgba(20, 20, 24, 0.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* ---------- Document window (history) ---------- */
.doc-h { font-size: clamp(28px, 3.3vw, 40px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 750; }
.doc-lede { margin-top: 12px; max-width: 62ch; font-size: 17px; color: var(--muted); }
/* ---------- Finder window (effects) ---------- */
.finder { display: grid; grid-template-columns: 200px 1fr; min-height: 0; }
.sidebar {
  background: var(--side);
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  border-right: 1px solid var(--line);
  padding: 14px 10px;
}
.side-head { font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 0 8px 6px; }
.picker { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.picker button {
  width: 100%; text-align: left; cursor: pointer;
  padding: 7px 10px; border: 0; border-radius: 7px;
  font: 500 14.5px/1.2 -apple-system, sans-serif; color: var(--text); background: transparent;
  position: relative;
}
.picker button:hover { background: rgba(127, 127, 127, 0.14); }
.picker button[aria-pressed="true"] { background: var(--sel); color: #fff; font-weight: 600; }
.picker button .run { position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.5; transform-origin: left; transform: scaleX(var(--run, 0)); }
.preview { display: grid; grid-template-rows: auto 1fr; background: var(--win); }
.preview-screen { position: relative; background: #000; }
.preview-screen video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.preview-info { padding: 18px 22px 22px; display: grid; gap: 6px; align-content: start; border-top: 1px solid var(--line); }
.preview-info h3 { font-size: 24px; letter-spacing: -0.02em; }
#stageDesc { font-size: 17px; }
.preview-note { color: var(--muted); font-size: 14.5px; max-width: 60ch; }
.tour { justify-self: start; padding: 4px 0; border: 0; background: none; cursor: pointer; font: 600 14px -apple-system, sans-serif; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .finder { grid-template-columns: 1fr; }
  .sidebar { order: 2; border-right: 0; border-top: 1px solid var(--line); padding: 8px; }
  .side-head { display: none; }
  .picker { display: flex; overflow-x: auto; gap: 6px; scroll-padding-inline: 8px; scrollbar-width: none; }
  .picker::-webkit-scrollbar { display: none; }
  .picker li { flex: none; }
  .picker button { width: auto; white-space: nowrap; padding: 8px 12px; border-radius: 999px; background: var(--win-2); }
  .preview { order: 1; }
  .preview-info { order: 3; }
  .finder { display: flex; flex-direction: column; }
  .preview { display: contents; }
  .preview-screen { order: 1; } .sidebar { order: 2; } .preview-info { order: 3; }
}

/* ---------- About window ---------- */
.about { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) { .about { grid-template-columns: 260px 1fr; gap: 48px; } }
.menu-shot { margin: 0; justify-self: center; max-width: 260px; }
.menu-shot img { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--win-shadow); }
.menu-shot figcaption { margin-top: 12px; font-size: 13.5px; color: var(--muted); text-align: center; }
.features { margin: 24px 0 0; display: grid; gap: 22px 36px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
.features div { padding-top: 14px; border-top: 1px solid var(--line); }
.features dt { font: 650 18px/1.3 -apple-system, "SF Pro Display", sans-serif; letter-spacing: -0.01em; }
.features dd { margin: 4px 0 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Settings window (trust) ---------- */
.settings { display: grid; grid-template-columns: 210px 1fr; }
.settings-side {
  background: var(--side);
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  border-right: 1px solid var(--line); padding: 14px 10px; display: grid; gap: 1px; align-content: start;
}
.settings-side span { padding: 6px 10px; border-radius: 7px; font-size: 14px; color: var(--muted); }
.settings-side .on { background: var(--sel); color: #fff; font-weight: 600; }
.settings-main { padding: clamp(22px, 3vw, 36px); background: var(--win-2); }
@media (prefers-color-scheme: dark) { .settings-main { background: var(--win); } }
.group { margin-top: 22px; border-radius: 12px; background: var(--win); border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { .group { background: var(--win-2); } }
.row { display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; padding: 16px; align-items: start; }
.row + .row { border-top: 1px solid var(--line); }
.row img { border-radius: 7px; }
.row h4 { font-size: 18px; letter-spacing: -0.01em; }
.row p { color: var(--muted); font-size: 15px; margin-top: 4px; max-width: 64ch; }
.row .row-why { color: var(--text); font-size: 16px; }
.row-step { font-size: 12.5px !important; font-weight: 700; color: var(--link) !important; margin: 0 0 2px !important; font-variant-numeric: tabular-nums; }
.row-plain { grid-template-columns: 28px 1fr; }
.switch { display: block; width: 36px; height: 21px; border-radius: 11px; background: #c7c7cc; position: relative; flex: none; margin-top: 2px; }
.switch i { position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.switch.on { background: #34c759; }
.switch.on i { left: 17px; }
.group-title { margin-top: 30px; font-size: 15px; font-weight: 700; color: var(--muted); }
.promises { list-style: none; padding: 6px 16px; margin-top: 10px; }
.promises li { position: relative; padding: 11px 0 11px 28px; color: var(--muted); font-size: 15px; }
.promises li + li { border-top: 1px solid var(--line); }
.promises li strong { color: var(--text); }
.promises li::before { position: absolute; left: 0; top: 13px; }
.verify { margin-top: 22px; padding: 14px 16px; border-radius: 12px; background: var(--win); border: 1px solid var(--line); }
.verify summary { cursor: pointer; font-weight: 600; }
.verify > p { color: var(--muted); margin-top: 8px; font-size: 14.5px; }
.verify pre { position: relative; margin: 12px 0 0; padding: 12px 78px 12px 14px; border-radius: 9px; background: #1c1b19; color: #f4efe2; overflow-x: auto; }
.copy { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 600 12px -apple-system, sans-serif; padding: 5px 10px; border: 0; border-radius: 6px; cursor: pointer; background: rgba(255, 255, 255, 0.14); color: #fff; }
.hash { word-break: break-all; color: var(--text); }
@media (max-width: 760px) {
  .settings { grid-template-columns: 1fr; }
  .settings-side { display: none; }
  .row { grid-template-columns: 1fr auto; }
  .row img, .row-gap { display: none; }
  .row-plain { grid-template-columns: 1fr; }
}

/* ---------- This Mac (compatibility) ---------- */
.tiers { margin-top: 24px; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { padding: 20px; }
.tier + .tier { border-top: 1px solid var(--line); }
@media (min-width: 900px) { .tier + .tier { border-top: 0; border-left: 1px solid var(--line); } }
.tier h4 { font-size: 18px; letter-spacing: -0.01em; margin-top: 10px; }
.tier p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-good { background: rgba(52, 199, 89, 0.18); color: #1a7a33; }
.badge-ok { background: rgba(245, 184, 46, 0.25); color: #7a5200; }
.badge-no { background: rgba(120, 120, 128, 0.18); color: var(--muted); }
@media (prefers-color-scheme: dark) { .badge-good { color: #5fd47d; } .badge-ok { color: var(--yellow); } }
.models-more { margin-top: 10px; }
.models-more summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--link); }
.models { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.compat .fine { margin-top: 16px; }

/* ---------- Installer window (buy + install) ---------- */
.installer { display: grid; grid-template-columns: 220px 1fr; }
.inst-side {
  list-style: none; margin: 0; padding: 20px 14px; counter-reset: s;
  background: var(--side);
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  border-right: 1px solid var(--line); display: grid; gap: 4px; align-content: start;
}
.inst-side li { counter-increment: s; display: flex; align-items: center; gap: 10px; padding: 6px 6px; font-size: 14px; color: var(--muted); }
.inst-side li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex: none; }
.inst-side .on { color: var(--text); font-weight: 600; }
.inst-side .on::before { background: var(--yellow); box-shadow: 0 0 0 3px rgba(245, 184, 46, 0.3); }
.inst-main { padding: clamp(22px, 3vw, 40px); }
.buy { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.price { font-size: 56px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-note { display: block; margin-top: 6px; font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.buy-lede { margin-top: 12px; color: var(--muted); font-size: 16px; max-width: 64ch; }
.perks-buy { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; }
@media (min-width: 900px) { .perks-buy { grid-template-columns: repeat(3, 1fr); } }
.perks-buy li { padding: 14px 16px; }
.perks-buy li + li { border-top: 1px solid var(--line); }
@media (min-width: 900px) { .perks-buy li + li { border-top: 0; border-left: 1px solid var(--line); } }
.perks-buy strong { display: flex; align-items: center; gap: 8px; font-size: 15.5px; }
.perks-buy span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.buy-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 24px; }
.buy-actions .fine { margin: 0; }
.phone-note { margin-top: 14px; font-size: 15px; }
.install { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .install { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .install { grid-template-columns: repeat(4, 1fr); } }
.step h5 { margin-top: 12px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.step p { margin-top: 4px; color: var(--muted); font-size: 14.5px; }
.step b { color: var(--text); }
.step-n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12.5px; font-weight: 700; color: var(--yellow-ink); background: var(--yellow); flex: none; }
.scene { height: 132px; border-radius: 10px; overflow: hidden; position: relative; display: grid; place-items: center; background: url("media/wallpaper-sm.jpg") center / cover; }
.dl { display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 9px; border-radius: 12px; background: var(--win); box-shadow: var(--win-shadow); }
.dmg { width: 40px; height: 40px; border-radius: 9px; background: linear-gradient(180deg, #f4f4f6, #d9d9de); display: grid; place-items: center; }
.dmg img { width: 28px; height: 28px; }
.dl-text { display: grid; gap: 6px; font-size: 12px; }
.dl-bar { display: block; width: 100px; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.dl-bar i { display: block; height: 100%; width: 100%; background: var(--sel); transform-origin: left; }
.finder-mini { width: 86%; max-width: 240px; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 12px; background: var(--win); box-shadow: var(--win-shadow); }
.drag-icon { width: 42px; height: 42px; position: relative; z-index: 1; }
.drag-arrow { width: 50px; color: var(--muted); }
.folder { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 600; }
.folder svg { width: 42px; height: 35px; }
.mini-settings { width: 86%; max-width: 240px; display: grid; gap: 1px; border-radius: 12px; overflow: hidden; box-shadow: var(--win-shadow); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: var(--win); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.set-row .switch { width: 30px; height: 18px; }
.set-row .switch i { width: 14px; height: 14px; }
.scene-play { background: #000; }
.scene-play video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .install.play .dl-bar i { animation: fill 3.2s ease-in-out infinite; }
  .install.play .drag-icon { animation: drag 3.2s cubic-bezier(.5, 0, .3, 1) infinite; }
  .install.play .folder svg { animation: folder 3.2s ease infinite; }
  .install.play .set-row .switch { animation: tog-bg 3.2s ease infinite; }
  .install.play .set-row .switch i { animation: tog 3.2s ease infinite; }
  .install.play .t2, .install.play .t2 i { animation-delay: .5s !important; }
}
@keyframes fill { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }
@keyframes drag { 0%, 10% { transform: none; } 25% { transform: translate(6px, -8px) scale(1.06) rotate(-4deg); } 60% { transform: translate(var(--dx, 120px), -4px) scale(.8) rotate(2deg); opacity: 1; } 70%, 100% { transform: translate(var(--dx, 120px), 0) scale(.4); opacity: 0; } }
@keyframes folder { 0%, 55% { transform: none; } 62% { transform: scale(1.15); } 72%, 100% { transform: none; } }
@keyframes tog-bg { 0%, 20% { background: #c7c7cc; } 35%, 100% { background: #34c759; } }
@keyframes tog { 0%, 20% { left: 2px; } 35%, 100% { left: 14px; } }
@media (max-width: 760px) {
  .installer { grid-template-columns: 1fr; }
  .inst-side { display: none; }
  .buy { grid-template-columns: 1fr; gap: 12px; }
  .buy img { width: 64px; height: 64px; }
}

/* ---------- Help window ---------- */
.faq-groups { display: grid; gap: 28px; margin-top: 24px; }
@media (min-width: 960px) { .faq-groups { grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; } }
.faq-group h4 { font-size: 13px; font-weight: 700; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 13px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-top: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 8px; font-size: 15px; }

/* ---------- The closing alert ---------- */
.alert {
  justify-self: center; text-align: center;
  width: min(100%, 420px); padding: 26px 24px 20px;
  border-radius: 16px; background: var(--win); box-shadow: var(--win-shadow);
}
.alert img { margin: 0 auto 10px; }
.closing-count { font: 800 22px/1 -apple-system, sans-serif; font-variant-numeric: tabular-nums; color: var(--muted); }
.closing-count span:first-child { text-decoration: line-through; }
.closing-count span:last-child { color: #c98a00; }
@media (prefers-color-scheme: dark) { .closing-count span:last-child { color: var(--yellow); } }
.alert h2 { margin-top: 10px; font-size: 20px; letter-spacing: -0.01em; }
.alert > p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.alert-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.alert.shake { animation: shake 0.45s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-8px); } 40%, 60% { transform: translateX(8px); } }

/* ---------- Footer, written on the wallpaper ---------- */
.footer { text-align: center; color: rgba(255, 255, 255, 0.88); font-size: 13px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); display: grid; gap: 4px; }
.footer a { color: #fff; text-decoration: underline; }

/* Keep the Effects window's preview inside one screen */
@media (min-width: 761px) {
  .preview-screen video { max-height: calc(100svh - 300px); min-height: 280px; }
}

/* Phones: the effect first, then the pitch */
@media (max-width: 760px) {
  .win-player { order: -1; }
  .welcome .perks { display: none; }
}

/* ---------- Review fixes ---------- */
/* Desktop: the welcome copy stays clear of the player window that overlaps it */
@media (min-width: 1100px) {
  .welcome > * { max-width: 520px; }
}
/* Tiers read as a divided list, like the feature list */
.tiers { border: 0; border-radius: 0; gap: 0 36px; }
.tier { padding: 16px 0 0; border-top: 1px solid var(--line) !important; border-left: 0 !important; }
.tier h4 { margin-top: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tier h4 .badge { font-size: 11.5px; letter-spacing: 0; }
.perks-inline { margin-top: 18px; }
/* The window you're looking at is the key window; the rest go grey, like macOS. Hover shows the colours. */
.win.inactive .lights > * { background: #cfcfd3; }
@media (prefers-color-scheme: dark) { .win.inactive .lights > * { background: #4a4a4e; } }
.win.inactive .titlebar:hover .lights .l-close { background: #ff5f57; }
.win.inactive .titlebar:hover .lights .l-min { background: #febc2e; }
.win.inactive .titlebar:hover .lights .l-zoom { background: #28c840; }

/* Amber wallpaper: dark ink reads on it in both themes */
.footer { color: #170e01; text-shadow: none; }
.footer a { color: #170e01; }
@media (prefers-color-scheme: dark) {  }

/* ---------- History: a still rail, read left to right ---------- */
.hx { margin-top: 36px; }
.hx-rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.1fr 2.4fr 1fr 1.3fr; position: relative; }
.hx-rail::before { content: ""; position: absolute; left: 6px; right: 6px; top: 7px; height: 2px; background: linear-gradient(90deg, var(--line) 0 76%, var(--yellow) 76%); border-radius: 2px; }
.hx-stop { position: relative; padding: 28px 18px 0 0; display: grid; gap: 4px; align-content: start; }
.hx-stop::before { content: ""; position: absolute; left: 0; top: 1px; width: 10px; height: 10px; border-radius: 50%; background: var(--win); border: 2px solid var(--muted); }
.hx-stop.first::before { border-color: var(--yellow); }
.hx-stop.now::before { width: 14px; height: 14px; top: -1px; background: var(--yellow); border-color: var(--yellow); }
.hx-stop.gap::before { border-style: dashed; }
.hx-year { font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.hx-stop.now .hx-year { color: var(--link); }
.hx-title { font: 650 18px/1.25 -apple-system, "SF Pro Display", sans-serif; letter-spacing: -0.015em; }
.hx-note { font-size: 14.5px; color: var(--muted); }
.hx-tally { justify-self: start; margin-top: 6px; font-size: 12.5px; font-weight: 700; line-height: 1; padding: 5px 8px; border-radius: 6px; color: var(--muted); background: var(--win-2); font-variant-numeric: tabular-nums; }
.hx-tally.plus { color: var(--yellow-ink); background: var(--yellow); }
.hx-total { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hx-total b { font: 800 44px/1 -apple-system, "SF Pro Display", sans-serif; letter-spacing: -0.04em; color: #c98a00; font-variant-numeric: tabular-nums; }
.hx-total span { color: var(--muted); font-size: 15px; }
@media (prefers-color-scheme: dark) { .hx-total b { color: var(--yellow); } }
@media (max-width: 760px) {
  .hx-rail { grid-template-columns: 1fr; gap: 18px; padding-left: 22px; }
  .hx-rail::before { left: 4px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; background: linear-gradient(180deg, var(--line) 0 76%, var(--yellow) 76%); }
  .hx-stop { padding: 0; }
  .hx-stop::before { left: -22px; top: 3px; }
  .hx-stop.now::before { left: -24px; top: 1px; }
}
