:root { color-scheme: dark; --ground: #0B0D14; --ink: #E8EDF7; --soft: #A9B4CC; --dim: #6B7489; --line: #FFFFFF14; --coral: #FF7A7A; }
* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* What a link leads to stops below the header that stays at the top, not under it. */
[id] { scroll-margin-top: 76px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.6 Inter, -apple-system, "Segoe UI", sans-serif; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(60vw 50vh at 78% 8%, #FF5F7E22, transparent 70%), radial-gradient(50vw 50vh at 8% 60%, #57A5E01A, transparent 70%); }
header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(16px, 4vw, 48px);
  backdrop-filter: blur(12px); background: #0B0D14B3; border-bottom: 1px solid var(--line); }
header .name { font-weight: 800; font-size: 20px; letter-spacing: -0.5px; color: var(--ink); text-decoration: none; }
nav a { color: var(--soft); text-decoration: none; margin-left: 22px; font-size: 14px; }
nav a:hover { color: var(--ink); }
main { max-width: 1240px; margin: 0 auto; padding: 0 clamp(12px, 3vw, 20px); }
.hero { padding: clamp(20px, 5vh, 56px) 0 clamp(12px, 3vh, 32px); }
moe-player { display: block; width: 100%; }
/* Room for one that has not started yet. */
.screen moe-player:not([src]) { aspect-ratio: 16 / 9; }
/* Mo lives in the corner of the window, over the page. */
#guide { position: fixed; right: clamp(4px, 2vw, 24px); bottom: clamp(4px, 2vw, 20px); width: clamp(84px, 11vw, 132px); z-index: 6; cursor: pointer; }
/* Over a player with a bar of its own, Mo steps out of the way of its buttons. */
#guide { transition: opacity .2s, transform .2s; }
#guide.aside { opacity: 0; transform: translateY(12px); pointer-events: none; }
section { padding: clamp(28px, 7vh, 80px) 0; }
h2 { font-size: clamp(26px, 4.4vw, 44px); line-height: 1.15; letter-spacing: -1px; margin: 0 0 12px; font-weight: 800; }
.lead { color: var(--soft); font-size: clamp(16px, 2vw, 19px); margin: 0 0 32px; max-width: 46ch; }
.screen { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #07080C; }
footer { max-width: 1240px; margin: 0 auto; padding: 40px clamp(12px, 3vw, 20px) 140px; color: var(--dim); font-size: 14px; }
footer .feet { margin: 14px 0 0; }
footer .feet a { color: var(--soft); text-decoration: none; margin-right: 18px; }
footer .feet a:hover { color: var(--ink); }
/* What Mo says: a bubble beside it, gone after a while. */
#says { position: fixed; z-index: 6; right: calc(clamp(4px, 2vw, 24px) + clamp(84px, 11vw, 132px) - 6px); bottom: calc(clamp(4px, 2vw, 20px) + clamp(38px, 5vw, 60px));
  max-width: min(260px, 56vw); padding: 10px 14px; background: #F4F6FB; color: #131724; border-radius: 16px 16px 4px 16px; font-size: 14px; line-height: 1.4;
  box-shadow: 0 10px 30px #0008; transition: opacity .25s, transform .25s; }
#says[hidden] { display: block; opacity: 0; transform: translateY(6px) scale(.96); pointer-events: none; }
.vlog { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(20px, 5vw, 64px); align-items: center; }
.phone { border-radius: 38px; padding: 10px; background: #1B2134; border: 1px solid #FFFFFF24; box-shadow: 0 30px 80px #000A; }
.phone moe-player { border-radius: 30px; overflow: hidden; }
.phone moe-player:not([src]) { aspect-ratio: 540 / 960; }
@media (max-width: 720px) { .vlog { grid-template-columns: 1fr; } .phone { width: 100%; max-width: 320px; margin: 0 auto; box-sizing: border-box; } }

/* The page as one conversation that ships: a trunk down the left, a stage
   at each knot, and at each stage what was said and what came of it. */
.pitch { max-width: 1240px; margin: 0 auto clamp(4px, 2vh, 20px); }
.pitch h1 { font-size: clamp(34px, 6.4vw, 72px); line-height: 1.04; letter-spacing: -2px; margin: 0 0 16px; font-weight: 800; }
.pitch h1 em { font-style: normal; color: var(--coral); }
.pitch .lead { max-width: 52ch; margin-bottom: 24px; }
.go { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--coral); color: #1A0D12; font-weight: 700; text-decoration: none; }
.go + .also { margin-left: 18px; color: var(--soft); text-decoration: none; font-size: 15px; }
.go + .also:hover { color: var(--ink); }
.trunk { position: relative; padding-left: clamp(26px, 5vw, 56px); }
.trunk::before { content: ""; position: absolute; left: clamp(8px, 1.6vw, 18px); top: 12px; bottom: 0; width: 2px; border-radius: 2px;
  background: linear-gradient(#FF7A7A, #FFB36B 30%, #7FDBCA 65%, #57A5E0); opacity: .7; }
.stage { padding: clamp(24px, 6vh, 64px) 0; }
.stage > header { position: static; display: block; padding: 0; background: none; border: 0; backdrop-filter: none; margin-bottom: clamp(16px, 3vh, 28px); }
.stage .step { display: block; color: var(--coral); font: 600 13px "JetBrains Mono", ui-monospace, Menlo, monospace; letter-spacing: 1px; margin-bottom: 6px; position: relative; }
.stage .step::before { content: ""; position: absolute; left: calc(-1 * clamp(26px, 5vw, 56px) + clamp(8px, 1.6vw, 18px) - 6px); top: 2px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--ground); border: 2px solid var(--coral); }
.stage h2 { margin-bottom: 8px; }
.stage .lead { margin-bottom: 0; }
.turn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(14px, 3vw, 40px); align-items: center; margin-top: clamp(18px, 4vh, 36px); }
.said { justify-self: end; max-width: 34ch; }
.said small, .made figcaption { display: block; color: var(--dim); font-size: 12px; letter-spacing: .5px; margin-bottom: 6px; }
.said p { margin: 0; padding: 14px 18px; background: #F4F6FB; color: #131724; border-radius: 18px 18px 4px 18px; font-size: clamp(16px, 1.8vw, 19px); line-height: 1.4; box-shadow: 0 10px 30px #0006; }
.said .back { margin-top: 10px; background: #1B2134; color: #C8D0E0; border: 1px solid var(--line); border-radius: 18px 18px 18px 4px; font-size: 14px; box-shadow: none; }
.made { margin: 0; background: #131724; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.made moe-player { background: radial-gradient(120% 90% at 50% 0%, #1B2134, #131724 70%); cursor: grab; }
.made moe-player:not([src]) { aspect-ratio: 560 / 420; }
.made figcaption { margin: 12px 20px 14px; }
.made figcaption b { color: var(--soft); font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(14px, 2.4vw, 28px); margin: 28px 0; counter-reset: step; }
.steps article { background: #131724; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.steps article::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--coral); color: #1A0D12; font-weight: 800; margin-bottom: 10px; }
.steps h3 { margin: 0 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--soft); font-size: 15px; }
/* Adding moe: a tab for each AI tool, its lines to copy, and the two for a page. */
.setup { display: grid; gap: 12px; max-width: 760px; min-width: 0; }
.setup > * { min-width: 0; }
.setup h3 { margin: 18px 0 0; font-size: 16px; color: var(--soft); font-weight: 600; }
.setup p.dim { margin: 0; color: var(--dim); font-size: 14px; }
.actions { margin: 28px 0 0; }
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: clamp(14px, 2.4vw, 28px); }
.why h3 { margin: 0 0 6px; font-size: 18px; }
.why p { margin: 0; color: var(--soft); font-size: 15px; }
@media (max-width: 720px) {
  .turn { grid-template-columns: 1fr; }
  .said { justify-self: start; }
}
.note { color: var(--dim); font-size: 14px; margin: 16px 0 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(14px, 2.4vw, 28px); margin: 28px 0 8px; max-width: 860px; }
.plans article { background: #131724; border: 1px solid var(--line); border-radius: 22px; padding: 24px 26px 26px; display: flex; flex-direction: column; }
.plans article.pro { border-color: var(--coral); }
.plans h3 { margin: 0; font-size: 18px; color: var(--soft); font-weight: 600; }
.plans .cost { margin: 6px 0 14px; color: var(--dim); font-size: 15px; }
.plans .cost b { color: var(--ink, #F4F6FB); font-size: clamp(34px, 5vw, 46px); font-weight: 800; letter-spacing: -1px; margin-right: 6px; }
.plans ul { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.plans li { padding: 8px 0; border-top: 1px solid var(--line); color: var(--soft); font-size: 15px; }
.plans .go { align-self: flex-start; }
.go.quiet { background: none; color: var(--soft); border: 1px solid var(--line); }
header nav a { white-space: nowrap; }
@media (max-width: 720px) {
  /* Five links do not fit a narrow window: the two the page begins with anyway — its first button and what is under it — go. */
  header nav a[href="#move"], header nav a[href="#connect"] { display: none; }
}
/* What stands for a scene until it plays: its first frame, as large as the scene will be. */
moe-player picture img, moe-player img[slot="poster"] { display: block; width: 100%; height: auto; }
/* The hero waits with Mo: where Mo will be written into being, Mo in outline is drawn, line by line, over and
   over — once the wait is long enough to be one. The player's own line is not needed beside it. */
#hero::part(loading) { display: none; }
.wait { position: relative; }
.coming { position: absolute; left: 50%; right: 0; top: 0; bottom: 0; display: grid; place-content: center; justify-items: center; gap: 6px;
  opacity: 0; animation: coming-in .5s ease-out .5s forwards; }
.coming svg { width: clamp(140px, 24vw, 260px); height: auto; animation: coming-bob 2.6s ease-in-out infinite; }
/* Each line begins further from being drawn than the one before, and all are drawn at one pace: the head first,
   then horns, ears, muzzle and smile; and they go together. */
.coming path { --late: 0; stroke-dasharray: 1 4; stroke-dashoffset: calc(1 + var(--late)); animation: coming-draw 3.4s linear infinite; }
.coming path:nth-child(1), .coming path:nth-child(2) { --late: .7; }
.coming path:nth-child(3), .coming path:nth-child(4) { --late: 1.1; }
.coming path:nth-child(6) { --late: 1.5; }
.coming path:nth-child(7) { --late: 2.2; }
.coming .eyes { opacity: 0; transform-origin: 120px 116px; animation: coming-eyes 3.4s ease-in-out infinite; }
.coming p { margin: 0; color: var(--dim); font: 13px "JetBrains Mono", ui-monospace, Menlo, monospace; letter-spacing: .3px; }
@keyframes coming-in { to { opacity: 1; } }
@keyframes coming-draw { 0% { stroke-dashoffset: calc(1 + var(--late)); opacity: 1; } 50%, 86% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes coming-eyes { 0%, 50% { opacity: 0; transform: scaleY(1); } 56%, 68% { opacity: 1; transform: scaleY(1); } 71% { opacity: 1; transform: scaleY(.1); } 74%, 86% { opacity: 1; transform: scaleY(1); } 100% { opacity: 0; } }
@keyframes coming-bob { 50% { transform: translateY(-5px); } }
@media (max-width: 720px) { .coming { left: 0; bottom: 60%; } }
@media (prefers-reduced-motion: reduce) {
  .coming svg, .coming path, .coming .eyes { animation: none; }
  .coming path { stroke-dashoffset: 0; }
  .coming .eyes { opacity: 1; }
}
/* The quick start: what to do, beside what it looks like — words to read, lines to copy, a tab for each AI tool. */
.intro { padding-bottom: 0; }
.intro h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.05; letter-spacing: -1.5px; margin: 0 0 14px; }
/* (min-width: lines of code too long for the column scroll in their box, not widen the column.) */
.how { justify-self: stretch; min-width: 0; max-width: 52ch; margin-left: auto; display: grid; gap: 14px; }
.how > *, .how .tool > * { min-width: 0; }
.how p { margin: 0; color: var(--ink); font-size: clamp(16px, 1.7vw, 18px); line-height: 1.55; }
.how p.dim { color: var(--dim); font-size: 14px; }
.tool { display: grid; gap: 12px; min-width: 0; }
.tool > * { min-width: 0; }
.tool[hidden] { display: none; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs button { font: 600 13px Inter, -apple-system, sans-serif; color: var(--soft); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.tabs button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tabs button[aria-selected="true"] { color: #1A0D12; background: var(--coral); border-color: var(--coral); }
.code { position: relative; }
.code pre { margin: 0; padding: 14px 16px; padding-right: 72px; background: #131724; border: 1px solid var(--line); border-radius: 14px; color: #C8D0E0;
  font: 13px/1.6 "JetBrains Mono", ui-monospace, Menlo, monospace; overflow-x: auto; white-space: pre; }
.code.ask pre { white-space: pre-wrap; font: 15px/1.5 Inter, -apple-system, sans-serif; color: var(--ink); }
.code .copy { position: absolute; top: 8px; right: 8px; font: 600 12px Inter, -apple-system, sans-serif; color: var(--soft); background: #1B2134; border: 1px solid var(--line);
  border-radius: 8px; padding: 5px 10px; cursor: pointer; }
.code .copy:hover { color: var(--ink); }
.code .copy.done { color: #7FDBCA; border-color: #7FDBCA66; }
.steps .more { margin-top: 10px; }
.steps .more a { color: var(--coral); text-decoration: none; font-weight: 600; }
nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 720px) { .how { margin-left: 0; max-width: none; } }
/* A menu of six on a phone: one line, smaller and closer; the narrowest leave out what the page itself leads to. */
@media (max-width: 720px) { header { padding: 12px 14px; } nav a { margin-left: 12px; font-size: 13px; } }
@media (max-width: 420px) { nav a.wide { display: none; } }
/* Each scene of the page, as the words it is written in: there to open, beside what they make. */
.source { margin: 0 20px 14px; }
.source summary { cursor: pointer; color: var(--soft); font-size: 13px; width: max-content; max-width: 100%; }
.source summary:hover { color: var(--ink); }
.source .file { margin: 10px 0 0; }
.source .file b { display: block; color: var(--dim); font: 12px "JetBrains Mono", ui-monospace, Menlo, monospace; margin-bottom: 6px; }
.source pre { margin: 0; max-height: 420px; overflow: auto; padding: 12px 14px; background: #0B0D14; border: 1px solid var(--line); border-radius: 12px; color: #C8D0E0;
  font: 12px/1.6 "JetBrains Mono", ui-monospace, Menlo, monospace; white-space: pre; }
/* Questions, each opened where it is asked. */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { background: #131724; border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; }
.faq details p { margin: 10px 0 0; color: var(--soft); }
.faq a { color: var(--ink); }
/* The last word of the page: the way in, once more. */
.end h2 { font-size: clamp(28px, 4.8vw, 48px); }
.end p { margin: 20px 0 0; }
footer .feet a[hidden] { display: none; }
/* On a phone the lines scroll sideways under where the copy button would float: there it sits above them instead. */
@media (max-width: 720px) {
  .code { display: grid; }
  .code .copy { position: static; order: -1; justify-self: end; margin-bottom: 6px; }
  .code pre { padding-right: 16px; }
}
