/* Layout: one calm column on white. A hero with the logo card and the three install
   steps, a real conversation as the proof, then what you get, commands and guides. */
:root {
  color-scheme: light;
  --ink: #143024; --sage: #6B9A82; --mint: #9CC9AF; --soft: #E1EBE2;
  --paper: #FFFFFF; --text: #1E2B24; --muted: #5A6B62; --line: #DCE5DF; --code: #F3F7F4;
  --display: "Quicksand", "Nunito", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.6 var(--body); }
.wrap { max-width: 980px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); text-wrap: balance; margin: 0; line-height: 1.2; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.1rem; }
p { margin: 0; max-width: 64ch; }
a { color: var(--ink); text-decoration-color: var(--mint); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--sage); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; border-radius: 4px; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--code); padding: 0.1em 0.35em; border-radius: 4px; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.1rem var(--display); color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: auto; }
.top nav { display: flex; gap: 18px; font-size: 0.95rem; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }
.top nav a, .brand { white-space: nowrap; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding-block: 40px 56px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 28px; box-shadow: 0 18px 40px -28px rgba(20, 48, 36, 0.35); }
.card img { display: block; width: 100%; height: auto; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
.hero .lead { font-size: 1.15rem; color: var(--muted); margin-top: 14px; }
.steps { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: center; counter-increment: s; }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--ink);
  display: grid; place-items: center; font: 700 0.85rem var(--display); }
.cmd { display: flex; align-items: center; gap: 8px; min-width: 0; background: var(--ink); color: #EAF3EE; border-radius: 10px; padding: 9px 10px 9px 14px; }
.cmd code { background: none; color: inherit; padding: 0; font-size: 0.86rem; white-space: nowrap; overflow-x: auto; flex: 1; min-width: 0; }
.copy { flex: none; font: 500 0.75rem var(--body); color: var(--ink); background: var(--mint); border: 0; border-radius: 6px; padding: 4px 9px; cursor: pointer; }
.copy:hover { background: #B3D7C2; }
.note { font-size: 0.9rem; color: var(--muted); margin-top: 14px; }

/* sections */
section { padding-block: 52px; border-top: 1px solid var(--line); }
.head { display: grid; gap: 10px; margin-bottom: 26px; }
.head p { color: var(--muted); }

/* the conversation */
.chat { display: grid; gap: 12px; max-width: 720px; }
.msg { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: start; }
.who { font: 700 0.8rem var(--display); color: var(--muted); padding-top: 11px; text-transform: lowercase; letter-spacing: 0.04em; }
.bubble { border-radius: 14px; padding: 10px 14px; background: var(--code); }
.msg.ai .bubble { background: var(--soft); }
.msg.ai .who { color: var(--ink); }
.gap { font-size: 0.9rem; color: var(--muted); font-style: italic; padding-left: 84px; }
.day { font: 700 0.78rem var(--display); color: var(--sage); text-transform: uppercase; letter-spacing: 0.12em; padding-left: 84px; margin-top: 8px; }
.proof { margin-top: 18px; color: var(--muted); max-width: 64ch; }

/* what you get */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.item { display: grid; gap: 6px; align-content: start; }
.item p { color: var(--muted); font-size: 0.97rem; }
.item h3 { display: flex; align-items: center; gap: 8px; }
.item h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--mint); flex: none; }

/* commands */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 0.8rem var(--body); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
td:first-child { white-space: nowrap; }
.plain { margin-top: 16px; color: var(--muted); }

