/* organize-my-iphone site. No web fonts, no external requests. */
:root {
  --paper: #fff7e8;
  --panel: #ffffff;
  --ink: #1b1530;
  --line: #1b1530;
  --text: #1b1530;
  --muted: #5b5470;
  --dot: rgba(27, 21, 48, 0.09);
  --pop: #ff5d8f;
  --pop-2: #3ad1c3;
  --sun: #ffd23f;
  --shadow: #1b1530;
  --code-bg: #1b1530;
  --code-text: #f4f0ff;
  --chip: #fff;
  --chip-on: #ffd23f;
  --font-display: "Avenir Next Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15122a;
    --panel: #221d3d;
    --line: #0a0814;
    --text: #f4f0ff;
    --muted: #b9b2d6;
    --dot: rgba(255, 255, 255, 0.06);
    --shadow: #7a5cff;
    --code-bg: #0e0b1e;
    --chip: #2e2850;
    --chip-on: #ffd23f;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  background-image: radial-gradient(var(--dot) 1.4px, transparent 1.6px);
  background-size: 14px 14px;
  color: var(--text);
  font: 17px/1.55 var(--font-body);
  overflow-x: hidden;
}

a { color: inherit; }
code { font-family: var(--font-mono); font-size: 0.88em; background: rgba(127, 110, 190, 0.16); padding: 0.08em 0.35em; border-radius: 5px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); color: #1b1530; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--pop); outline-offset: 3px; }

/* ---------- shared comic pieces ---------- */
.panel {
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--shadow);
}

.halftone {
  background-image:
    radial-gradient(rgba(255, 93, 143, 0.16) 1.6px, transparent 1.8px),
    linear-gradient(var(--panel), var(--panel));
  background-size: 10px 10px, auto;
}

.bubble {
  position: relative;
  background: #fff;
  color: #1b1530;
  border: 3px solid #1b1530;
  border-radius: 20px;
  padding: 12px 16px;
  font-weight: 700;
}

.section { max-width: 1120px; margin: 0 auto; padding: 56px 16px 0; }
.section-title { margin: 0 0 8px; font: italic 900 clamp(32px, 5vw, 48px)/1.05 var(--font-display); letter-spacing: 0.01em; }
.section-title span {
  display: inline-block;
  background: var(--sun);
  color: #1b1530;
  padding: 4px 16px 6px;
  border: 3px solid var(--line);
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--shadow);
  transform: rotate(-1.5deg);
}
.section-lede { max-width: 720px; color: var(--muted); margin: 16px 0 24px; }

