/* LazyMouse website, v3.
 *
 * From the references extracted with skillui (C:\Users\irealycode\design-refs):
 *  - cap.so: Instrument Sans + Source Serif 4, the centred hero inside a rounded sky panel,
 *    a "New" announcement pill, the product window rising out of the panel, pill badges over
 *    section headings, the small icon grid with a bold lead-in sentence.
 *  - granola.ai: oat neutrals, big serif display lines, the heading-left / text-right split row,
 *    the logo row, the giant name in the footer.
 *  - cluely.com: two feature cards side by side (one warm, one light), the keycap close.
 *  - heyclicky.com: product shown in windows with traffic lights.
 *  - LazyMouse: the ghost and its orange.
 */

:root {
  --bg: #f6f6f3;
  --white: #ffffff;
  --ink: #0e0f0c;
  --text: #2a2b28;
  --muted: #696964;
  --faint: #8e8e88;
  --line: #e4e4de;
  --grey-tone: #9a9a94;
  --accent: #fb6a22;
  --accent-deep: #e4560f;
  --accent-text: #b4400d;
  --blue: #4785ff;
  --signal: var(--accent);
  --signal-deep: var(--accent-deep);
  --on-signal: #1a0a02;

  /* the Ask scene's own styles */
  --rule: #d9d9d4;
  --plate: #ffffff;
  --paper: #f6f6f3;

  --nav-h: 64px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: "Geist Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  --win-shadow: 0 1px 0 rgb(255 255 255 / 0.9) inset, 0 24px 48px -24px rgb(20 20 10 / 0.35), 0 3px 8px rgb(0 0 0 / 0.06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 500; text-wrap: balance; }
code { font: 0.86em var(--mono); background: #ececE6; border-radius: 5px; padding: 0.05em 0.35em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }
.center { text-align: center; margin-inline: auto; }
.line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.line-in { display: block; }
em { font-style: italic; }
em.grey { color: var(--grey-tone); }

/* ---- nav: a floating bar, as Cap's and Granola's ---------------------------- */

.strip {
  position: sticky; top: 10px; z-index: 50; margin: 10px auto 0; width: min(var(--max), calc(100% - 2 * var(--gutter)));
  height: 52px; display: flex; align-items: center; gap: 22px; padding: 0 8px 0 16px; border-radius: 14px;
  background: rgb(255 255 255 / 0.82); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgb(0 0 0 / 0.07); box-shadow: 0 8px 24px -16px rgb(0 0 0 / 0.25);
}
.strip .brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 17px; color: var(--ink); letter-spacing: -0.01em; }
.strip .brand img { width: 22px; height: 22px; border-radius: 6px; }
.brand-ghost { width: 20px; height: 25px; }
.brand-ghost .g-body { fill: var(--accent); }
.brand-ghost .g-eyes { fill: var(--ink); }
.strip nav { display: flex; gap: 2px; }
.strip nav a { padding: 7px 11px; border-radius: 8px; text-decoration: none; font-size: 15px; color: #4b4b46; }
.strip nav a:hover { background: rgb(0 0 0 / 0.05); color: var(--ink); }
.state { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font: 500 12.5px/1 var(--mono); color: var(--muted); }
.state .dot { width: 8px; height: 8px; border-radius: 50%; border: 1.6px solid #a3a39c; transition: background 0.2s, border-color 0.2s, box-shadow 0.2s; }
.strip[data-state="live"] .state { color: var(--ink); }
.strip[data-state="live"] .state .dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 8px rgb(251 106 34 / 0.7); }
@media (max-width: 900px) { .strip nav { display: none; } }
@media (max-width: 480px) { .state { display: none; } .strip .btn { margin-left: auto; } }
/* the plain pages' bar */
.strip .wrap { display: contents; }

/* ---- buttons ------------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 18px;
  border-radius: 12px; text-decoration: none; font: 500 15.5px/1 var(--sans); color: var(--ink); white-space: nowrap;
  background: var(--white); border: 1px solid #dcdcd5; box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), inset 0 -1px 0 rgb(0 0 0 / 0.04);
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { box-shadow: 0 6px 14px -8px rgb(0 0 0 / 0.3); }
.btn:active { transform: translateY(1px); }
.btn.primary { color: #fff; background: linear-gradient(#ff8546, var(--accent-deep)); border-color: #cf4e0e; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 8px 18px -10px rgb(228 86 15 / 0.9); }
.btn.primary svg path { stroke: rgb(255 255 255 / 0.7); stroke-width: 0.8; }
.btn.dark { color: #fff; background: var(--ink); border-color: var(--ink); }
.btn.dark svg { fill: #fff; }
.btn.small { min-height: 38px; padding: 0 14px; border-radius: 10px; font-size: 14.5px; }
.btn.ghostly { background: rgb(255 255 255 / 0.65); }
.btn.ghostly svg { fill: none; stroke: currentColor; stroke-width: 2; }
.btn .tag { font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 6px; border-radius: 6px; border: 1px solid currentColor; opacity: 0.75; }
.btn[aria-disabled="true"] { cursor: default; }

/* ---- the hero: Cap's sky ---------------------------------------------------------- */

.hero { position: relative; padding: 12px var(--gutter) 0; margin-top: calc(-52px - 10px); }
.sky {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 12px; height: calc(100svh - 24px); min-height: 640px;
  border-radius: 28px; overflow: hidden; z-index: 0;
  background: linear-gradient(180deg, rgb(255 250 240 / 0.62) 0%, rgb(255 250 240 / 0.25) 34%, rgb(255 250 240 / 0) 55%), url(assets/wallpapers/hills.jpg) center 62% / cover no-repeat, #d9c79a;
}
.hero-in { position: relative; z-index: 1; min-height: calc(100svh - 24px); display: grid; justify-items: center; align-content: center; gap: 22px; text-align: center; padding: calc(var(--nav-h) + 40px) 0 clamp(150px, 22vh, 230px); }
.news { display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 999px; background: rgb(14 15 12 / 0.88); color: #fff; text-decoration: none; font-size: 13.5px; box-shadow: 0 8px 20px -10px rgb(0 0 0 / 0.5); }
.news .new { padding: 3px 9px; border-radius: 999px; background: var(--accent); color: #1a0a02; font-weight: 600; font-size: 12px; }
.news svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.2s var(--ease); }
.news:hover svg { transform: translateX(3px); }
.hero h1 { font-family: var(--sans); font-weight: 400; font-size: clamp(2.5rem, 6.2vw, 5.4rem); line-height: 1.02; letter-spacing: -0.035em; color: var(--ink); }
.hero h1 em { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }
.hero-side { display: grid; justify-items: center; gap: 22px; }
.lede { font-family: var(--serif); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.5; color: #3c4150; max-width: 36ch; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.also { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #4f5566; }
.also svg { width: 16px; height: 16px; fill: #3f4452; }
/* ---- the apps row (Granola's logo row) -------------------------------------------- */

.apps { padding: clamp(56px, 7vw, 88px) var(--gutter) 0; text-align: center; }
.apps p { font-size: 14px; color: var(--muted); }
.apps ul { list-style: none; margin: 22px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px clamp(22px, 4vw, 52px); max-width: 980px; }
.apps li { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: #3b3b37; }
.app-ico { width: 26px; height: 26px; display: grid; place-items: center; }
.app-ico svg { width: 100%; height: 100%; }

/* ---- sections ---------------------------------------------------------------------- */

.sec { padding: clamp(88px, 11vw, 150px) var(--gutter) 0; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; }
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.03em; color: var(--ink); }
.display em { font-style: italic; }
.badge { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px; padding: 4px 11px 4px 8px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.badge i { width: 8px; height: 8px; border-radius: 50%; }
.badge.orange { background: #ffe8db; color: var(--accent-text); }
.badge.orange i { background: var(--accent); box-shadow: 0 0 0 3px rgb(251 106 34 / 0.2); }
.badge.blue { background: #e3ecff; color: #2554c7; }
.badge.blue i { background: var(--blue); box-shadow: 0 0 0 3px rgb(71 133 255 / 0.2); }
#ask { text-align: center; }
#ask .badge { margin-inline: auto; }
.sub { margin-top: 22px; max-width: 54ch; color: var(--muted); font-size: 17.5px; }
/* Granola's row: a short heading on the left, the paragraph on the right, a rule above */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; margin-top: clamp(36px, 5vw, 56px); padding-top: 20px; border-top: 1px solid var(--line); }
.split-h { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.6rem); color: var(--ink); letter-spacing: -0.01em; }
.split p:last-child { color: var(--muted); font-size: 17px; max-width: 52ch; }
@media (max-width: 760px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---- remote: a landscape, a phone, a computer, the link between ------------------------ */

.remote-scene { position: relative; margin: clamp(28px, 4vw, 44px) 0 0; height: clamp(440px, 46vw, 560px); border-radius: 24px; overflow: hidden;
  background: url(assets/wallpapers/sunset.jpg) center 60% / cover no-repeat, #c9a98a; }
.rs-phone { position: absolute; left: clamp(16px, 7%, 90px); bottom: 28px; z-index: 2; }
.rs-title { font-family: var(--serif); font-size: 21px; color: var(--ink); margin: 6px 4px 12px; }
.pc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pc-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 9px; border-radius: 12px; background: var(--white); border: 1px solid #ecece6; }
.pc-list b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.pc-list small { font-size: 11.5px; color: var(--faint); }
.pc-ico { width: 26px; height: 20px; border-radius: 4px; border: 2px solid #b6b6af; position: relative; }
.pc-ico::after { content: ""; position: absolute; left: 50%; bottom: -6px; translate: -50% 0; width: 10px; height: 3px; border-radius: 2px; background: #b6b6af; }
.pc-list li.on .pc-ico { border-color: var(--accent); }
.pc-list li.on .pc-ico::after { background: var(--accent); }
.pc-list li:not(.on) { opacity: 0.6; }
.go { font: 600 11.5px/1 var(--sans); font-style: normal; padding: 6px 8px; border-radius: 8px; background: var(--ink); color: #fff; }
.pc-list li:first-child .go { background: var(--accent); color: #1a0a02; animation: tap 4s var(--ease) infinite; }
@keyframes tap { 0%, 40%, 60%, 100% { transform: none; } 50% { transform: scale(0.92); } }
.rs-link { position: absolute; left: 22%; right: 26%; top: 22%; height: 40%; overflow: visible; z-index: 1; }
.rs-link path { fill: none; stroke: #fff; stroke-width: 2.5; stroke-dasharray: 2 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pkt { fill: var(--accent); filter: drop-shadow(0 0 6px rgb(251 106 34 / 0.9)); }
.pkt.b { fill: #fff; filter: drop-shadow(0 0 6px rgb(255 255 255 / 0.9)); }
.rs-lock { position: absolute; left: 50%; top: 14%; translate: -50% 0; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; background: rgb(255 255 255 / 0.92); font-size: 13.5px; font-weight: 600; color: var(--ink); box-shadow: 0 10px 24px -14px rgb(0 0 0 / 0.5); white-space: nowrap; }
.rs-lock svg { width: 16px; height: 16px; fill: none; stroke: var(--accent-deep); stroke-width: 2; }
.rs-pc { position: absolute; right: clamp(16px, 6%, 80px); bottom: 70px; width: clamp(260px, 38vw, 470px); z-index: 2; }
.rs-pc .mac { box-shadow: 0 30px 50px -24px rgb(30 20 0 / 0.55); }
.rs-screen { position: relative; aspect-ratio: 16 / 10; background: url(assets/wallpapers/lake.jpg) center / cover; overflow: hidden; }
.rs-win { position: absolute; left: 10%; top: 14%; width: 46%; height: 52%; border-radius: 8px; background: #fff; box-shadow: 0 12px 24px -14px rgb(30 20 60 / 0.5); }
.rs-win.b { left: 44%; top: 34%; width: 46%; height: 50%; }
.rs-win::before { content: ""; position: absolute; inset: 0 0 auto; height: 14px; border-radius: 8px 8px 0 0; background: radial-gradient(circle at 9px 7px, #ff5f57 2.4px, transparent 2.8px), radial-gradient(circle at 17px 7px, #febc2e 2.4px, transparent 2.8px), radial-gradient(circle at 25px 7px, #28c840 2.4px, transparent 2.8px), #ececE8; }
.rs-cursor { position: absolute; left: 30%; top: 40%; fill: var(--ink); stroke: #fff; stroke-width: 1.6; paint-order: stroke; animation: roam 6s ease-in-out infinite; }
@keyframes roam { 0%, 100% { left: 30%; top: 40%; } 30% { left: 62%; top: 56%; } 55% { left: 70%; top: 30%; } 80% { left: 40%; top: 66%; } }
@media (max-width: 760px) {
  .remote-scene { height: 600px; }
  .rs-pc { left: 16px; right: 16px; width: auto; top: 70px; bottom: auto; }
  .rs-phone { left: 50%; translate: -50% 0; bottom: 24px; }
  .rs-link { left: 50%; width: 120px; translate: -50% 0; top: 35%; height: 20%; transform: rotate(90deg); }
  .rs-lock { top: 16px; }
}

/* ---- ask ------------------------------------------------------------------------------- */

.ask-win { margin-top: clamp(36px, 5vw, 56px); text-align: left; }

/* ---- everything else: Cluely's two cards, Cap's grid ---------------------------------------- */

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(36px, 5vw, 56px); }
@media (max-width: 860px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card { display: flex; flex-direction: column; gap: 22px; padding: clamp(22px, 3vw, 32px); border-radius: 24px; min-width: 0; }
.card.warm { background: linear-gradient(160deg, #ff9a5c 0%, #fb6a22 55%, #e4560f 100%); color: #2a0e00; }
.card.cool { background: var(--white); border: 1px solid var(--line); }
.card h3 { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; font-weight: 400; }
.card.warm h3 { color: #1a0a02; }
.card-copy p { margin-top: 6px; max-width: 40ch; color: var(--muted); }
.card.warm .card-copy p { color: #3b1404; }
.card-play { margin-top: auto; display: grid; gap: 14px; }
.card.warm .card-play { padding: 22px; border-radius: 16px; background: rgb(255 255 255 / 0.18); border: 1px solid rgb(255 255 255 / 0.3); }
.card.warm .mods button[data-s="armed"] { box-shadow: 0 0 0 3px #fff, 0 0 18px rgb(255 255 255 / 0.6); }
.card.warm .mods button[data-s="held"] { background: linear-gradient(20deg, #fff, #ffe3d1); color: #1a0a02; border-color: #fff; }
.card.warm .mod-state { color: #3b1404; }
.grid { list-style: none; margin: clamp(48px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 32px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid { grid-template-columns: minmax(0, 1fr); gap: 26px; } }
.gi { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 9px; background: #ffe8db; }
.gi svg { width: 19px; height: 19px; fill: none; stroke: var(--accent-deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.grid p { font-size: 15px; color: var(--muted); }
.grid b { font-weight: 600; color: var(--ink); }

/* ---- download -------------------------------------------------------------------------------- */

.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(36px, 5vw, 56px); }
@media (max-width: 760px) { .dl-grid { grid-template-columns: minmax(0, 1fr); } }
.dl-card .mac-body { padding: clamp(22px, 3vw, 30px); display: grid; gap: 10px; }
.dl-card h3 { font-family: var(--serif); font-size: 1.8rem; letter-spacing: -0.02em; font-weight: 400; }
.dl-card p { color: var(--muted); }
.dl-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* ---- the close: Cluely's keycaps ------------------------------------------------------------- */

.close { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 40px; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(100px, 12vw, 170px) var(--gutter) clamp(60px, 8vw, 100px); }
@media (max-width: 800px) { .close { grid-template-columns: minmax(0, 1fr); } }
.close-copy { display: grid; gap: 30px; justify-items: start; }
.close .display { font-size: clamp(2.1rem, 4.2vw, 3.6rem); }
/* ---- footer: Granola's giant name --------------------------------------------------------------- */

.foot { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 48px var(--gutter) 24px; border-top: 1px solid var(--line); overflow: hidden; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; max-width: 720px; }
@media (max-width: 520px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.foot-cols div { display: grid; gap: 9px; align-content: start; }
.foot-cols b { font-weight: 600; color: var(--ink); margin-bottom: 4px; font-size: 14.5px; }
.foot-cols a { color: var(--muted); text-decoration: none; justify-self: start; font-size: 14.5px; }
.foot-cols a:hover { color: var(--ink); }
.legal { margin-top: 28px; font: 400 12.5px/1.4 var(--mono); color: var(--faint); }
/* the plain pages' footer */
.foot.wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 15px; color: var(--muted); }
.foot .brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.foot .brand img { width: 20px; height: 20px; border-radius: 6px; }

/* ---- the demo windows, re-tuned for this page --------------------------------------------------- */

/* ==== v4: the ghost at work ============================================================ */

/* ---- a computer's display: a bezel, the desktop with a real wallpaper, a menu bar ------- */

.hero-screen { position: relative; z-index: 2; max-width: 1040px; margin: clamp(24px, 3.5vh, 40px) auto 0; }
.monitor { padding: 9px; border-radius: 20px; background: linear-gradient(#2a2b2e, #111214); box-shadow: 0 0 0 1px #3a3b3e inset, 0 60px 100px -50px rgb(40 30 10 / 0.6), 0 6px 16px rgb(0 0 0 / 0.15); }
.monitor.small { border-radius: 16px; padding: 7px; }
.os-desk { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 16 / 8.8; background: var(--wp) center / cover no-repeat, #5d7a96; isolation: isolate; }
.monitor.small .os-desk { border-radius: 10px; aspect-ratio: 16 / 10.5; }
.mini-mb { position: absolute; inset: 0 0 auto; z-index: 5; height: 24px; display: flex; align-items: center; gap: 14px; padding: 0 12px; background: rgb(255 255 255 / 0.32); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 12px; color: #111; }
.mini-mb .apple svg { width: 12px; height: 12px; fill: #111; display: block; }
.mini-mb b { font-weight: 700; }
.mb-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.mb-wifi { width: 13px; height: 9px; border-radius: 13px 13px 0 0; border: 2px solid #111; border-bottom: 0; }
@media (max-width: 560px) { .mini-mb span:not(.apple):not(.mb-r):nth-of-type(n+4) { display: none; } }

/* ---- the hero's explanation ------------------------------------------------------------- */

.pv { position: absolute; z-index: 2; left: 5%; top: 9%; width: 52%; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -28px rgb(0 0 0 / 0.55), 0 0 0 1px rgb(0 0 0 / 0.12); will-change: transform; }
.pv .mac-bar { height: 26px; }
.heart { display: block; width: 100%; height: auto; background: #fbfaf7; padding: 3% 1% 1%; }
.heart .v, .heart .muscle { stroke: #5c2320; stroke-width: 2.4; stroke-linejoin: round; }
.heart .v.blue { fill: #6f98e3; }
.heart .tube { fill: none; stroke-linecap: round; }
.heart .tube.blue { stroke: #6f98e3; stroke-width: 26; }
.heart .tube.red { stroke: #e2605a; stroke-width: 30; }
.heart .tube.thin { stroke-width: 16; }
.heart .tube.fat { stroke-width: 32; }
.heart .tube.twig { stroke-width: 9; }
.heart .vessels { filter: drop-shadow(0 0 0 #5c2320) drop-shadow(0 1.5px 0 #5c2320) drop-shadow(0 -1.5px 0 #5c2320) drop-shadow(1.5px 0 0 #5c2320) drop-shadow(-1.5px 0 0 #5c2320); }
.heart .muscle { fill: #e9a596; }
.heart .ch { stroke: #8a3a33; stroke-width: 2; }
.heart .ch.blue { fill: #8db0ee; }
.heart .ch.red { fill: #f08f86; }
.heart .valve { fill: none; stroke: #fff6e8; stroke-width: 5; stroke-dasharray: 10 7; stroke-linecap: round; }
.heart .flow path { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; }
/* what the ghost adds as it explains: a ring on the part, then its name */
.mark-ring { fill: none; stroke: var(--accent); stroke-width: 4; filter: drop-shadow(0 0 5px rgb(251 106 34 / 0.7)); transform-box: fill-box; transform-origin: center; }
.mark-ring.edge { stroke: #16181b; stroke-width: 7; filter: none; }
.mark-tag rect { fill: #16181b; }
.mark-tag text { fill: #fff; font: 600 15px/1 var(--sans); }
.mark-tag line { stroke: #16181b; stroke-width: 1.6; }

/* the conversation, as the phone shows it, floating on the desktop */
.talk { position: absolute; z-index: 3; right: 3.5%; top: 13%; width: min(33%, 320px); display: grid; gap: 10px; }
.talk p { padding: 12px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; box-shadow: 0 18px 40px -22px rgb(0 0 0 / 0.55); }
.talk b { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font: 600 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; }
.talk .you { justify-self: end; max-width: 88%; background: rgb(255 255 255 / 0.9); color: var(--ink); border-bottom-right-radius: 5px; }
.talk .you b { color: var(--muted); justify-content: flex-end; }
.talk .lm { background: rgb(22 24 27 / 0.9); color: #f3f3f0; border-bottom-left-radius: 5px; min-height: 6.4em; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.talk .lm b { color: #ffb184; }
.talk-ghost { width: 13px; height: 16px; }
.talk-ghost .g-body { fill: var(--accent); }
.talk-ghost .g-eyes { fill: #16181b; }
.talk .lm span::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -2px; background: #ffb184; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@media (max-width: 760px) {
  .os-desk#explain { aspect-ratio: 3 / 4; }
  .pv { left: 5%; top: 9%; width: 90%; }
  .talk { left: 5%; right: 5%; top: auto; bottom: 4%; width: auto; }
  .talk .you { display: none; }
  .talk .lm { min-height: 5.2em; font-size: 13.5px; }
}

/* ---- the carrier: the ghost, its arm, its hand on the pointer (as buddy.ts draws it) ---- */

.stage { position: relative; }
.carry { position: absolute; inset: 0; z-index: 20; pointer-events: none; overflow: visible; }
.carry svg.armsvg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.carry .arm-edge { fill: none; stroke: #16181b; stroke-linecap: round; }
.carry .arm-fill { fill: none; stroke: var(--accent); stroke-linecap: round; }
.carry .hand { fill: var(--accent); stroke: #16181b; stroke-width: 1.4; }
.carry .ripple { fill: none; stroke: var(--accent); stroke-width: 2.5; opacity: 0; }
.carry .arrow { position: absolute; left: 0; top: 0; width: 15px; height: 21px; fill: #111; stroke: #fff; stroke-width: 1.6; paint-order: stroke; will-change: transform; display: none; }
.carry.has-arrow .arrow { display: block; }
.carry-ghost { position: absolute; left: 0; top: 0; width: var(--gw, 44px); height: calc(var(--gw, 44px) * 1.25); will-change: transform; filter: drop-shadow(0 8px 10px rgb(0 0 0 / 0.25)); }
.carry-ghost .g-body { fill: var(--accent); stroke: #16181b; stroke-width: 6; }
.carry-ghost .g-eyes { fill: #16181b; }

/* ---- drag: the trackpad, smaller ---------------------------------------------------- */

.drag-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; }
.drag-head p { color: var(--muted); font-size: 17px; max-width: 44ch; }
@media (max-width: 860px) { .drag-head { grid-template-columns: minmax(0, 1fr); } }
.drag-win { max-width: 880px; margin: clamp(32px, 4vw, 48px) auto 0; }
.drag-win .screen { background: url(assets/wallpapers/lake.jpg) center / cover; }
.drag-win .pad { min-height: 220px; }

/* ---- takes over ------------------------------------------------------------------------ */

.take-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .take-grid { grid-template-columns: minmax(0, 1fr); } }
.take-copy > p { margin-top: 22px; color: var(--muted); font-size: 17px; max-width: 42ch; }
.take-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 4px; counter-reset: t; max-width: 360px; }
.take-steps li { counter-increment: t; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--faint); font-weight: 500; transition: background 0.3s, color 0.3s; }
.take-steps li::before { content: counter(t); flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid #d6d6cf; font: 500 12px/1 var(--mono); color: var(--faint); transition: all 0.3s; }
.take-steps li.now { background: var(--white); color: var(--ink); box-shadow: 0 6px 16px -10px rgb(0 0 0 / 0.25); }
.take-steps li.now::before { border-color: var(--accent); color: var(--accent-text); }
.take-steps li.done { color: var(--text); }
.take-steps li.done::before { content: "✓"; background: var(--accent); border-color: var(--accent); color: #1a0a02; }
.desk-next { position: absolute; inset: 0; z-index: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 0.9s var(--ease); }
.desk-next.on { opacity: 1; }
.dock { position: absolute; z-index: 4; left: 50%; bottom: 8px; translate: -50% 0; display: flex; gap: 8px; padding: 6px; border-radius: 16px; background: rgb(255 255 255 / 0.3); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgb(255 255 255 / 0.4); }
.di { width: 38px; height: 38px; display: grid; place-items: center; padding: 7px; border-radius: 10px; background: linear-gradient(160deg, #fff, #ececec); box-shadow: 0 3px 6px rgb(0 0 0 / 0.18); transition: transform 0.25s var(--ease); }
.di svg { width: 100%; height: 100%; }
.di.dark { background: linear-gradient(20deg, #1f1f1f, #050505); }
.di.finder i { width: 100%; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #5ec2fa 50%, #e9f6ff 50%); }
.di.settings { background: linear-gradient(160deg, #b9bcc2, #74777e); }
.di.settings svg { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.di.hop { animation: dock-hop 0.6s var(--ease); }
@keyframes dock-hop { 40% { transform: translateY(-12px); } }
.set-win { position: absolute; z-index: 3; left: 12%; top: 14%; width: 62%; height: 64%; display: grid; grid-template-columns: 34% 1fr; border-radius: 12px; overflow: hidden; background: #f5f5f7; box-shadow: 0 30px 60px -26px rgb(0 0 0 / 0.6), 0 0 0 1px rgb(0 0 0 / 0.14); opacity: 0; transform: scale(0.88) translateY(14px); transform-origin: 50% 100%; transition: opacity 0.35s var(--ease), transform 0.45s var(--ease); }
.set-win.open { opacity: 1; transform: none; }
.set-side { display: grid; align-content: start; gap: 2px; padding: 10px 8px; background: #e8e8ec; font-size: 12px; color: #222; }
.set-side .lights { display: flex; gap: 5px; margin: 0 4px 10px; }
.set-side .lights b { width: 10px; height: 10px; }
.si { display: flex; align-items: center; gap: 7px; padding: 5px 6px; border-radius: 6px; }
.si i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); }
.si.sel { background: #2f7cf6; color: #fff; }
.set-main { position: relative; padding: 12px 14px; }
.set-h { display: block; font-size: 15px; margin-bottom: 10px; color: #111; }
.set-general { display: grid; gap: 8px; }
.set-general i { display: block; height: 30px; border-radius: 8px; background: #fff; border: 1px solid #e3e3e6; }
.wp-grid { position: absolute; inset: 40px 14px 12px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; opacity: 0; transition: opacity 0.3s; }
.wp-grid.on { opacity: 1; }
.wp-grid.on ~ * { display: none; }
.wp { border-radius: 8px; background: center / cover no-repeat; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.1); transition: box-shadow 0.2s; }
.wp.now { box-shadow: 0 0 0 2.5px #2f7cf6; }
.ask-bubble, .done-bubble { position: absolute; z-index: 6; margin: 0; display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 16px; font-size: 13.5px; font-weight: 500; box-shadow: 0 14px 30px -16px rgb(0 0 0 / 0.55); opacity: 0; transform: translateY(8px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.ask-bubble { right: 4%; top: 12%; background: #2f7cf6; color: #fff; border-bottom-right-radius: 5px; }
.done-bubble { right: 4%; top: 12%; background: rgb(22 24 27 / 0.92); color: #fff; border-bottom-left-radius: 5px; }
.ask-bubble.on, .done-bubble.on { opacity: 1; transform: none; }

/* ---- remote: a real phone shape --------------------------------------------------------- */

.iphone { width: clamp(190px, 19vw, 232px); aspect-ratio: 9 / 19.5; padding: 8px; border-radius: 44px; background: linear-gradient(145deg, #3b3d42, #15161a 40%, #2b2d31); box-shadow: 0 0 0 1px #5a5c61 inset, 0 36px 60px -28px rgb(20 10 0 / 0.7); }
.iphone-screen { position: relative; height: 100%; padding: 46px 12px 14px; border-radius: 36px; overflow: hidden; background: #f6f6f3; }
.island { position: absolute; left: 50%; top: 10px; translate: -50% 0; width: 34%; height: 22px; border-radius: 12px; background: #000; }
.remote-scene { height: clamp(500px, 50vw, 600px); }
@media (max-width: 760px) { .remote-scene { height: 680px; } .rs-pc { top: 64px; } }

/* ---- the close: the ghost, asleep --------------------------------------------------------- */

.sleeper { position: relative; height: 300px; display: grid; place-items: center; }
.sleep-ghost { position: relative; z-index: 2; width: 120px; height: 150px; margin-top: 40px; rotate: -8deg; animation: breathe 4.5s ease-in-out infinite; transform-origin: 50% 90%; }
.sleep-ghost .g-body { fill: var(--accent); stroke: #16181b; stroke-width: 5; }
.sleep-ghost .lid { fill: none; stroke: #16181b; stroke-width: 9; stroke-linecap: round; }
@keyframes breathe { 0%, 100% { transform: scale(1, 1) translateY(0); } 50% { transform: scale(1.04, 0.96) translateY(3px); } }
.pillow { position: absolute; z-index: 1; left: 50%; top: calc(50% + 62px); translate: -50% 0; width: 210px; height: 56px; border-radius: 40px; background: linear-gradient(#fff, #ece9e1); box-shadow: inset 0 -6px 10px rgb(0 0 0 / 0.06), 0 16px 26px -14px rgb(0 0 0 / 0.3); }
.sleep-shadow { position: absolute; left: 50%; top: calc(50% + 116px); translate: -50% 0; width: 220px; height: 16px; border-radius: 50%; background: rgb(0 0 0 / 0.1); filter: blur(5px); }
.zz { position: absolute; z-index: 3; left: calc(50% + 40px); top: 18%; width: 80px; height: 90px; }
.zz i { position: absolute; left: 0; bottom: 0; font: italic 500 22px/1 var(--serif); color: var(--accent-text); opacity: 0; animation: zz 4.5s ease-out infinite; }
.zz i:nth-child(2) { animation-delay: 1.5s; font-size: 28px; }
.zz i:nth-child(3) { animation-delay: 3s; font-size: 36px; }
@keyframes zz { 0% { opacity: 0; transform: translate(0, 10px) rotate(-10deg); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(46px, -70px) rotate(10deg); } }

/* ---- the footer word: ghosts that lean and look at the cursor ---------------------------- */

.ghost-word { --cell: min(calc((100vw - 2 * var(--gutter)) / var(--cols)), calc(var(--max) / var(--cols))); position: relative; margin: clamp(48px, 7vw, 90px) 0 0; width: calc(var(--cell) * var(--cols)); height: calc(var(--cell) * 8); }
.ghost-word i { position: absolute; left: calc(var(--x) * var(--cell)); top: calc(var(--y) * var(--cell)); width: var(--cell); height: var(--cell); display: grid; place-items: center; }
.ghost-word svg { width: 92%; height: 100%; overflow: visible; transform-origin: 50% 85%; will-change: transform; }
.ghost-word .g-body { fill: var(--ink); }
.ghost-word .g-eyes { fill: var(--bg); }

@media (prefers-reduced-motion: reduce) {
  .zz { display: none; }
}

/* the hero's text sits up top, and the screen right under it, inside the first screen */
.hero-in { min-height: 0; align-content: start; gap: 18px; padding: calc(var(--nav-h) + clamp(28px, 6vh, 64px)) 0 0; }
.hero h1 { font-size: clamp(2.3rem, 4.9vw, 4.3rem); }

.pc-list li { padding: 8px; gap: 8px; grid-template-columns: 22px minmax(0, 1fr) auto; }
.pc-list b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-list small { font-size: 10.5px; white-space: nowrap; }
.pc-ico { width: 22px; height: 17px; }
.go { padding: 5px 7px; font-size: 10.5px; }
@media (min-width: 901px) { .take-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr); } }
#h-take { font-size: clamp(2.2rem, 4.2vw, 3.8rem); }
@media (max-width: 560px) {
  .monitor.small #takeover-stage { aspect-ratio: 4 / 3.7; }
  .set-win { left: 5%; width: 90%; top: 12%; height: 60%; }
}
/* ---- windows ------------------------------------------------------------------ */

.mac { position: relative; border-radius: 12px; background: var(--white); border: 1px solid #c9c9c9; box-shadow: var(--win-shadow); overflow: hidden; text-align: left; }
.mac-bar { position: relative; display: flex; align-items: center; height: 28px; padding: 0 10px; background: linear-gradient(#f0f0f0, #dedede); border-bottom: 1px solid #c4c4c4; }
.lights { display: flex; gap: 6px; }
.lights b { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.2); }
.lights b:nth-child(2) { background: #febc2e; }
.lights b:nth-child(3) { background: #28c840; }
.mac-title { position: absolute; left: 50%; translate: -50% 0; max-width: 60%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 500 12px/1 var(--mono); color: #6a6a6a; }
.mac-x { margin-left: auto; font: 400 15px/1 var(--mono); color: #9a9a9a; }
.mac-body { position: relative; }
.win-cap { margin-top: 10px; text-align: center; font: 400 12.5px/1.3 var(--mono); color: var(--faint); }


/* ---- the trackpad demo ---- */
.rig { margin: 0; }
.rig-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
@media (max-width: 760px) { .rig-grid { grid-template-columns: minmax(0, 1fr); } }
.plate-label { position: absolute; left: 14px; top: 12px; z-index: 3; font: 500 12px/1 var(--mono); color: #8a8a8a; pointer-events: none; }
.pad { position: relative; min-height: 250px; cursor: crosshair; touch-action: none; background: linear-gradient(#202226, #15171a); color: #fff; outline-offset: -4px; }
.pad .plate-label { color: #9aa0a8; }
@media (max-width: 760px) { .pad { height: 170px; min-height: 0; } }
.pad.down { background: linear-gradient(#26282d, #1a1c20); }
.rulers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; color: #fff; }
.finger { position: absolute; left: 0; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; border: 2px solid var(--accent); border-radius: 50%; background: rgb(251 106 34 / 0.22); box-shadow: 0 0 16px rgb(251 106 34 / 0.55); pointer-events: none; opacity: 0; will-change: transform; }
.hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; padding: 8px 14px; border-radius: 999px; background: rgb(255 255 255 / 0.1); border: 1px solid rgb(255 255 255 / 0.18); font: 500 14px/1 var(--mono); color: #d9dce1; pointer-events: none; transition: opacity 0.3s; }
.pad.touched .hint { opacity: 0; }
.screen { position: relative; aspect-ratio: 16 / 8.4; overflow: hidden; background: radial-gradient(70% 90% at 20% 110%, #ffb37a 0%, transparent 60%), radial-gradient(60% 80% at 90% -10%, #7c8cff 0%, transparent 60%), linear-gradient(160deg, #a8c6ff 0%, #f6b6c8 55%, #ffcf9e 100%); }
@media (max-width: 760px) { .screen { aspect-ratio: 16 / 10; } }
.screen .plate-label { color: rgb(255 255 255 / 0.9); }
.win { position: absolute; border-radius: 9px; background: #fff; padding: 24px 10px 10px; display: grid; gap: 7px; align-content: start; overflow: hidden; border: 1px solid rgb(0 0 0 / 0.12); box-shadow: 0 14px 30px -16px rgb(30 20 60 / 0.5); }
.win::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 15px; background: radial-gradient(circle at 9px 7.5px, #ff5f57 2.6px, transparent 3px), radial-gradient(circle at 17px 7.5px, #febc2e 2.6px, transparent 3px), radial-gradient(circle at 25px 7.5px, #28c840 2.6px, transparent 3px), linear-gradient(#f2f2f2, #e2e2e2); border-bottom: 1px solid #d0d0d0; }
.win i { display: block; height: 7px; width: 36%; border-radius: 4px; background: #1c1c1c; }
.win b { display: block; height: 5px; border-radius: 3px; background: #e6e6e6; }
.win b.s { width: 60%; }
.win.w1 { left: 7%; top: 18%; width: 40%; height: 46%; }
.win.w2 { left: 52%; top: 13%; width: 38%; height: 36%; }
.win.w3 { left: 30%; top: 58%; width: 48%; height: 30%; }
#trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cursor { position: absolute; left: 0; top: 0; fill: var(--ink); stroke: #fff; stroke-width: 2.4; paint-order: stroke; pointer-events: none; will-change: transform; z-index: 4; }
.ghost { position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid var(--accent); border-radius: 50%; pointer-events: none; opacity: 0; will-change: transform; z-index: 3; }
.rig-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 12px 16px; border-top: 1px solid var(--line); background: #fafafa; font-size: 14px; }
.ctl { display: flex; align-items: center; gap: 3px; padding: 3px; border-radius: 999px; background: #ececec; }
.ctl-name { font: 500 12px/1 var(--mono); color: #6a6a6a; margin: 0 6px 0 8px; }
.ctl button { min-height: 32px; padding: 0 13px; border: 0; border-radius: 999px; background: transparent; color: #4a4a4a; font: 500 13.5px/1 var(--sans); cursor: pointer; }
.ctl button[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / 0.18); }
.meter { display: flex; gap: 22px; margin: 0 0 0 auto; }
.meter div { display: flex; flex-direction: column-reverse; }
.meter dt { font: 500 11.5px/1.2 var(--mono); color: #6a6a6a; }
.meter dd { margin: 0; font: 500 21px/1.1 var(--sans); font-variant-numeric: tabular-nums; min-width: 4em; letter-spacing: -0.02em; }
.meter div:last-child dd { min-width: 2em; }
@media (max-width: 560px) { .meter { margin-left: 0; flex-basis: 100%; } .meter dd { min-width: 0 !important; } }
.pause { min-height: 32px; padding: 0 13px; border-radius: 999px; background: #fff; border: 1px solid #cfcfcf; font: 500 13.5px/1 var(--sans); cursor: pointer; }
.rig-note { flex-basis: 100%; font-size: 13px; color: #6a6a6a; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.key-finger, .key-cursor { display: inline-block; width: 12px; height: 12px; }
.key-finger { border: 2px solid var(--accent); border-radius: 50%; }
.key-cursor { background: var(--ink); clip-path: polygon(0 0, 0 100%, 32% 78%, 100% 78%); }
@media (max-width: 760px) { .ctl button, .pause { min-height: 44px; } }


.code { margin: 0; font-size: 12.5px; line-height: 1.6; background: #16181b; color: #d9dce1; border-radius: 8px; padding: 10px 12px; overflow-x: auto; max-width: 100%; white-space: pre; }
.code .c { color: #8a9099; }
.code .k { color: #ffb184; }
.log { min-height: 7.6em; margin-top: auto; }
.log.short { min-height: 0; }
.log .row { display: block; }
.log .row.new { background: rgb(251 106 34 / 0.25); color: #fff; border-radius: 3px; }
.log .row.old { color: #8a9099; }


/* the Ask scene, in its window */
.scene { margin: 0; }
.scene-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 860px) { .scene-grid { grid-template-columns: minmax(0, 1fr); } }
.scene-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 10px 14px; border-top: 1px solid var(--line); background: #fafafa; }
.ask-note { color: #6a6a6a; font-size: 12.5px; max-width: 60ch; }
.scene-foot .btn { min-height: 32px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid #cfcfcf; font: 500 13.5px/1 var(--sans); cursor: pointer; color: var(--ink); }

/* keys, in their window */
.mac.keys .mac-body { display: grid; gap: 16px; padding: 28px 22px 22px; background: radial-gradient(var(--dot) 1px, transparent 1.3px) 0 0 / 18px 18px, #f6f6f6; }
.mods { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.mods button { min-width: 92px; min-height: 72px; padding: 10px 13px; border-radius: 14px; border: 1px solid #2a2a2a; cursor: pointer; display: flex; align-items: flex-start; background: linear-gradient(20deg, #2e2e2e, #000); color: #fff; font: 500 17px/1 var(--sans); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), 0 12px 20px -10px rgb(0 0 0 / 0.6); transition: transform 0.12s, box-shadow 0.2s, background 0.2s; }
.mods button:active { transform: translateY(2px); }
.mods button[data-s="armed"] { box-shadow: 0 0 0 3px var(--accent), 0 0 18px rgb(251 106 34 / 0.55); }
.mods button[data-s="held"] { background: linear-gradient(20deg, #ff8a4c, #e4560f); border-color: #d9541a; color: #1a0a02; }
.mod-state { flex-basis: 100%; text-align: center; font-size: 13.5px; color: var(--muted); }

/* zoom, in its window */
.mac.zoomwin .mac-body { padding: 16px; background: #f6f6f6; }
.zoom { display: grid; gap: 12px; }
.zoom-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; background: linear-gradient(160deg, #a8c6ff 0%, #f6b6c8 55%, #ffcf9e 100%); border: 1px solid rgb(0 0 0 / 0.1); }
.zoom-scene { position: absolute; inset: 0; transform-origin: var(--ox, 50%) var(--oy, 50%); will-change: transform; }
.zoom-scene .cursor { left: 52%; top: 36%; }
.zoom-ctl { display: flex; align-items: center; gap: 12px; font: 500 13px/1 var(--mono); color: #5a5a5a; }
.zoom-ctl input { flex: 1; accent-color: var(--accent); min-height: 32px; }
.zoom-ctl output { min-width: 3em; text-align: right; color: var(--ink); }
@media (max-width: 760px) { .zoom-ctl input { min-height: 44px; } }


/* ---- plain pages: privacy and support -------------------------------------------- */

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.doc { padding-block: clamp(48px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; justify-items: start; }
.doc > * { max-width: 100%; min-width: 0; }
.doc h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: -0.04em; margin-bottom: 8px; }
.doc h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.03em; font-weight: 500; margin-top: clamp(20px, 3vw, 36px); }
.doc ul, .doc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; }
.doc p, .doc li { max-width: 66ch; }
.doc a { color: var(--accent-text); text-underline-offset: 3px; }
.doc .honest { color: var(--text); }
.doc .reqs { color: var(--muted); font-size: 14.5px; }
.doc .jump { display: flex; flex-wrap: wrap; gap: 8px 10px; max-width: 70ch; }
.doc .jump a { padding: 8px 13px; border-radius: 999px; text-decoration: none; font-size: 14.5px; background: #fff; color: var(--ink); border: 1px solid #dcdcdc; }
.doc .jump a:hover { border-color: var(--accent); color: var(--accent-text); }
.doc h2[id] { scroll-margin-top: 80px; }
.doc > h2, .doc > h1 { margin-bottom: 0; }


/* ---- ask: the real thing, drawn ---------------------------------------------------
 * A computer screen with an audio editor open and LazyMouse running, and the phone beside it
 * showing the Ask tab. The screen is drawn in its own pixels (a 1000 x 625 plane, scaled to fit)
 * so the ghost, which is moved by the desktop app's own rules (see main.js), has the size and the
 * speed it has on a real desktop. Both sides are always dark: they are a Windows desktop and an
 * iPhone, not part of the page.
 */
.ask-lede { margin: 0 0 clamp(24px, 3vw, 36px); max-width: 56ch; font-size: 1.1rem; color: var(--muted); }
.scene { margin: 0; border: 1px solid var(--rule); background: var(--plate); }
.scene-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 860px) { .scene-grid { grid-template-columns: minmax(0, 1fr); } }

/* the screen */
.desk { position: relative; aspect-ratio: 1000 / 625; overflow: hidden; background: #14151a; border-right: 1px solid var(--rule); }
@media (max-width: 860px) { .desk { border-right: 0; border-bottom: 1px solid var(--rule); } }
.plane { position: absolute; left: 0; top: 0; width: 1000px; height: 625px; transform-origin: 0 0; font: 400 12px/1.2 "Segoe UI", system-ui, -apple-system, sans-serif; color: #d9dce1; user-select: none; background: radial-gradient(120% 120% at 20% 0%, #23283a 0%, #14151a 62%); }

.aud { position: absolute; left: 40px; top: 38px; width: 690px; height: 528px; background: #2b2c31; border: 1px solid #4a4c55; display: flex; flex-direction: column; box-shadow: 0 14px 40px rgba(0,0,0,.45); border-radius: 10px; overflow: hidden; }
.aud-title { position: relative; display: flex; align-items: center; justify-content: center; height: 30px; background: linear-gradient(#3b3c42, #303136); border-bottom: 1px solid #1b1c20; font-size: 13px; font-weight: 600; color: #d9dce1; border-radius: 10px 10px 0 0; }
.aud-title span { display: flex; align-items: center; gap: 7px; }
.aud-title .lights { position: absolute; left: 12px; top: 9px; display: flex; gap: 8px; }
.aud-title .lights b { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,.35); }
.aud-title .lights .r { background: #ff5f57; } .aud-title .lights .y { background: #febc2e; } .aud-title .lights .g { background: #28c840; }
.aud-menu { display: flex; gap: 16px; height: 26px; align-items: center; padding: 0 12px; background: #2b2c31; border-bottom: 1px solid #1b1c20; color: #c9ccd1; font-size: 12px; }
.aud-tools { display: flex; align-items: center; gap: 22px; height: 76px; padding: 0 12px; background: #383a41; border-bottom: 1px solid #1b1c20; }
.tb { display: flex; gap: 3px; padding: 4px; background: #2f3036; border: 1px solid #1f2024; }
.bt { display: grid; place-items: center; width: 40px; height: 40px; background: #494b53; border: 1px solid #2a2b30; }
.bt svg { width: 22px; height: 22px; fill: #e4e6ea; stroke: #e4e6ea; }
.bt.play svg { fill: #6fd17a; stroke: none; }
.bt.rec svg { fill: #e24a3b; stroke: none; }
.tools .bt { width: 34px; height: 34px; }
.tools .bt.on { background: #5a6fb8; }
.meters { margin-left: auto; display: grid; gap: 3px; width: 190px; }
.mt { display: flex; align-items: center; gap: 5px; height: 11px; font-size: 9px; color: #aeb2b9; }
.mt em { font-style: normal; width: 8px; }
.mt span { flex: 1; height: 8px; background: #1b1c20; position: relative; }
.mt u { position: absolute; left: 0; top: 0; bottom: 0; width: 24%; background: linear-gradient(90deg, #4ac06b, #d8c04a); }
.mt:nth-child(2) u { width: 31%; } .mt:nth-child(3) u { width: 12%; } .mt:nth-child(4) u { width: 17%; }
.aud-ruler { display: flex; margin-left: 152px; height: 26px; align-items: flex-end; background: #2b2c31; border-bottom: 1px solid #1b1c20; color: #aeb2b9; font-size: 10px; background-image: repeating-linear-gradient(90deg, #6a6d75 0 1px, transparent 1px 15.2px); background-size: 100% 6px; background-repeat: no-repeat; background-position: bottom; }
.aud-ruler span { flex: 1; padding: 0 0 4px 4px; }
.aud-tracks { flex: 1; display: grid; grid-template-rows: 1fr 1fr; background: #17181b; min-height: 0; }
.trk { display: grid; grid-template-columns: 152px minmax(0, 1fr); border-bottom: 2px solid #0f1012; min-height: 0; }
.trk-head { padding: 8px 10px; background: #3a3b42; border-right: 1px solid #1b1c20; display: grid; align-content: start; gap: 5px; font-size: 11px; }
.trk-head b { font-weight: 600; font-size: 12px; }
.trk-head span { color: #aeb2b9; font-size: 10px; }
.trk-btns { display: flex; gap: 3px; }
.trk-btns i { font-style: normal; flex: 1; text-align: center; padding: 4px 0; background: #52545c; border: 1px solid #2a2b30; font-size: 10px; }
.trk-sl { height: 4px; background: #232428; position: relative; margin-top: 4px; }
.trk-sl u { position: absolute; left: 62%; top: -4px; width: 8px; height: 12px; background: #c9ccd1; }
.wf { width: 100%; height: 100%; display: block; }
.wf path { fill: #6a86dc; }
.wf line { stroke: #3a4a86; stroke-width: 1; }
.aud-status { display: flex; gap: 28px; height: 24px; align-items: center; padding: 0 10px; background: #2b2c31; border-top: 1px solid #1b1c20; font-size: 10px; color: #aeb2b9; }

.lmw { position: absolute; left: 752px; top: 40px; width: 238px; background: oklch(0.975 0.003 250); color: oklch(0.2 0.012 250); border: 1px solid oklch(0.2 0.012 250); box-shadow: 0 10px 30px rgba(0,0,0,.4); font-family: Bahnschrift, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif; }
.lmw-bar { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; background: oklch(0.7 0.19 45); color: oklch(0.2 0.012 250); font-size: 12px; font-weight: 600; }
.lmw-bar svg rect { fill: currentColor; }
.lmw-bar .lmw-x { margin-left: auto; width: 12px; height: 12px; position: relative; }
.lmw-bar .lmw-x::before, .lmw-bar .lmw-x::after { content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.lmw-bar .lmw-x::after { transform: rotate(-45deg); }
.lmw-body { padding: 12px 12px 14px; display: grid; gap: 8px; font-size: 12px; }
.lmw-body p { max-width: none; }
.lmw-small { color: oklch(0.42 0.012 250); font-size: 11px; }
.lmw-btn { justify-self: start; padding: 6px 12px; border: 1px solid oklch(0.2 0.012 250); font-weight: 600; font-size: 12px; }

.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: rgba(32,33,37,.96); border-top: 1px solid #3a3c44; }
.taskbar i { display: block; width: 22px; height: 22px; background: #4a4d57; }
.taskbar .tb-start { background: linear-gradient(135deg, #5aa0f0 50%, #3b7fd0 50%); }
.taskbar .tb-search { width: 140px; background: #34363d; }
.taskbar .tb-app.on { box-shadow: 0 3px 0 0 #7f9eff; }
.tb-tray { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 12px; }
.tb-tray .tb-ghost { width: 16px; height: 20px; background: #fb6a22; border-radius: 8px 8px 3px 3px; }

/* the ghost's layer, drawn as the desktop draws it */
.gl { position: absolute; inset: 0; pointer-events: none; }
.g-win { position: absolute; left: 0; top: 0; width: 280px; height: 260px; will-change: transform; }
.g-win svg { position: absolute; left: 0; top: 0; overflow: visible; }
.g-cursor { position: absolute; left: 0; top: 0; z-index: 3; will-change: transform; }
.g-ghostwin { z-index: 5; }
.gframe { position: absolute; left: 0; top: 0; z-index: 4; display: none; }
.gframe .barrier { position: absolute; box-sizing: border-box; opacity: 0; background: #fb6a22; border: 0 solid #fb6a22; border-radius: 45% 45% 30% 30%; --c: #fb6a22; --ink: #16181b; }
.gframe .barrier.go { transition: left 560ms cubic-bezier(0.22, 1, 0.36, 1), top 560ms cubic-bezier(0.22, 1, 0.36, 1), width 560ms cubic-bezier(0.22, 1, 0.36, 1), height 560ms cubic-bezier(0.22, 1, 0.36, 1), border-radius 560ms ease, border-width 420ms ease, background-color 420ms ease, box-shadow 420ms ease, opacity 160ms linear; }
.gframe .barrier.open { opacity: 1; border-width: 4px; border-radius: 14px; background: color-mix(in srgb, var(--c) 7%, transparent); box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 2px var(--ink), 0 0 26px color-mix(in srgb, var(--c) 60%, transparent); }
.gframe .barrier.live { animation: breathe 1.7s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 2px var(--ink), 0 0 40px color-mix(in srgb, var(--c) 85%, transparent); } }
.gframe .eyes { position: absolute; left: 0; right: 0; top: 36%; display: flex; justify-content: center; gap: 22%; transition: opacity 160ms linear; }
.gframe .eyes i { width: 16%; aspect-ratio: 1 / 2.1; border-radius: 99px; background: var(--ink); opacity: 0.85; }
.gframe .barrier.open .eyes { opacity: 0; }

/* the phone: an iPhone, dark, 390 x 844 points, scaled */
.phonebox { display: grid; place-items: center; padding: 16px; background: var(--paper); }
.ph-hold { width: calc(390px * var(--ps, 0.6)); height: calc(844px * var(--ps, 0.6)); position: relative; }
.ph { position: absolute; left: 0; top: 0; width: 390px; height: 844px; transform-origin: 0 0; transform: scale(var(--ps, 0.6)); border-radius: 48px; overflow: hidden; background: #111316; color: #ecedee; font: 400 16px/1.3 -apple-system, "SF Pro Text", system-ui, "Segoe UI", sans-serif; display: flex; flex-direction: column; box-shadow: 0 0 0 9px #0a0b0d, 0 0 0 10px #3a3d42; user-select: none; }
.ph svg { display: block; }
.ph-top { background: #fb6a22; color: #16181b; border-bottom: 3px solid #3a3d42; flex: none; }
.ph-status { display: flex; justify-content: space-between; align-items: center; height: 46px; padding: 8px 30px 0 34px; font-size: 17px; }
.ph-icons { display: flex; gap: 6px; } .ph-icons i { width: 18px; height: 11px; background: #16181b; border-radius: 3px; } .ph-icons i:nth-child(2) { width: 15px; } .ph-icons i:nth-child(3) { width: 26px; background: #f5d33b; }
.ph-strip { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 14px 0 16px; }
.ph-who { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; }
.gb { fill: #16181b; }
.ph-btns { display: flex; gap: 6px; } .ph-btns i { font-style: normal; font-weight: 700; font-size: 15px; padding: 8px 12px; border: 2px solid #16181b; }
.ph-asst { display: flex; align-items: center; justify-content: space-between; padding: 20px 16px 14px; flex: none; }
.ph-who2 { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; color: #a9aeb6; }
.ph-who .ge { fill: #fb6a22; } .ph-who2 .gb { fill: #fb6a22; } .ph-who2 .ge { fill: #111316; }
.ph-set { font-style: normal; font: 700 15px/1 ui-monospace, "SF Mono", Menlo, monospace; padding: 11px 14px; border: 2px solid #8a9099; color: #fff; }
.ph-log { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 14px 16px 16px; border-top: 1px solid #2d3036; margin: 0 16px; padding-inline: 0; overflow: hidden; }
.ph-row-you b, .ph-row-asst b { display: block; font-size: 13px; font-weight: 700; color: #9aa0a8; margin-bottom: 2px; }
.ph-row-you span { font-size: 21px; line-height: 1.25; }
.ph-row-you span.faint { color: #7a8088; }
.ph-row-did { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 8px; }
.ph-row-did > b { font-size: 14px; font-weight: 700; color: #9aa0a8; }
.ph-row-did span { display: block; font-size: 16px; color: #c9ccd1; }
.ph-row-did em { display: block; font: 400 13px/1.35 ui-monospace, "SF Mono", Menlo, monospace; font-style: normal; color: #9aa0a8; margin-top: 2px; }
.ph-row-asst span { font-size: 17px; line-height: 1.38; color: #d9dce1; }
.ph-dock { flex: none; border-top: 2px solid #3a3d42; background: #15171a; padding: 12px; display: grid; gap: 12px; }
.ph-band { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 14px; background: #fb6a22; color: #16181b; }
.ph-band b { font-size: 21px; font-weight: 800; }
.ph-ruler { display: flex; align-items: center; gap: 2px; height: 30px; }
.ph-ruler i { display: block; width: 4px; background: #16181b; }
.ph-row { display: flex; gap: 8px; }
.ph .sq, .ph .bar { font-style: normal; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 66px; border: 2px solid #5a5f67; color: #ecedee; }
.ph .sq { width: 66px; } .ph .bar { flex: 1; flex-direction: row; gap: 10px; }
.sq svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; } .ph .bar svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.sq em { font-style: normal; font-size: 14px; font-weight: 700; } .ph .bar b { font-size: 21px; font-weight: 800; }
.sq.hidden { display: none; }
.ph-tabs { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); height: 92px; border-top: 2px solid #3a3d42; padding-bottom: 22px; background: #15171a; }
.ph-tabs span { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font-size: 14px; font-weight: 700; color: #a9aeb6; border-right: 1px solid #2d3036; }
.ph-tabs span:last-child { border-right: 0; }
.ph-tabs svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 1.6; }
.ph-tabs span.on { color: #fff; } .ph-tabs span.on::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 4px; background: #fb6a22; }

.scene-foot { border-top: 1px solid var(--rule); padding: clamp(12px, 2vw, 18px) clamp(14px, 2.4vw, 22px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.ask-note { color: var(--muted); font-size: 14px; max-width: 70ch; }
@media (prefers-reduced-motion: reduce) { .gframe .barrier.live { animation: none; } .gframe .barrier.go { transition-duration: 1ms; } }

/* ==== the phone's Ask tab, as AssistantPanel.tsx draws it (dark scheme, theme.ts) ============ */

.ph.ap { --bg: #111316; --surface: #1b1e22; --rule: #6b7078; --text: #ecedee; --muted: #b4b8be; --sig: #fb6a22; --ink: #16181b;
  font-family: "Inter", -apple-system, "SF Pro Text", system-ui, sans-serif; letter-spacing: -0.01em; background: var(--bg); color: var(--text);
  border-radius: 54px; box-shadow: 0 0 0 10px #0b0c0e, 0 0 0 11.5px #45484d, 0 40px 80px -30px rgb(0 0 0 / 0.6); }
.ap svg { display: block; }
.ap p { margin: 0; }
.ap-top { flex: none; background: var(--sig); color: var(--ink); }
.ap-status { height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 44px; }
.ap-status b { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.ap-icons { display: flex; align-items: center; gap: 6px; }
.ic-sig { width: 18px; height: 12px; fill: var(--ink); }
.ic-wifi { width: 16px; height: 12px; fill: var(--ink); }
.ic-bat { width: 27px; height: 13px; fill: var(--ink); stroke: var(--ink); }
.ap-strip { display: flex; align-items: center; gap: 8px; padding: 6px 16px 12px; }
.ap-who { display: flex; align-items: center; gap: 8px; margin-right: auto; font-size: 15px; font-weight: 600; }
.ap-mini { width: 19px; height: 24px; }
.ap-mini .gb { fill: var(--ink); }
.ap-mini .ge { fill: var(--sig); }
.ap-ctl { padding: 6px 11px; border: 2px solid var(--ink); border-radius: 2px; font-size: 13px; font-weight: 700; }
.ap-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 4px; border-top: 3px solid #2b2e33; }
.ap-head > span:first-child { font-size: 13px; font-weight: 700; color: var(--muted); }
.ap-ctl.dim { border-color: var(--rule); color: var(--text); }

/* The ghost in the middle, the captions under it. */
.ap-focus { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px 20px; text-align: center; overflow: hidden; }
.ap-ghost { position: relative; width: 168px; height: 168px; display: grid; place-items: center; flex: none; }
.ap-big { width: 96px; height: 120px; position: relative; z-index: 1; }
.ap-big .gb { fill: var(--sig); }
.ap-big .ge { fill: var(--bg); transition: transform 0.3s ease-out; }
.ap-ghost .ring { position: absolute; left: 50%; top: 50%; width: 122px; height: 122px; margin: -61px 0 0 -61px; border-radius: 50%; border: 2px solid var(--sig); opacity: 0; }
.ap-ghost[data-v="speaking"] .ring.o { animation: ap-out 1.11s linear infinite; animation-delay: calc(var(--i) * -0.37s); }
.ap-ghost[data-v="listening"] .ring.in { animation: ap-in 1.43s linear infinite; animation-delay: calc(var(--i) * -0.476s); }
@keyframes ap-out { from { transform: scale(0.75); opacity: 0.55; } to { transform: scale(1.5); opacity: 0; } }
@keyframes ap-in { 0% { transform: scale(1.5); opacity: 0; } 50% { opacity: 0.4; } 100% { transform: scale(0.85); opacity: 0; } }
.ap-ghost[data-v="speaking"] .ap-big { animation: ap-talk 0.9s ease-in-out infinite; }
@keyframes ap-talk { 0%, 100% { transform: translateY(0) scale(1); } 30% { transform: translateY(-5px) scale(1.02, 0.99); } 60% { transform: translateY(-1px); } }
.ap-ghost[data-v="listening"] .ap-big .ge { transform: translateY(8px); }
.ap-ghost[data-v="thinking"] .ap-big .ge { transform: translate(6px, -9px); }
.ap-ghost .dots { position: absolute; left: 62%; top: 4%; display: flex; align-items: flex-end; gap: 5px; opacity: 0; }
.ap-ghost .dots i { display: block; border-radius: 50%; background: var(--sig); }
.ap-ghost .dots i:nth-child(1) { width: 8px; height: 8px; }
.ap-ghost .dots i:nth-child(2) { width: 11px; height: 11px; }
.ap-ghost .dots i:nth-child(3) { width: 15px; height: 15px; }
.ap-ghost[data-v="thinking"] .dots { opacity: 1; }
.ap-ghost[data-v="thinking"] .dots i { animation: ap-dot 1.57s ease-in-out infinite; }
.ap-ghost[data-v="thinking"] .dots i:nth-child(2) { animation-delay: 0.22s; }
.ap-ghost[data-v="thinking"] .dots i:nth-child(3) { animation-delay: 0.45s; }
@keyframes ap-dot { 0%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.ap-word { margin: -8px 0 0 !important; font-size: 13px; line-height: 17px; font-weight: 700; color: var(--muted); }
.ap-caps { align-self: stretch; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ap-hint { font-size: 14px; line-height: 20px; color: var(--muted); }
.ap-you { font-size: 13px; line-height: 17px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ap-you[hidden], .ap-reply[hidden], .ap-hint[hidden], .ap-word[hidden] { display: none; }
.ap-acts { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 100%; }
.ap-act { display: flex; align-items: baseline; gap: 8px; max-width: 100%; animation: ap-fade 0.16s ease-out; }
.ap-act b { font-size: 12px; line-height: 16px; font-weight: 700; color: var(--text); flex: none; }
.ap-act span { font-size: 13px; line-height: 17px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-reply { font-size: 20px; line-height: 25px; letter-spacing: -0.3px; color: var(--text); }
@keyframes ap-fade { from { opacity: 0; } }
.ap-all { display: flex; align-items: center; gap: 4px; min-height: 44px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ap-all svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; }

/* The dock: Mute, Stop's kept place, Type, End. */
.ap-dock { flex: none; padding: 12px 16px 16px; border-top: 1px solid var(--rule); background: var(--surface); }
.ap-row { display: flex; align-items: flex-end; gap: 12px; }
.ap-sq, .ap-bar { height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 2px solid var(--rule); border-radius: 2px; background: var(--bg); color: var(--text); }
.ap-sq { width: 64px; }
.ap-sq b { font-size: 12px; line-height: 16px; font-weight: 700; }
.ap-sq svg, .ap-bar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.ap-sq svg .fill { fill: currentColor; stroke: none; }
.ap-slot { width: 64px; height: 64px; }
.ap-stop { opacity: 0; transform: scale(0.6); transition: opacity 0.16s, transform 0.16s; }
.ap-stop.on { opacity: 1; transform: none; }
.ap-sq.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.ap-bar { flex: 1; flex-direction: row; gap: 12px; }
.ap-bar b { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }

/* The tabs: the selected one has a vermilion rule along its top (Toolbar.tsx). */
.ap-tabs { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); height: 92px; padding-bottom: 26px; background: var(--surface); border-top: 1px solid #34383e; }
.ap-tabs span + span { border-left: 1px solid #34383e; }
.ap-tabs span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 12px; border-top: 3px solid transparent; margin-top: -1px; }
.ap-tabs span.on { border-top-color: var(--sig); color: var(--text); }
.ap-tabs span b { font-weight: 600; }
.ap-tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.ap-home { position: absolute; left: 50%; bottom: 9px; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: #ecedee; }
@media (prefers-reduced-motion: reduce) { .ap-ghost .ring, .ap-big, .ap-ghost .dots i { animation: none !important; } }

/* ==== the picture the assistant found, on the screen like a sticker (sticker.html) =========== */

.stk { will-change: transform, opacity; contain: layout paint; position: absolute; z-index: 2; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; background: #15171c; border: 1px solid rgb(255 255 255 / 0.09);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 2px 4px rgb(0 0 0 / 0.25), 0 24px 50px -24px rgb(0 0 0 / 0.6);
  opacity: 0; transform: translateY(10px) scale(0.97) rotate(-0.6deg); transition: opacity 240ms cubic-bezier(0.22, 1, 0.36, 1), transform 340ms cubic-bezier(0.22, 1, 0.36, 1); }
.stk.on { opacity: 1; transform: none; }
.stk-bar { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 16px; }
.stk-title { flex: 1; min-width: 0; color: #f3f4f5; font: 700 14px/1.25 "Manrope", system-ui, "Segoe UI", sans-serif; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stk-title::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fb6a22; margin-right: 9px; vertical-align: 1px; }
.stk-tools { flex: none; display: flex; gap: 2px; }
.stk-tools i { width: 30px; height: 30px; padding: 6px; color: color-mix(in srgb, #f3f4f5 72%, transparent); }
.stk-tools svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.stk-paper { flex: 1; min-height: 0; margin: 0 8px 8px; border-radius: 9px; background: #fff; display: flex; align-items: center; justify-content: center; }
.stk-paper img { display: block; max-width: calc(100% - 8px); max-height: calc(100% - 8px); object-fit: contain; }
.stk-marks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 3; }
.stk-marks path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.stk-marks .edge { stroke: #16181b; stroke-opacity: 0.45; stroke-width: 7; }
.stk-marks .line { stroke: #fb6a22; stroke-width: 4; }
.stk-marks .line, .stk-marks .edge { stroke-dasharray: var(--len); stroke-dashoffset: 0; }
.stk-marks.drawing .line, .stk-marks.drawing .edge { stroke-dashoffset: var(--len); animation: stk-draw 520ms cubic-bezier(0.22, 1, 0.36, 1) var(--delay) forwards; }
.stk-marks.drawing .arrow .line, .stk-marks.drawing .arrow .edge { animation-duration: 820ms; }
@keyframes stk-draw { to { stroke-dashoffset: 0; } }
.stk-marks .head { fill: #fb6a22; stroke: none; }
.stk-marks .head-edge { fill: #16181b; stroke: #16181b; stroke-width: 5; }
.stk-marks .flow { stroke: rgb(255 255 255 / 0.8); stroke-width: 2.5; stroke-dasharray: 2 16; animation: stk-flow 900ms linear infinite; }
.stk-marks.drawing .head, .stk-marks.drawing .head-edge, .stk-marks.drawing .tag { opacity: 0; animation: stk-appear 200ms ease-out calc(var(--delay) + 700ms) forwards; }
.stk-marks.drawing .loop .tag { animation-delay: calc(var(--delay) + 380ms); }
.stk-marks.drawing .flow { opacity: 0; animation: stk-appear 300ms ease-out calc(var(--delay) + 900ms) forwards, stk-flow 900ms linear calc(var(--delay) + 900ms) infinite; }
@keyframes stk-appear { to { opacity: 1; } }
@keyframes stk-flow { from { stroke-dashoffset: 18; } to { stroke-dashoffset: 0; } }
.stk-marks .tag rect { fill: #fb6a22; stroke: #16181b; stroke-width: 1.5; }
.stk-marks .tag text { fill: #16181b; font: 700 13px/1 "Manrope", system-ui, "Segoe UI", sans-serif; text-anchor: middle; dominant-baseline: central; }
@media (prefers-reduced-motion: reduce) {
  .stk { transition: opacity 160ms linear; transform: none; }
  .stk-marks.drawing .line, .stk-marks.drawing .edge { animation: none; stroke-dashoffset: 0; }
  .stk-marks.drawing .head, .stk-marks.drawing .head-edge, .stk-marks.drawing .tag { animation: none; opacity: 1; }
  .stk-marks .flow, .stk-marks.drawing .flow { animation: none; opacity: 0; }
}

/* ---- the hero: the laptop, the sticker on it, the phone beside it ---- */
.hero-screen { position: relative; }
.hero-screen .stk { left: 5%; top: 7.5%; width: 58%; height: 80%; }
.hero-phone { position: absolute; z-index: 4; top: 70px; --ps: 0.6; right: calc(-1 * min(150px, max(0px, (100vw - 1040px) / 2 - 20px))); }
@media (max-width: 1180px) { .hero-phone { --ps: 0.54; } }
@media (max-width: 900px) { .hero-phone { display: none; } .hero-screen .stk { left: 4%; width: 92%; } }
@media (max-width: 600px) { #explain .carry { display: none; } }

/* ---- this page's tuning of the demo windows ---- */
.drag-win .mac.big { box-shadow: 0 1px 0 #fff inset, 0 40px 80px -40px rgb(40 30 10 / 0.45), 0 4px 10px rgb(0 0 0 / 0.07); }
.card .mods button { min-width: 84px; min-height: 66px; }
.card .zoom-screen { border-radius: 12px; background: url(assets/wallpapers/valley.jpg) center / cover; }
.screen .win, .zoom-screen .win { box-shadow: 0 14px 30px -14px rgb(0 0 0 / 0.55); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