/* guides */
.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide { display: grid; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.guide:hover { border-color: var(--mint); }
.guide span { color: var(--muted); font-size: 0.92rem; }

footer { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-block: 20px 40px; }
  .card { max-width: 340px; }
  .grid, .guides { grid-template-columns: 1fr; }
  .msg { grid-template-columns: 1fr; gap: 2px; }
  .who { padding-top: 0; }
  .gap, .day { padding-left: 0; }
  /* The menu goes under the brand, whole: hiding links lost the way around the page. */
  .top { flex-wrap: wrap; row-gap: 6px; padding-block: 14px; }
  .top nav { width: 100%; flex-wrap: wrap; gap: 4px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* guide pages: plain text, one column */
.prose { max-width: 720px; padding-block: 24px 64px; }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 18px; }
.prose h2 { font-size: 1.35rem; margin: 36px 0 12px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose pre { background: var(--ink); color: #EAF3EE; border-radius: 10px; padding: 12px 14px; overflow-x: auto; font: 0.88rem/1.5 var(--mono); }
.prose pre code { background: none; color: inherit; padding: 0; }
.prose .codebox { display: flex; align-items: flex-start; gap: 8px; min-width: 0; margin: 0 0 14px; background: var(--ink); border-radius: 10px; }
.prose .codebox pre { flex: 1; min-width: 0; margin: 0; background: none; padding-right: 0; }
.prose .codebox .copy { margin: 10px 10px 0 0; }
.back { display: inline-block; margin-top: 8px; font-size: 0.95rem; }

/* product page (index.html): story, three metaphors, a task's life, the guard at work,
   a real task file, and the start steps last. Short sections, one idea each. */
.kicker { font: 600 0.85rem var(--body); color: var(--sage); letter-spacing: 0.02em; margin-bottom: 14px; }
.hero:has(.actions) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-block; font: 600 0.98rem var(--body); text-decoration: none; color: #fff; background: var(--ink);
  padding: 11px 20px; border-radius: 10px; border: 2px solid var(--ink); }
.btn:hover { background: #1E4434; }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--mint); }

.versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.side { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 18px; border: 1px solid var(--line); }
.side.with { background: #F6FBF8; border-color: var(--mint); }
.side .label { font: 700 0.78rem var(--display); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.side.with .label { color: var(--sage); }
.side .bubble { max-width: 88%; }
.side .bubble.you { justify-self: end; background: var(--code); }
.side .bubble.ai { background: var(--soft); }
.side.without .bubble.ai { background: #F4F1EC; }
.after { font-weight: 600; color: var(--ink); margin-top: 4px; }
.side.without .after { color: var(--muted); }

.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.thing { display: grid; gap: 10px; align-content: start; padding: 24px; border: 1px solid var(--line); border-radius: 18px; }
.thing p { color: var(--muted); }
.thing .eg { color: var(--ink); font-style: italic; border-left: 3px solid var(--mint); padding-left: 12px; margin-top: 4px; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.life { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; counter-reset: l; }
.life li { counter-increment: l; display: grid; gap: 6px; align-content: start; padding: 16px 14px; border-radius: 14px; background: var(--code); position: relative; }
.life li::before { content: counter(l); width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font: 700 0.8rem var(--display); }
.life b { font: 700 1.05rem var(--display); color: var(--ink); }
.life span { font-size: 0.9rem; color: var(--muted); line-height: 1.45; }
.life em { font-size: 0.85rem; color: var(--ink); line-height: 1.4; }

.term { background: var(--ink); border-radius: 16px; padding: 10px 6px; color: #EAF3EE; }
.term .line { display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 9px 14px; }
.term .line + .line { border-top: 1px solid rgba(234, 243, 238, 0.1); }
.term code { background: none; color: #EAF3EE; padding: 0; font-size: 0.88rem; white-space: nowrap; overflow-x: auto; }
.term code::before { content: "$ "; color: var(--mint); }
.tag { font: 700 0.72rem var(--body); text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tag.stop { background: #F2C7BF; color: #5C1D12; }
.tag.ask { background: #F3E2B0; color: #4D3A06; }
.tag.go { background: var(--mint); color: var(--ink); }
.why { font-size: 0.88rem; color: #B9CEC2; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.split h2 { margin-bottom: 14px; }
.split p { color: var(--muted); }
.split p + p { margin-top: 12px; }
.file { margin: 0; background: var(--code); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; overflow-x: auto;
  font: 0.86rem/1.6 var(--mono); color: var(--text); }
.file .fname { display: block; font: 600 0.78rem var(--body); color: var(--muted); margin-bottom: 8px; }
.file .fm { color: var(--sage); }

#start .steps { max-width: 760px; margin-top: 0; }
#start .steps li { grid-template-columns: 28px minmax(0, 1fr); row-gap: 6px; }
#start .steps li > span { grid-column: 2; font-weight: 600; color: var(--ink); }
#start .steps li::before { grid-row: 1; }
#start .steps li .cmd { grid-column: 2; }
.more { margin-top: 24px; }
.more summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.more .table-wrap { margin-top: 12px; }

@media (max-width: 980px) {
  .life { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hero:has(.actions) { grid-template-columns: 1fr; }
  .hero:has(.actions) .card { display: none; }
  .versus, .three, .split { grid-template-columns: 1fr; }
  .life { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .term .line { grid-template-columns: minmax(0, 1fr) auto; }
  .term .why { grid-column: 1 / -1; }
  /* A long command wraps instead of being cut at the edge. */
  .term code { white-space: normal; overflow-wrap: anywhere; overflow-x: visible; }
}

/* questions, skip link, anchors below the top edge */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.faq details[open] { border-color: var(--mint); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.faq details p { margin-top: 8px; color: var(--muted); }
.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }
section[id] { scroll-margin-top: 16px; }

/* alpha notice, on top of every page */
.alpha { background: #F3E2B0; color: #4D3A06; font-size: 0.9rem; padding-block: 8px; }
.alpha a { color: #4D3A06; text-decoration-color: #4D3A06; }

/* diagrams in the guides: generated SVGs drawn at the size they are shown; <picture>
   swaps in the narrow, stacked version on phones, so there is never a sideways scroll */
.diagram { margin: 22px 0 28px; }
.diagram img { display: block; width: 100%; max-width: 760px; height: auto; margin: 0 auto; }
.prose .table-wrap { margin: 0 0 18px; }
@media (min-width: 900px) { .prose .diagram { margin-inline: -40px; } }
@media (max-width: 600px) {
  .prose table, .prose thead, .prose tbody, .prose tr, .prose td { display: block; }
  .prose thead { display: none; }
  .prose tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .prose td { border: 0; padding: 2px 0; }
  .prose td:first-child { font-weight: 600; color: var(--ink); }
}

/* "what it does": what you say, and what happens */
.uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.use { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 6px; align-content: start; }
.use .say { font: 600 1rem var(--body); color: var(--ink); background: var(--soft); border-radius: 10px; padding: 6px 10px; justify-self: start; }
.use p:not(.say) { color: var(--muted); font-size: 0.97rem; }

/* backup: what you get, and how to set it up */
.backup { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.pros { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.pros li { padding-left: 22px; position: relative; color: var(--muted); }
.pros li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 3px; background: var(--mint); }
.pros b { color: var(--ink); }
.howto { display: grid; gap: 10px; background: var(--code); border-radius: 16px; padding: 18px; }
.howto .label { font: 700 0.8rem var(--display); color: var(--sage); text-transform: uppercase; letter-spacing: 0.1em; }
.howto .cmd code { white-space: pre; }
@media (max-width: 820px) {
  .uses, .backup { grid-template-columns: 1fr; }
}
.btn.heart { background: var(--paper); color: #BF3989; border-color: #F2C4DD; }
.btn.heart:hover { background: #FDF2F8; border-color: #BF3989; }

/* The demo: two days with augmented brain, played as a chat in an app window. Without
   JavaScript, or with reduced motion, every step shows at once. */
.alpha { text-align: center; }
.demo { max-width: 760px; margin: 0 auto; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: var(--paper); box-shadow: 0 18px 40px -28px rgba(20, 48, 36, 0.35); }
.demo-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--code); border-bottom: 1px solid var(--line); }
.demo-dots { display: flex; gap: 6px; flex: none; }
.demo-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.demo-title { flex: 1; min-width: 0; font: 0.82rem var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-play { flex: none; font: 500 0.78rem var(--body); color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.demo-play:hover { border-color: var(--mint); }
.demo-body { display: grid; gap: 10px; align-content: start; padding: 18px; }
.demo.on .demo-body { height: 440px; overflow: hidden; }
.demo .bubble { max-width: 86%; }
.demo .bubble.you { justify-self: end; background: var(--code); }
.demo .bubble.ai { background: var(--soft); }
.demo .bubble ul { margin: 6px 0 0; padding-left: 18px; }
.demo-day { justify-self: center; font: 700 0.74rem var(--display); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
  padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px; margin-top: 4px; }
.demo-note { justify-self: start; font-size: 0.85rem; color: var(--sage); }
.demo-note code { font-size: 0.8rem; }
.demo-guard { justify-self: stretch; border: 1px solid #E2C46F; background: #FBF4DF; color: #4D3A06; border-radius: 12px; padding: 10px 14px; font-size: 0.92rem; }
.demo-guard code { background: rgba(255, 255, 255, 0.7); }
.demo-guard .choices { display: flex; gap: 8px; margin-top: 8px; }
.demo-guard .choices span { font-weight: 600; font-size: 0.82rem; padding: 3px 10px; border-radius: 6px; border: 1px solid #E2C46F; background: #fff; }
.demo.on [data-step] { display: none; }
.demo.on [data-step].shown { display: block; animation: demo-in 0.35s ease-out; }
.demo.on .demo-guard.shown, .demo.on .bubble.shown { display: block; }
.demo-typing { display: none; justify-self: start; background: var(--soft); border-radius: 14px; padding: 10px 14px; }
.demo.on .demo-typing.shown { display: block; }
.demo-typing i { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--sage); animation: demo-dot 1s infinite; }
.demo-typing i:nth-child(2) { animation-delay: 0.15s; }
.demo-typing i:nth-child(3) { animation-delay: 0.3s; }
.demo-caption { text-align: center; color: var(--muted); font-size: 0.88rem; margin: 12px auto 0; }
@keyframes demo-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes demo-dot { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }
@media (max-width: 600px) { .demo.on .demo-body { height: 480px; } .demo .bubble { max-width: 94%; } }