.btn {
  display: inline-block;
  padding: 12px 20px;
  border: 3px solid #1b1530;
  border-radius: 999px;
  background: #fff;
  color: #1b1530;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 4px 4px 0 #1b1530;
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #1b1530; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #1b1530; }
.btn-main { background: var(--pop); color: #fff; }

/* ---------- header ---------- */
.top {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 900 22px/1 var(--font-display); }
.brand b { color: var(--pop); }
.brand-mark { width: 40px; height: 40px; }
.top nav { display: flex; gap: 6px 16px; flex-wrap: wrap; font-weight: 700; font-size: 15px; }
.top nav a { text-decoration: none; padding: 4px 2px; border-bottom: 3px solid transparent; }
.top nav a:hover { border-color: var(--pop); }
.nav-gh { border: 2px solid var(--line) !important; border-radius: 999px; padding: 4px 12px !important; background: var(--panel); }

/* ---------- hero ---------- */
.hero {
  max-width: 1088px;
  margin: 8px 16px 0;
  padding: 32px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: center;
  overflow: hidden;
}
@media (min-width: 1121px) { .hero { margin: 8px auto 0; } }
.hero h1 { font: italic 900 clamp(44px, 7vw, 80px)/0.95 var(--font-display); margin: 8px 0 16px; }
.hero h1 em {
  font-style: italic;
  color: var(--pop);
  -webkit-text-stroke: 2px var(--line);
  paint-order: stroke fill;
}
.lede { font-size: 18px; max-width: 520px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.burst {
  display: inline-block;
  margin: 0;
  background: var(--pop-2);
  color: #1b1530;
  font: 900 15px/1 var(--font-display);
  padding: 8px 14px;
  border: 3px solid #1b1530;
  border-radius: 8px;
  transform: rotate(-3deg);
  box-shadow: 3px 3px 0 #1b1530;
}
.burst span { text-transform: uppercase; letter-spacing: 0.05em; }

.hero-art { position: relative; aspect-ratio: 1 / 0.9; min-height: 260px; margin-top: 60px; }
/* Sticker outline so thin ink lines stay visible on dark paper too. */
.hero-c, .host-c, .promise-c, .brand-mark {
  filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff)
    drop-shadow(3px 4px 0 rgba(27, 21, 48, 0.3));
}
.hero-c { position: absolute; }
.hc-1 { width: 42%; height: 42%; left: 4%; top: 30%; animation: bob 3.2s ease-in-out infinite; }
.hc-2 { width: 36%; height: 36%; left: 42%; top: 40%; animation: bob 3.6s ease-in-out -1s infinite; }
.hc-3 { width: 30%; height: 30%; left: 64%; top: 4%; animation: bob 4s ease-in-out -2s infinite; }
.hc-4 { width: 30%; height: 30%; left: 30%; top: 8%; animation: bob 3.4s ease-in-out -0.5s infinite; }
.hc-5 { width: 26%; height: 26%; left: 74%; top: 46%; animation: bob 3s ease-in-out -1.5s infinite; }
.hc-6 { width: 34%; height: 34%; left: 56%; top: 68%; animation: bob 3.8s ease-in-out -2.5s infinite; }
.bubble-hero { position: absolute; left: 0; top: -56px; font-size: 16px; transform: rotate(-4deg); white-space: nowrap; z-index: 2; }
.bubble-hero::after {
  content: "";
  position: absolute;
  left: 40px;
  bottom: -14px;
  border: 8px solid transparent;
  border-top: 12px solid #1b1530;
}
@keyframes bob { 50% { transform: translateY(-8px); } }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 24px 20px; }
  .hero-art { max-width: 420px; width: 100%; margin: 64px auto 0; }
}

/* ---------- crew ---------- */
.crew {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  position: relative;
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--accent);
  padding: 20px 20px 22px;
  padding-top: 92px;
  margin-top: 36px;
}
.card-c {
  position: absolute;
  top: -40px;
  left: 16px;
  width: 116px;
  height: 116px;
  background: color-mix(in srgb, var(--accent) 30%, #fff);
  border: 3px solid var(--line);
  border-radius: 50%;
}
.card h3 { font: italic 900 30px/1 var(--font-display); margin: 4px 0 8px; }
.card p { margin: 0; }
.step { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.step code { text-transform: none; letter-spacing: 0; }

/* ---------- playground ---------- */
.play {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  gap: 28px;
  padding: 28px;
  align-items: start;
}
@media (max-width: 980px) {
  .play { grid-template-columns: 1fr; padding: 20px 16px; justify-items: center; }
  .picker, .host { width: 100%; max-width: 480px; }
  .host { align-items: stretch; }
  .host-c { width: 80px; height: 80px; }
  .chip { padding: 7px 10px; font-size: 13px; }
}

.picker-group + .picker-group { margin-top: 18px; }
.picker h3 { font: 900 15px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 8px; color: var(--muted); }
.tag { background: var(--pop); color: #fff; padding: 2px 8px; border-radius: 6px; font-size: 11px; letter-spacing: 0.06em; margin-left: 4px; vertical-align: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 700 14px/1 var(--font-body);
  color: var(--text);
  background: var(--chip);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--line);
}
.chip:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.chip[aria-pressed="true"] { background: var(--chip-on); color: #1b1530; box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.15); transform: none; }

.stage { display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* The phone is a generic rounded slab, not any real device. */
.phone {
  --w: 300px;
  width: var(--w);
  aspect-ratio: 9 / 19.5;
  max-width: 100%;
  background: #1b1530;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 6px 6px 0 var(--pop), 0 0 0 3px var(--line);
  touch-action: pan-y;
  user-select: none;
}
@media (max-width: 360px) { .phone { --w: 268px; } }
.screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, #ff9ec4 0, transparent 45%),
    radial-gradient(circle at 85% 40%, #8ecdf7 0, transparent 50%),
    radial-gradient(circle at 30% 85%, #b79cff 0, transparent 55%),
    #5b4bb7;
  display: flex;
  flex-direction: column;
  padding: 10px 12px 12px;
}
.status { display: flex; justify-content: space-between; color: #fff; font: 700 12px/1 var(--font-body); padding: 4px 10px 8px; }
.status-r { letter-spacing: 1px; font-size: 9px; }
.page-label {
  align-self: center;
  margin: 0 0 6px;
  background: rgba(255, 255, 255, 0.9);
  color: #1b1530;
  font: 800 11px/1 var(--font-body);
  padding: 4px 10px;
  border-radius: 999px;
  border: 2px solid #1b1530;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 6px 4px;
  flex: 1;
  min-height: 0;
  align-content: start;
}
.grid.swap { animation: pop 0.28s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } }

.icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 0;
  background: none;
  border: 0;
  padding: 0;
  color: #fff;
  font: inherit;
}
.tile {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font: 900 19px/1 var(--font-display);
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18), 0 1px 2px rgba(0, 0, 0, 0.25);
}
.tile.nocolor { background: repeating-linear-gradient(45deg, #9aa0b5 0 6px, #b8bdcc 6px 12px) !important; }
.label {
  font: 600 9.5px/1.1 var(--font-body);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.folder { cursor: pointer; }
.folder .tile {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
  padding: 5px;
  place-items: stretch;
}
.mini { border-radius: 2.5px; }

.dots { display: flex; justify-content: center; gap: 6px; padding: 8px 0; min-height: 22px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); }
.dots i.on { background: #fff; }

.dock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  padding: 8px 6px;
}
.dock .label { display: none; }

.folder-view {
  position: absolute;
  inset: 0;
  background: rgba(27, 21, 48, 0.45);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 16px;
}
.folder-view[hidden] { display: none; }
.folder-box { width: 100%; text-align: center; }
.folder-name { color: #fff; font: 800 18px/1.2 var(--font-body); margin: 0 0 10px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }
.folder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 26px;
  padding: 16px 10px;
  min-height: 220px;
  align-content: start;
}
.folder-dots { padding-top: 10px; }
.folder-close {
  margin-top: 6px;
  font: 700 13px/1 var(--font-body);
  background: #fff;
  color: #1b1530;
  border: 2px solid #1b1530;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}

.pager { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; }
.pager button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--chip);
  color: var(--text);
  font: 900 22px/1 var(--font-body);
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--line);
}
.pager button:disabled { opacity: 0.4; cursor: default; }

.host { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.host-c { width: 110px; height: 110px; margin-left: 12px; }
.bubble-host { font-weight: 500; }
.bubble-host::before {
  content: "";
  position: absolute;
  left: 44px;
  top: -18px;
  border: 9px solid transparent;
  border-bottom: 14px solid #1b1530;
}
.host-title { font: italic 900 24px/1.1 var(--font-display); margin: 0 0 6px; }
.bubble-host p { margin: 0 0 8px; }
.host-cmd { margin: 0 !important; font: 600 13px/1.4 var(--font-mono); background: #f2ecff; border-radius: 8px; padding: 6px 8px; overflow-wrap: anywhere; }
.host-cmd:empty { display: none; }
.host-soon { margin: 0 !important; font-size: 13px; font-weight: 800; color: #c2185b; }
.bubble-host .flag { white-space: nowrap; background: #ece4ff; }

.fineprint { color: var(--muted); font-size: 14px; margin: 18px 0 0; }

/* ---------- safety / privacy ---------- */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 820px) { .two-up { grid-template-columns: 1fr; } }
.promise { position: relative; padding: 28px 24px 24px 24px; box-shadow: 6px 6px 0 var(--accent); }
.promise h2 { font: italic 900 34px/1 var(--font-display); margin: 0 0 12px; padding-right: 96px; }
.promise-c { position: absolute; right: 12px; top: -34px; width: 100px; height: 100px; }
.promise ul { margin: 0; padding-left: 20px; }
.promise li + li { margin-top: 8px; }

/* ---------- get started ---------- */
.start { display: grid; grid-template-columns: 1fr 1.5fr; gap: 28px; padding: 28px; }
@media (max-width: 860px) { .start { grid-template-columns: 1fr; padding: 20px 16px; } }
.start h3 { font: italic 900 26px/1 var(--font-display); margin: 0 0 12px; }
.start ul { padding-left: 20px; margin: 0; }
.start li + li { margin-top: 6px; }
.start-steps { min-width: 0; }
pre {
  margin: 0;
  background: var(--code-bg);
  color: var(--code-text);
  border: 3px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  overflow-x: auto;
  font: 13.5px/1.6 var(--font-mono);
}
pre code { background: none; padding: 0; font-size: inherit; }
pre .c { color: #9fe8dc; }
.note { color: var(--muted); font-size: 14px; margin: 12px 0 0; }

/* ---------- footer ---------- */
.foot { max-width: 1120px; margin: 56px auto 0; padding: 24px 16px 40px; color: var(--muted); font-size: 14px; border-top: 3px dashed var(--line); }
.foot p { margin: 0 0 8px; }

/* =================== scroll story =================== */

/* Reveal on scroll. Content stays visible if JavaScript is off. */
.js .reveal { opacity: 0; transform: translateY(28px) rotate(-0.6deg); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.3); }
.js .reveal.in { opacity: 1; transform: none; }
.js .strip-panel.reveal:nth-child(2) { transition-delay: 0.08s; }
.js .strip-panel.reveal:nth-child(3) { transition-delay: 0.16s; }
.js .strip-panel.reveal:nth-child(4) { transition-delay: 0.24s; }

/* Reading progress with a rider. */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 6px; z-index: 20; background: rgba(127, 110, 190, 0.18); }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--pop), var(--sun), var(--pop-2)); transform-origin: 0 50%; transform: scaleX(0); }
.progress-rider {
  position: absolute; top: -2px; width: 34px; height: 34px; left: 0;
  filter: drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff);
}

