/* Pane — pane.flabs.ca
   Restrained, Mac-native: neutral paper, ink, one accent (the icon's blue).
   The interface mock-ups carry the explanation; no decorative effects. */

:root {
  color-scheme: light;
  --paper: #f5f5f2;
  --ink: #18181a;
  --ink-2: #55565b;
  --ink-3: #8e8f94;
  --rule: rgba(24, 24, 26, 0.12);
  --accent: #2f6fd6;
  --sel: #2f6fd6;
  --win: #ffffff;
  --win-side: #ecedef;
  --win-line: rgba(0, 0, 0, 0.1);
  --win-text: #1d1d1f;
  --win-text-2: #6e6e73;
  --win-shadow: 0 0 0 0.5px rgba(0,0,0,.18), 0 22px 60px -18px rgba(0,0,0,.28), 0 8px 18px -10px rgba(0,0,0,.18);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --measure: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #111214;
    --ink: #ececee;
    --ink-2: #a3a4aa;
    --ink-3: #6c6d73;
    --rule: rgba(255, 255, 255, 0.1);
    --accent: #5b95f0;
    --sel: #2a62c4;
    --win: #1e1f22;
    --win-side: #26272b;
    --win-line: rgba(255, 255, 255, 0.08);
    --win-text: #e8e8ea;
    --win-text-2: #98989e;
    --win-shadow: 0 0 0 0.5px rgba(255,255,255,.12), 0 22px 60px -18px rgba(0,0,0,.7);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
code { font: 0.86em var(--mono); color: var(--ink); }
img { display: block; }

/* ---------- header ---------- */
.top {
  max-width: var(--measure); margin: 0 auto; padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.mark { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 17px; }
.mark img { border-radius: 6px; }
.top nav { display: flex; gap: 26px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }
.top nav .strong { color: var(--accent); font-weight: 550; }

/* ---------- intro ---------- */
main > section, .stage { max-width: var(--measure); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.intro { padding-top: 72px; padding-bottom: 56px; }
h1 {
  font-family: var(--display);
  font-size: clamp(42px, 7.2vw, 84px);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 650;
  margin-bottom: 40px;
}
.intro-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 860px; }
.intro-cols p { font-size: 19px; color: var(--ink-2); }
.status { margin-top: 36px; font-size: 14px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.status a { color: var(--accent); text-decoration: none; }
.status a:hover { text-decoration: underline; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #e0a100; display: inline-block; }

/* ---------- the Finder stage ---------- */
.stage { padding-bottom: 24px; }
.finder {
  display: grid; grid-template-columns: 190px 1fr;
  background: var(--win); border-radius: 12px; overflow: hidden;
  box-shadow: var(--win-shadow);
  font-size: 13px; line-height: 1.35; color: var(--win-text);
}
.f-side { background: var(--win-side); padding: 14px 10px 18px; border-right: 0.5px solid var(--win-line); }
.lights { display: flex; gap: 8px; padding: 0 4px 18px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,.15); }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.f-label { font-size: 11px; font-weight: 600; color: var(--win-text-2); padding: 10px 8px 4px; }
.f-item { display: flex; align-items: center; gap: 7px; padding: 4px 8px; border-radius: 6px; }
.f-item:first-of-type { background: var(--win-line); }
.f-main { min-width: 0; }
.f-bar {
  height: 52px; display: flex; align-items: center; gap: 14px; padding: 0 16px;
  border-bottom: 0.5px solid var(--win-line);
}
.f-bar strong { font-size: 13px; font-weight: 650; }
.chev { font-size: 20px; line-height: 1; color: var(--win-text-2); }
.chev.dim { opacity: .4; }
.f-list { width: 100%; border-collapse: collapse; }
.f-list th {
  text-align: left; font-weight: 500; font-size: 11.5px; color: var(--win-text-2);
  padding: 7px 16px; border-bottom: 0.5px solid var(--win-line);
}
.f-list td { padding: 5px 16px; white-space: nowrap; color: var(--win-text-2); }
.f-list td:first-child { color: var(--win-text); display: flex; align-items: center; gap: 8px; }
.f-list tbody tr:nth-child(even) { background: color-mix(in srgb, var(--win-line) 45%, transparent); }
.f-list tr.sel, .f-list tr.sel td { background: var(--sel); color: #fff; }
.f-list tr.sel td:first-child { border-radius: 6px 0 0 6px; }
.f-list tr.sel td:last-child { border-radius: 0 6px 6px 0; }
.stage figcaption { margin-top: 18px; font-size: 14px; color: var(--ink-3); }

/* tiny app icons, sized like Finder's list view */
.ai, .ai-img { width: 18px; height: 18px; border-radius: 4.5px; flex: none; display: inline-block; position: relative; }
.ai::after { content: ""; position: absolute; inset: 4px; border-radius: 2px; background: rgba(255,255,255,.9); }
.ai-1 { background: #3b82f6; }   .ai-1::after { border-radius: 50%; }
.ai-2 { background: #f59e0b; }   .ai-2::after { inset: 4px 7px; }
.ai-3 { background: #6b7280; }   .ai-3::after { inset: 5px 4px; }
.ai-4 { background: #db2777; }   .ai-4::after { transform: rotate(45deg); inset: 5px; }
.ai-win { background: #0f7b4f; } .ai-win::after { inset: 4px; background: repeating-linear-gradient(0deg, rgba(255,255,255,.9) 0 2px, transparent 2px 4px); border-radius: 1px; }
.ai-win2 { background: #7c3aed; } .ai-win2::after { inset: 4px; background: conic-gradient(rgba(255,255,255,.9) 0 25%, transparent 0 50%, rgba(255,255,255,.9) 0 75%, transparent 0); border-radius: 1px; }
.ai-img { object-fit: cover; }

/* sidebar glyphs */
.si { width: 15px; height: 13px; flex: none; display: inline-block; border: 1.5px solid var(--accent); border-radius: 3px; }
.si-app { border-radius: 4px; }
.si-desk { border-bottom-width: 3px; }
.si-doc { width: 12px; height: 14px; border-radius: 2px; }
.si-down { border-radius: 50%; width: 14px; height: 14px; }
.si-disk { border-radius: 3px; height: 10px; }

/* ---------- chapters ---------- */
.chapter {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding-top: 120px; padding-bottom: 0;
}
.chapter.flip .c-text { order: 2; }
.c-num { font: 500 13px var(--mono); color: var(--ink-3); margin-bottom: 18px; }
.chapter h2, .details h2, .questions h2 {
  font-family: var(--display); font-weight: 650; letter-spacing: -0.025em; line-height: 1.08;
}
.chapter h2 { font-size: clamp(30px, 3.8vw, 42px); margin-bottom: 20px; }
.chapter p:not(.c-num):not(.art-note) { color: var(--ink-2); max-width: 30em; }
.c-art { display: flex; flex-direction: column; align-items: center; }

/* Spotlight */
.spot {
  width: 100%; max-width: 440px; background: var(--win); border-radius: 14px;
  box-shadow: var(--win-shadow); padding: 6px; font-size: 14px; color: var(--win-text);
}
.spot-q {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px 12px;
  font-size: 22px; letter-spacing: -0.01em; border-bottom: 0.5px solid var(--win-line); margin-bottom: 6px;
}
.glass { width: 16px; height: 16px; border: 2px solid var(--win-text-2); border-radius: 50%; position: relative; flex: none; }
.glass::after { content: ""; position: absolute; width: 2px; height: 7px; background: var(--win-text-2); right: -4px; bottom: -6px; transform: rotate(-45deg); border-radius: 1px; }
.caret { width: 2px; height: 24px; background: var(--accent); margin-left: -8px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.spot-r { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; }
.spot-r .ai { width: 22px; height: 22px; border-radius: 5.5px; }
.spot-r span { flex: 1; }
.spot-r em { font-style: normal; font-size: 12px; color: var(--win-text-2); }
.spot-r.on { background: var(--sel); color: #fff; }
.spot-r.on em { color: rgba(255,255,255,.75); }
.spot-r .si { margin-left: 4px; margin-right: 3px; }

/* Save sheet */
.sheet {
  width: 100%; max-width: 420px; background: var(--win); border-radius: 12px;
  box-shadow: var(--win-shadow); padding: 22px 22px 18px; font-size: 13px; color: var(--win-text);
}
.row { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 10px; margin-bottom: 10px; }
.row label { text-align: right; color: var(--win-text); }
.field {
  height: 24px; border-radius: 5px; padding: 3px 8px; display: flex; align-items: center; gap: 7px;
  box-shadow: inset 0 0 0 0.5px var(--win-line), 0 0.5px 1px rgba(0,0,0,.06);
  background: var(--paper);
}
.field.ghost { background: transparent; }
.field.pop { background: var(--win); box-shadow: 0 0 0 0.5px var(--win-line), 0 1px 2px rgba(0,0,0,.12); }
.field.pop i { margin-left: auto; font-style: normal; color: var(--win-text-2); transform: rotate(180deg); font-size: 11px; }
.btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.b {
  min-width: 78px; text-align: center; padding: 3px 12px; border-radius: 6px;
  box-shadow: 0 0 0 0.5px var(--win-line), 0 1px 2px rgba(0,0,0,.1); background: var(--win);
}
.b.go { background: var(--sel); color: #fff; box-shadow: none; }
.art-note { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

/* VM comparison */
.compare { align-items: stretch; gap: 22px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr; gap: 6px 16px; align-items: center; font-size: 14px; }
.bar-row span { font-weight: 550; }
.bar-row em { grid-column: 2; font-style: normal; font-size: 13px; color: var(--ink-3); }
.bar { height: 12px; border-radius: 3px; background: var(--rule); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.bar i.grey { background: var(--ink-3); }

/* ---------- details & questions ---------- */
.details, .questions { padding-top: 140px; }
.details h2, .questions h2 { font-size: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.details dl div {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px;
  padding: 20px 0; border-bottom: 1px solid var(--rule);
}
.details dt { font-weight: 600; }
.details dd { color: var(--ink-2); max-width: 40em; }
.questions { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.questions h2 { grid-column: 1 / -1; margin-bottom: 8px; }
.qa { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.qa h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.qa p { color: var(--ink-2); }

/* ---------- end ---------- */
.end { padding-top: 140px; padding-bottom: 120px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.end img { border-radius: 16px; }
.end p { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.button {
  display: inline-block; background: var(--ink); color: var(--paper);
  padding: 11px 20px; border-radius: 9px; font-size: 15px; font-weight: 550; text-decoration: none;
}
.button:hover { opacity: .88; }

footer {
  max-width: var(--measure); margin: 0 auto; padding: 24px 24px 40px;
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  font-size: 13px; color: var(--ink-3);
}
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer small { flex-basis: 100%; font-size: 12px; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .intro-cols { grid-template-columns: 1fr; gap: 16px; }
  .chapter { grid-template-columns: 1fr; gap: 36px; padding-top: 88px; }
  .chapter.flip .c-text { order: 0; }
  .details dl div { grid-template-columns: 1fr; gap: 4px; }
  .questions { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top { padding: 16px; }
  .top nav a:not(.strong) { display: none; }
  main > section, .stage { padding-left: 16px; padding-right: 16px; }
  .intro { padding-top: 40px; }
  h1 br { display: none; }
  .finder { grid-template-columns: 1fr; }
  .f-side { display: none; }
  .f-list th:nth-child(2), .f-list td:nth-child(2), .f-list th:nth-child(3), .f-list td:nth-child(3) { display: none; }
  .details, .questions, .end { padding-top: 96px; }
  .bar-row { grid-template-columns: 1fr; }
  .bar-row em { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }
