/* Streams site. Tokens follow BRAND.md: a neutral ground, colour only in the strands and status signals. */
:root {
  color-scheme: light dark;
  --bg: light-dark(#f6f6f8, #111113);
  --edge: light-dark(#ececf0, #0b0b0d);
  --card: light-dark(#ffffff, #1c1c20);
  --raised: light-dark(#f1f1f4, #25252a);
  --line: light-dark(#dcdce2, #34343b);
  --text: light-dark(#17171b, #f2f2f4);
  --text-soft: light-dark(#2b2b31, #dcdce0);
  --text-dim: light-dark(#55555f, #a8a8b2);
  --ink: #111113;
  --brand: #7c83ff;
  --brand-text: light-dark(#4b52d6, #9ea3ff);
  --brand-glow: rgba(124, 131, 255, .35);
  --sky: #7cc8ff; --mint: #6ff0c0; --peach: #ffb88a; --violet: #b9a2ff; --pink: #ff94d1; --aqua: #5fe4f2;
  --sky-ink: light-dark(#1f6fa8, #7cc8ff); --mint-ink: light-dark(#13805a, #6ff0c0); --peach-ink: light-dark(#a8541b, #ffb88a);
  --violet-ink: light-dark(#6a4fd0, #b9a2ff); --pink-ink: light-dark(#b23c80, #ff94d1); --aqua-ink: light-dark(#0f7f8b, #5fe4f2);
  --flow: linear-gradient(90deg, var(--sky), var(--mint), var(--peach), var(--violet), var(--pink));
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 28px light-dark(rgba(20, 20, 40, .08), rgba(0, 0, 0, .45));
  --gutter: 16px;
}
@media (min-width: 820px) { :root { --gutter: 24px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font-ui); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-text); text-underline-offset: 3px; }
::selection { background: var(--brand); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 1px var(--brand-glow), 0 0 24px var(--brand-glow); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 64ch; }

/* Header: the lockup, and the two ways in. */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.lockup { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.lockup img { width: 30px; height: 30px; border-radius: 8px; }
.brandline { display: flex; align-items: center; gap: 10px; }
.by { color: var(--text-dim); font-size: .9rem; white-space: nowrap; }
.by a { color: var(--text); text-decoration: none; font-weight: 600; }
.by a:hover, .by a:focus-visible { text-decoration: underline; }
@media (max-width: 420px) { .by { display: none; } }
.wordmark { position: relative; font: 700 22px/1 var(--font-display); letter-spacing: -0.02em; padding-bottom: 6px; }
.wordmark::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--flow); }
.top nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.top nav a:not(.btn) { color: var(--text-dim); text-decoration: none; }
.top nav a:not(.btn):hover { color: var(--text); }
.top nav .nav-hide { display: none; }
@media (min-width: 700px) { .top nav .nav-hide { display: inline; } }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: var(--r-sm); font: 650 16px/1 var(--font-ui); text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--brand); color: var(--ink); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px transparent; position: relative; }
.btn-primary:hover { box-shadow: 0 0 0 1px var(--brand-glow), 0 0 22px var(--brand-glow); }
.btn-quiet { background: transparent; color: var(--text); border-color: var(--line); }
.btn-quiet:hover { background: var(--raised); }
.top .btn { min-height: 38px; padding: 0 14px; font-size: 15px; }

/* Hero: the one bold thing. A headline, then the strands untangling into named lanes. */
.hero { padding: 56px 0 0; overflow: hidden; }
.hero h1 { font: 700 clamp(2.3rem, 6.2vw, 4.6rem)/1.02 var(--font-display); letter-spacing: -0.035em; margin: 0 0 20px; max-width: 13ch; }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-soft); max-width: 46ch; margin: 0 0 28px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ctas .note { color: var(--text-dim); font-size: 14px; flex-basis: 100%; margin-top: 2px; }

.untangle { position: relative; margin: 48px calc(-1 * var(--gutter)) 0; }
.untangle .strands { width: 100%; height: auto; min-height: 180px; object-fit: cover; object-position: left center; }
.lanes { list-style: none; margin: 0; padding: 0; position: absolute; top: 0; bottom: 0; left: calc(72% + 14px); right: 0; display: none; }
.lanes li { position: absolute; left: 0; transform: translateY(-50%); font: 600 15px/1 var(--font-ui); white-space: nowrap; }
@media (min-width: 760px) { .lanes { display: block; } .untangle .strands { width: 72%; } }
.l1 { top: 10.8%; color: var(--sky-ink); } .l2 { top: 26.7%; color: var(--mint-ink); } .l3 { top: 42.5%; color: var(--peach-ink); }
.l4 { top: 58.3%; color: var(--violet-ink); } .l5 { top: 74.2%; color: var(--pink-ink); } .l6 { top: 90%; color: var(--aqua-ink); }
.lanes span { color: var(--text-dim); font-weight: 450; margin-left: 8px; }

/* Grid and flex children may shrink below their content (a long command scrolls inside its box instead). */
.split > *, .steps > li, .plans > *, .kept > * { min-width: 0; }

/* Sections share a rhythm; each sets its own inside. */
section { padding: 88px 0 0; }
section h2 { font: 700 clamp(1.7rem, 3.4vw, 2.5rem)/1.1 var(--font-display); letter-spacing: -0.025em; margin: 0 0 16px; }
section .sub { color: var(--text-dim); font-size: 1.1rem; margin: 0 0 32px; max-width: 58ch; }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1.05fr .95fr; gap: 64px; } .split.flip > :first-child { order: 2; } }
.shot { border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--line); }
.card-shot { margin: 48px 0 0; }
.card-shot img { width: 100%; height: auto; display: block; }
.card-shot figcaption { margin-top: 12px; color: var(--text-dim); font-size: .95em; }
.phone { max-width: 340px; margin: 0 auto; }

.does { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.does li { padding-left: 22px; position: relative; color: var(--text-soft); }
.does li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--sky)); box-shadow: 0 0 10px color-mix(in srgb, var(--c, var(--sky)) 55%, transparent); }
.does li:nth-child(2) { --c: var(--mint); } .does li:nth-child(3) { --c: var(--peach); } .does li:nth-child(4) { --c: var(--violet); } .does li:nth-child(5) { --c: var(--pink); }
.does b { color: var(--text); font-weight: 650; }

/* How it works: a real sequence, so it is numbered. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
/* The free mod's one step, then Streams Remote's two: free-mod users can see where they stop. */
.groups { display: grid; gap: 40px; }
@media (min-width: 880px) { .groups { grid-template-columns: 1fr 2fr; gap: 32px; } .remote .steps { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
.remote .steps { counter-reset: step 1; }
.remote .steps li:nth-child(1) { --c: var(--mint); } .remote .steps li:nth-child(2) { --c: var(--violet); }
.group-label { font: 700 .8rem/1.3 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin: 0 0 14px; }
.group-label span { display: block; margin-top: 4px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text-dim); }
.group-done { margin: 14px 0 0; color: var(--text-dim); font-size: .95em; }
.remote { border-left: 1px solid var(--line); padding-left: 32px; }
@media (max-width: 879px) { .remote { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; } }
.note.os { margin-top: 6px; }
.steps li { counter-increment: step; border-top: 3px solid var(--c); padding-top: 18px; }
.steps li:nth-child(1) { --c: var(--sky); } .steps li:nth-child(2) { --c: var(--mint); } .steps li:nth-child(3) { --c: var(--violet); }
.steps h3 { font: 700 1.2rem/1.25 var(--font-display); margin: 0 0 8px; }
.steps h3::before { content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 50%; background: var(--c); color: var(--ink); font: 700 14px/1 var(--font-ui); vertical-align: 2px; }
.steps p { color: var(--text-dim); margin: 0 0 12px; }
code, .cmd { font-family: var(--font-mono); font-size: .9em; }
.cmd { display: flex; align-items: flex-start; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 10px 10px 14px; margin: 0 0 10px; color: var(--text); }
/* The whole command shows, wrapping where it must: nothing is cut off or hidden behind a scroll. */
.cmd code { flex: 1; min-width: 0; padding-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Lines break only between a command's words, never inside one (--marketplace, macleodlabs-ai/claudeflow). */
.cmd code .w { white-space: nowrap; }
.cmd .copy { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--text-dim); cursor: pointer; }
.cmd .copy:hover, .cmd .copy:focus-visible { color: var(--text); border-color: var(--text-dim); }
.cmd .copy.done { color: var(--mint); border-color: var(--mint); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Pricing: the free mod is plain text; only the paid plan gets a frame. */
.plans { display: grid; gap: 28px; align-items: start; }
@media (min-width: 880px) { .plans { grid-template-columns: .9fr 1.1fr; gap: 48px; } }
.plan h3 { font: 700 1.35rem/1.2 var(--font-display); margin: 0 0 6px; }
.plan .price { font: 700 2.6rem/1 var(--font-display); letter-spacing: -0.03em; margin: 14px 0 4px; }
.plan .price small { font: 500 1rem var(--font-ui); color: var(--text-dim); letter-spacing: 0; }
.plan .terms { color: var(--text-dim); margin: 0 0 18px; }
.plan ul { margin: 0 0 22px; padding-left: 20px; color: var(--text-soft); }
.plan ul li { margin: 6px 0; }
.plan-free { padding-top: 26px; }
.plan-remote { background: var(--card); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow); position: relative; border: 1px solid var(--line); }
.plan-remote::before { content: ""; position: absolute; left: 26px; right: 26px; top: -1px; height: 3px; border-radius: 3px; background: var(--flow); }

/* Privacy: what is and is not kept, said plainly. */
.kept { display: grid; gap: 28px; }
@media (min-width: 880px) { .kept { grid-template-columns: 1fr 1fr; gap: 48px; } }
.kept h3 { font: 700 1.1rem/1.3 var(--font-display); margin: 0 0 10px; }
.kept ul { margin: 0; padding-left: 20px; color: var(--text-soft); }
.kept li { margin: 6px 0; }

.closing { padding: 96px 0 0; }
.closing .wrap { border-top: 1px solid var(--line); padding-top: 56px; }
.closing h2 { font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.15 var(--font-display); letter-spacing: -0.02em; margin: 0 0 20px; max-width: 22ch; }

footer { padding: 72px 0 40px; color: var(--text-dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--text-dim); }
footer a:hover { color: var(--text); }

/* The draft legal pages. */
.doc { padding: 56px 0 0; }
.doc h1 { font: 700 clamp(2rem, 4vw, 2.8rem)/1.1 var(--font-display); letter-spacing: -0.03em; margin: 0 0 12px; }
.doc .draft { display: inline-block; background: color-mix(in srgb, #ff8a2a 18%, var(--card)); border: 1px solid color-mix(in srgb, #ff8a2a 55%, transparent); border-radius: var(--r-sm); padding: 8px 12px; margin: 0 0 28px; }
.doc h2 { font: 700 1.25rem/1.3 var(--font-display); margin: 32px 0 8px; }
.doc p, .doc li { color: var(--text-soft); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