.scroll-hint {
  position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); margin: 0;
  font: 800 13px/1 var(--font-body); color: var(--muted); white-space: nowrap; animation: nudge 1.6s ease-in-out infinite;
}
@keyframes nudge { 50% { transform: translate(-50%, 5px); } }
.hero-art { margin-bottom: 20px; }

/* ---------- why: four-panel comic ---------- */
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .strip { grid-template-columns: 1fr; } }
.strip-panel { position: relative; padding: 0 0 18px; overflow: hidden; box-shadow: 6px 6px 0 var(--accent); }
.strip-panel h3 { font: italic 900 24px/1.05 var(--font-display); margin: 14px 16px 6px; }
.strip-panel p { margin: 0 16px; font-size: 15.5px; }
.strip-num {
  position: absolute; top: 10px; left: 10px; z-index: 2; width: 30px; height: 30px; display: grid; place-items: center;
  background: #fff; color: #1b1530; border: 3px solid #1b1530; border-radius: 50%; font: 900 15px/1 var(--font-display);
}
.strip-art {
  position: relative; height: 170px; border-bottom: 3px solid var(--line);
  background: radial-gradient(rgba(27, 21, 48, 0.12) 1.5px, transparent 1.7px) 0 0 / 9px 9px, color-mix(in srgb, var(--accent) 45%, #fff);
  overflow: hidden;
}
.strip-c { position: absolute; width: 96px; height: 96px; right: 8px; bottom: 4px; }
.in .strip-c { animation: hop 0.6s 0.5s both; }
@keyframes hop { 0% { transform: translateY(30px) scale(0.8); } 60% { transform: translateY(-8px) scale(1.05); } 100% { transform: none; } }
.sfx {
  position: absolute; left: 12px; bottom: 12px; font: italic 900 22px/1 var(--font-display); color: #fff;
  -webkit-text-stroke: 1.5px #1b1530; paint-order: stroke fill; text-shadow: 3px 3px 0 #1b1530; transform: rotate(-6deg);
  max-width: 60%;
}
.in .sfx { animation: zing 0.5s 0.8s both; }
@keyframes zing { from { transform: rotate(-6deg) scale(0.2); opacity: 0; } 70% { transform: rotate(-6deg) scale(1.2); } }

/* Panel 1: a messy pile of icons */
.pile { position: absolute; left: 18px; top: 46px; width: 130px; height: 80px; }
.pile::before, .pile::after { content: ""; position: absolute; inset: 0; }
.pile::before {
  background:
    linear-gradient(#ff5a5f, #ff5a5f) 0 0 / 22px 22px no-repeat, linear-gradient(#3d8bfd, #3d8bfd) 30px 6px / 22px 22px no-repeat,
    linear-gradient(#ffc93c, #ffc93c) 64px 0 / 22px 22px no-repeat, linear-gradient(#34c759, #34c759) 96px 10px / 22px 22px no-repeat,
    linear-gradient(#a259ff, #a259ff) 10px 34px / 22px 22px no-repeat, linear-gradient(#ff9500, #ff9500) 44px 40px / 22px 22px no-repeat,
    linear-gradient(#111, #111) 78px 32px / 22px 22px no-repeat, linear-gradient(#5ac8fa, #5ac8fa) 100px 48px / 22px 22px no-repeat;
  transform: rotate(-8deg);
}
/* Panel 2: a search bar */
.search { position: absolute; left: 16px; top: 52px; background: #fff; color: #5b5470; border: 3px solid #1b1530; border-radius: 999px; padding: 6px 12px; font: 700 13px/1 var(--font-body); }
.in .search span { display: inline-block; overflow: hidden; white-space: nowrap; animation: typeit 1.6s steps(14) 0.6s both; }
@keyframes typeit { from { width: 0; } to { width: 7.6em; } }
/* Panel 3: wobbling icons */
.wiggle { position: absolute; left: 18px; top: 40px; display: grid; grid-template-columns: repeat(2, 34px); gap: 10px; }
.wiggle i { width: 34px; height: 34px; border-radius: 9px; border: 2px solid #1b1530; background: #ff8a5b; animation: wob 0.28s ease-in-out infinite alternate; }
.wiggle i:nth-child(2) { background: #4cc9f0; animation-delay: -0.1s; }
.wiggle i:nth-child(3) { background: #95d5b2; animation-delay: -0.2s; }
.wiggle i:nth-child(4) { background: #ffd166; animation-delay: -0.05s; }
@keyframes wob { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
/* Panel 4: a tidy grid */
.tidy { position: absolute; left: 18px; top: 30px; display: grid; grid-template-columns: repeat(3, 26px); gap: 7px; }
.tidy i { width: 26px; height: 26px; border-radius: 7px; border: 2px solid #1b1530; background: #3ad1c3; }
.tidy i:nth-child(n+4) { background: #b79cff; }
.tidy i:nth-child(n+7) { background: #ffb347; }
.in .tidy i { animation: snap 0.4s both; }
.in .tidy i:nth-child(2) { animation-delay: 0.65s; } .in .tidy i:nth-child(3) { animation-delay: 0.7s; }
.in .tidy i:nth-child(4) { animation-delay: 0.75s; } .in .tidy i:nth-child(5) { animation-delay: 0.8s; }
.in .tidy i:nth-child(6) { animation-delay: 0.85s; } .in .tidy i:nth-child(7) { animation-delay: 0.9s; }
.in .tidy i:nth-child(8) { animation-delay: 0.95s; } .in .tidy i:nth-child(9) { animation-delay: 1s; }
.in .tidy i:nth-child(1) { animation-delay: 0.6s; }
@keyframes snap { from { transform: translate(30px, -30px) rotate(40deg); opacity: 0; } }

.impact { margin-top: 28px; padding: 18px 22px; font-size: 17px; }
.impact p { margin: 0; }

/* ---------- command tour ---------- */
.tour { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.tour-sticky { position: sticky; top: 40px; }
.term { border: 3px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 6px 6px 0 var(--shadow); background: #0e0b1e; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #2a2450; color: #cfc6f5; font: 700 12px/1 var(--font-mono); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-body { margin: 0; border: 0; border-radius: 0; min-height: 300px; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; color: #e6e1ff; background: none; }
.term-body .t-cmd { color: #ffd23f; font-weight: 700; }
.term-body .t-ok { color: #6ff0c8; }
.term-body .t-warn { color: #ff9ec4; }
.term-body .t-go { color: #9fc4ff; }
.term-body span:last-child::after { content: "▌"; color: #ffd23f; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tour-c { position: absolute; right: -14px; bottom: -48px; width: 104px; height: 104px;
  filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff); }
.tour-c.hop { animation: hop 0.5s both; }
.tour-steps { list-style: none; margin: 0; padding: 0 0 18vh; }
.tour-step {
  min-height: 38vh; display: flex; flex-direction: column; justify-content: center; padding: 0 4px;
  opacity: 0.35; transition: opacity 0.3s; cursor: pointer;
}
.tour-step.active { opacity: 1; }
.tour-step h3 { font: italic 900 30px/1.05 var(--font-display); margin: 4px 0 10px; }
.tour-step p { margin: 0 0 6px; }
.tour-step strong { color: var(--pop); }
@media (max-width: 860px) {
  .tour { grid-template-columns: 1fr; gap: 0; }
  .tour-sticky { top: 38px; z-index: 3; }
  .term-body { min-height: 0; height: 210px; overflow: auto; font-size: 11.5px; padding: 10px 12px; }
  .tour-c { width: 72px; height: 72px; bottom: -30px; right: -6px; }
  .tour-step { min-height: 60vh; padding-top: 24px; }
}

/* ---------- critters littered around the page ---------- */
.section, .foot { position: relative; }
.roamer {
  position: absolute; z-index: 4; width: 78px; height: 78px; padding: 0; border: 0; background: none; cursor: pointer;
  filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff);
}
.roamer svg { width: 100%; height: 100%; }
.roamer:hover { transform: scale(1.08) rotate(-4deg); }
.roamer.poked { animation: boing 0.5s; }
@keyframes boing { 30% { transform: scale(1.25, 0.8); } 60% { transform: scale(0.9, 1.15); } }
.roam-1 { right: 12px; top: 40px; animation: peek 5s ease-in-out infinite; }
.roam-2 { right: 18px; top: 44px; animation: float 4s ease-in-out infinite; }
.roam-3 { left: 0; top: -60px; animation: crawl 40s linear infinite alternate; }
@keyframes peek { 0%, 70%, 100% { transform: rotate(0); } 80% { transform: rotate(-12deg) translateY(-6px); } 90% { transform: rotate(10deg); } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes crawl { from { left: 0; } to { left: calc(100% - 80px); } }
@media (max-width: 600px) { .roamer { width: 58px; height: 58px; } .roam-1, .roam-2 { top: 8px; right: 8px; } }

.quip { position: fixed; z-index: 30; transform: translateY(-100%); font-size: 15px; pointer-events: none; }
.quip.show { animation: quippop 0.25s ease-out; }
@keyframes quippop { from { opacity: 0; transform: translateY(-85%) scale(0.9); } }
.quip[hidden] { display: none; }
.foot { margin-top: 110px; }

/* ---------- layout critters ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding-left: 6px; }
.chip-c { width: 24px; height: 24px; flex: none; filter: drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff); }
.host-head { display: flex; align-items: flex-end; gap: 4px; }
.host-name {
  margin: 0 0 14px; font: italic 900 18px/1 var(--font-display); background: var(--sun); color: #1b1530;
  border: 2px solid var(--line); border-radius: 8px; padding: 4px 10px; transform: rotate(-3deg);
}

/* ---------- color wheel ---------- */
.section-title .tag { font: 800 13px/1 var(--font-body); font-style: normal; vertical-align: 14px; }
.wheel-panel { padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px; box-shadow: 6px 6px 0 #ff9f43; }
@media (max-width: 900px) { .wheel-panel { grid-template-columns: 1fr; padding: 20px 16px; } }
.wheel-how { position: relative; }
.wheel-c { width: 110px; height: 110px; float: right; margin: -50px -8px 4px 8px;
  filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff); }
.wheel-steps { margin: 0; padding-left: 20px; }
.wheel-steps li + li { margin-top: 10px; }
.wheel-play { display: flex; gap: 20px; align-items: flex-start; min-width: 0; }
@media (max-width: 560px) { .wheel-play { flex-direction: column; align-items: center; } }
.wheel { width: 220px; height: 220px; flex: none; }
.wheel .slice { stroke: var(--line); stroke-width: 2.5; cursor: pointer; transition: transform 0.15s; transform-origin: 110px 110px; }
.wheel .slice:hover, .wheel .slice.on { transform: scale(1.05); }
.wheel .slice.on { stroke-width: 4; }
.wheel .slice-n { font: 900 15px/1 var(--font-display); text-anchor: middle; fill: #fff; paint-order: stroke; stroke: #1b1530; stroke-width: 3px; pointer-events: none; }
.wheel .slice-n.dark { fill: #1b1530; stroke: #fff; }
.wheel-side { min-width: 0; flex: 1; width: 100%; }
.wheel-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.wheel-chip { font-size: 12.5px; padding: 6px 10px 6px 6px; display: inline-flex; align-items: center; gap: 6px; }
.wheel-chip i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #1b1530; display: inline-block; }
.wheel-chip i.nocolor { background: repeating-linear-gradient(45deg, #9aa0b5 0 3px, #b8bdcc 3px 6px); }
.wheel-title { font: italic 900 22px/1 var(--font-display); margin: 16px 0 8px; }
.wheel-list {
  list-style: none; margin: 0; padding: 12px; display: grid; grid-template-columns: repeat(auto-fill, 60px); gap: 10px 6px;
  border-radius: 16px; background: #5b4bb7; min-height: 84px;
}
.wheel-list .icon { color: #fff; }
.wheel-empty { color: #fff; font-size: 14px; grid-column: 1 / -1; }
.soon-note { font-size: 14px; color: var(--muted); }
.wheel-steps code, .soon-note code, .bubble-host code { white-space: nowrap; }
.picker-note { font-size: 13px; color: var(--muted); margin: -2px 0 8px; }
.picker-note code { white-space: nowrap; }

/* Sample-app glyphs: white comic line art with a little ink shadow. */
.tile .glyph { width: 62%; height: 62%; fill: none; stroke: #fff; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 1.5px 0 rgba(27, 21, 48, 0.45)); overflow: visible; }
.tile .glyph .f { fill: #fff; }
.tile .glyph .thin { stroke-width: 1.2; opacity: 0.7; }
.dock .tile .glyph { width: 58%; height: 58%; }
