/* breakpatch.dev: one stylesheet for the landing page, the documentation, the connect page and 404.
   Dark by default; light follows the Mac's appearance. Tokens as in the app. */
:root{
  color-scheme:dark;
  --bg:#171412;--sunk:#100D0B;--surface:#211C19;--raised:#2C2521;--line:#3A322C;--line2:#4A3F37;
  --text:#F6EFE9;--text2:#E9DFD6;--muted:#CFC4BA;--faint:#A3978C;
  --accent:#E0714A;--accent-hover:#B8502D;--on-accent:#1A0E08;--accent-soft:rgba(224,113,74,.13);
  --shadow:0 30px 80px -30px rgba(0,0,0,.75),0 0 0 1px rgba(255,255,255,.06);
  --glow:radial-gradient(60% 55% at 50% 0%,rgba(224,113,74,.18),transparent 70%);
  --font:'Bricolage Grotesque',system-ui,-apple-system,sans-serif;--mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  --wrap:1160px;--top:64px;
  --r-lg:20px;--r-md:14px;--r-sm:10px;
  --bar:color-mix(in srgb,var(--bg) 78%,transparent);--edge:rgba(0,0,0,.28);
  --press:.97;
}
@media (prefers-color-scheme: light){
  :root{color-scheme:light;
  --bg:#FBF7F3;--sunk:#EFE8E1;--surface:#FFFFFF;--raised:#F3ECE5;--line:#E6DCD2;--line2:#D9CCBF;
  --text:#221A15;--text2:#3A2E26;--muted:#5A4C42;--faint:#6F6156;
  --accent:#B8502D;--accent-hover:#9A3F20;--on-accent:#FFFFFF;--accent-soft:rgba(184,80,45,.09);
  --shadow:0 30px 70px -34px rgba(60,35,20,.35),0 0 0 1px rgba(60,35,20,.08);
  --glow:radial-gradient(60% 55% at 50% 0%,rgba(184,80,45,.10),transparent 70%);
  --edge:rgba(60,35,20,.10);}
}
*{box-sizing:border-box}
html{background:var(--bg);scroll-behavior:smooth;scroll-padding-top:calc(var(--top) + 16px);-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font);color:var(--text);background:var(--bg);line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:clip;font-optical-sizing:auto}
/* Leading tracks size: tight on headings, looser on body copy. */
h1,h2,h3,h4,summary{line-height:1.25}
img{max-width:100%;height:auto;display:block}
a{color:var(--accent);text-decoration:none}
a:hover{color:var(--text)}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:6px}
code{font-family:var(--mono);font-size:.88em;background:var(--raised);padding:.1em .35em;border-radius:5px}
[hidden]{display:none!important}
.skip{position:absolute;left:16px;top:-60px;z-index:20;background:var(--accent);color:var(--on-accent);padding:8px 14px;border-radius:10px;font-weight:700}
.skip:focus{top:12px;color:var(--on-accent)}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 32px}

/* Header */
.top{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:28px;padding:0 32px;height:var(--top);background:var(--bar);backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%)}
/* Scroll edge: a hairline and a short shadow where content meets the header, not a border.
   Fades in over the first 24px of scroll where the browser supports scroll timelines; shown otherwise. */
.top::after{content:"";position:absolute;left:0;right:0;top:100%;height:14px;pointer-events:none;background:linear-gradient(var(--edge),transparent);box-shadow:inset 0 1px 0 color-mix(in srgb,var(--line) 70%,transparent)}
@supports (animation-timeline:scroll()){
  .top::after{animation:edge linear both;animation-timeline:scroll(root);animation-range:0 24px}
}
@keyframes edge{from{opacity:0}to{opacity:1}}
.brand{display:flex;align-items:center;gap:8px;color:var(--text);font-size:1.25rem;letter-spacing:-.02em;flex:none}
.brand:hover{color:var(--text)}
.brand b{font-weight:700}
.ear{width:18px;height:18px;background:var(--accent);border-radius:10px 2px 10px 10px;transform:rotate(-14deg);display:inline-block;flex:none}
.top nav{display:flex;gap:22px;flex:1;min-width:0}
.top nav a{position:relative;color:var(--text2);font-size:0.9375rem;font-weight:500;white-space:nowrap;padding:8px 0}
.top nav a:hover{color:var(--text)}
/* Where am I: the current page, and on the landing page the section you're reading. */
.top nav a[aria-current]{color:var(--text);font-weight:600}
.top nav a[aria-current]::after{content:"";position:absolute;left:0;right:0;bottom:2px;height:2px;border-radius:2px;background:var(--accent)}
/* Phones fold the links into a Menu button (assets/site.js adds it; the @media (max-width:560px) rules below). */
.nav-toggle{display:none;align-items:center;justify-content:center;width:44px;height:44px;flex:none;margin-left:auto;padding:0;border:1px solid var(--line2);border-radius:var(--r-sm);background:transparent;color:var(--text);cursor:pointer}
.nav-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.nav-toggle[aria-expanded="true"]{border-color:var(--accent);color:var(--accent)}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;cursor:pointer;font-family:var(--font);background:var(--accent);color:var(--on-accent);border-radius:var(--r-sm);padding:9px 16px;font-weight:700;font-size:0.9375rem;line-height:1.3;white-space:nowrap;transition:background .15s ease-out,scale .12s ease-out,box-shadow .15s ease-out}
.btn:hover{background:var(--accent-hover);color:var(--on-accent)}
/* Press feedback lands on pointer-down with no delay; the release eases back. `scale` composes with any transform. */
.btn:active,.copy:active,.period button:active,.stepper button:active,.to-top:active{scale:var(--press);transition-duration:0s}
.faq summary:active,.toc-mobile summary:active{background:var(--raised);transition-duration:0s}
.btn.ghost{background:transparent;color:var(--text);box-shadow:inset 0 0 0 1.5px var(--line2)}
.btn.ghost:hover{box-shadow:inset 0 0 0 1.5px var(--accent);color:var(--text)}
.btn.lg{padding:13px 22px;font-size:1rem;border-radius:12px}
.btn svg{width:18px;height:18px;flex:none}

/* Code blocks and the copy button */
.code{position:relative;margin:16px 0}
.code pre{margin:0;background:var(--sunk);border:1px solid var(--line);border-radius:12px;padding:14px 84px 14px 16px;overflow:auto}
.code pre code{background:none;padding:0;font-size:0.8125rem;line-height:1.65;color:var(--text2)}
/* What a program printed (```output in docs/manual.md): nothing to copy, so no button and no room
   kept for one, and long lines wrap rather than scroll out of sight. */
.code.output pre{padding:14px 16px}
.code.output pre code{white-space:pre-wrap;overflow-wrap:anywhere}
.copy{position:absolute;top:8px;right:8px;font-family:var(--font);font-size:0.75rem;font-weight:600;color:var(--muted);background:var(--surface);border:1px solid var(--line2);border-radius:8px;padding:4px 10px;cursor:pointer;letter-spacing:.01em;transition:scale .12s ease-out,color .15s ease-out,border-color .15s ease-out}
.copy:hover{color:var(--text);border-color:var(--accent)}
.copy[data-done]{color:var(--accent);border-color:var(--accent)}

/* ---------- Landing page ---------- */
.eyebrow{display:inline-flex;align-items:center;gap:8px;margin:0;font-size:0.875rem;font-weight:600;color:var(--accent);letter-spacing:.01em}
.eyebrow .ear{width:13px;height:13px;border-radius:7px 2px 7px 7px}
.hero{padding:84px 0 0;text-align:center;background:var(--glow)}
.hero-text{display:flex;flex-direction:column;align-items:center;gap:22px;animation:in .4s ease-out both}
.hero h1{font-size:clamp(2.375rem,6.2vw,4.25rem);line-height:1.02;letter-spacing:-.03em;margin:0;max-width:900px;text-wrap:balance;font-weight:700}
.hero h1 em{font-style:normal;color:var(--accent)}
.hero .sub{margin:0;font-size:clamp(1.0625rem,2vw,1.25rem);color:var(--muted);max-width:640px;text-wrap:pretty;line-height:1.5}
.install{position:relative;display:flex;flex-direction:column;align-items:center;gap:14px;width:100%;max-width:580px}
.install-cmd{width:100%;margin:0}
.install-cmd pre{padding:16px 92px 16px 18px;text-align:left;background:var(--surface);border-color:var(--line2)}
.install-cmd pre code{font-size:0.9375rem;color:var(--text)}
.install-cmd pre code::before{content:"$ ";color:var(--faint);user-select:none}
.install-cmd pre code span{white-space:nowrap;color:var(--muted)}
.install-cmd .copy{top:50%;transform:translateY(-50%);font-size:0.8125rem;padding:6px 12px}
.install-actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px 18px}
.install-actions a:not(.btn){font-size:0.9375rem;font-weight:600}
.reqs{margin:0;font-size:0.8438rem;color:var(--faint);letter-spacing:.01em}
.cloud-note{margin:6px auto 0;max-width:52ch;font-size:0.8125rem;line-height:1.5;color:var(--faint)}
.cloud-note b{color:var(--muted);font-weight:600}
.ai-badge .star{color:var(--accent);font-weight:700;margin-left:1px;text-decoration:none}
/* The asterisk is one character, but its tap target is 44 × 44: padding grows the area that answers a
   tap, and the same negative margin takes the room back, so the words don't move. Positioned, so the
   padding sits above the letters next to it. */
.ai-badge .star{position:relative;display:inline-block;padding:12px 19px;margin:-12px -19px -12px calc(1px - 19px);line-height:20px;border-radius:999px}
.ai-badge .star:focus-visible{outline:2px solid var(--accent);outline-offset:-10px}
/* "12,300 tests run with Breakpatch" (assets/runs-count.js): out of the flow, in the space above the
   screenshot, so it takes no room and moves nothing when it fades in. */
.runs-count{position:absolute;top:calc(100% + 12px);left:0;right:0;margin:0;font-size:0.8438rem;color:var(--faint);letter-spacing:.01em;animation:edge .6s ease-out both}
.runs-count b{font-weight:600;color:var(--text2)}
/* Pre-launch notice: shown only while <html> has data-prelaunch. The Solo "Coming later" notes
   (.solo-soon) look the same, and show while <html> has no data-solo (below). The Documentation's
   p.soon notes (Team not on sale yet, hosting coming later) look the same and always show. */
.prelaunch,.solo-soon,.nav-scrim{display:none}
[data-prelaunch] .prelaunch,html:not([data-solo]) .solo-soon,p.soon{display:flex;align-items:center;gap:8px;margin:0;font-size:0.8438rem;letter-spacing:.01em;color:var(--muted);background:var(--accent-soft);border:1px solid color-mix(in srgb,var(--accent) 30%,transparent);border-radius:999px;padding:5px 14px;text-align:left}
.prelaunch .dot,.solo-soon .dot,p.soon .dot{width:7px;height:7px;border-radius:50%;background:var(--accent);flex:none}
.prelaunch a,.solo-soon a,p.soon a{font-weight:600}
/* The same switch for a few words inside a sentence, like "(after the public release)". */
.prelaunch-text{display:none}
[data-prelaunch] .prelaunch-text{display:inline}
/* Solo's launch switch (assets/paddle-config.js soloOnSale sets <html data-solo>): .solo-only is
   Solo's cards, columns and words, shown only then; .solo-off is what stands in for them before. */
html:not([data-solo]) .solo-only,[data-solo] .solo-off{display:none!important}
/* A short, secondary line with the technical detail, for developers. */
.dev-note{font-size:0.8438rem!important;color:var(--faint)!important;letter-spacing:.01em;line-height:1.5}
.dev-note b{font-weight:600;color:var(--muted)}
.dev-note code{font-size:max(0.75rem,.9em)}
.hero-shot{margin:64px auto 0;max-width:1120px}
.window{border-radius:14px;overflow:hidden;box-shadow:var(--shadow);background:var(--surface)}
.window img{width:100%}
.caption{margin:14px 0 0;font-size:0.8438rem;color:var(--faint);text-align:center;letter-spacing:.01em}

/* "AI on your Mac" badge in the hero */
.ai-badge{display:inline-flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 9px;margin:0;padding:6px 15px 6px 11px;border-radius:999px;background:var(--accent-soft);border:1px solid color-mix(in srgb,var(--accent) 35%,transparent);color:var(--text);font-size:0.875rem;font-weight:600;line-height:1.35}
.ai-badge svg{width:16px;height:16px;fill:var(--accent);flex:none}
.ai-badge .lead{display:inline-flex;align-items:center;gap:9px}
.ai-badge .soft{display:inline-flex;align-items:center;gap:9px;color:var(--muted);font-weight:500}
/* The dot goes with the words after it, so a badge that wraps starts its second line with it, never ends the first. */
.ai-badge .soft::before{content:"";width:4px;height:4px;border-radius:50%;background:var(--faint);flex:none}
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

.band{padding:112px 0}
.band + .band{border-top:1px solid var(--line)}
.head{max-width:700px;margin:0 auto 48px;text-align:center;display:flex;flex-direction:column;gap:12px;align-items:center}
.head h2,.feature h2,.cta h2{font-size:clamp(1.875rem,4vw,2.75rem);letter-spacing:-.025em;line-height:1.08;margin:0;text-wrap:balance}
.head p{margin:0;font-size:1.125rem;color:var(--muted);text-wrap:pretty}
.head p.eyebrow{font-size:0.875rem;color:var(--accent)}
/* On the sunk band the light accent falls under 4.5:1; use its darker shade there. */
@media (prefers-color-scheme: light){.on-device .head p.eyebrow{color:var(--accent-hover)}}

/* How it works */
.how-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.how-steps li{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:28px 26px 26px;display:flex;flex-direction:column;gap:10px}
.how-steps .n{width:36px;height:36px;border-radius:10px;background:var(--accent-soft);color:var(--accent);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1rem;font-family:var(--mono)}
.how-steps h3{margin:6px 0 0;font-size:1.375rem;letter-spacing:-.01em;line-height:1.2}
.how-steps p{margin:0;color:var(--muted);font-size:1rem;text-wrap:pretty}

/* Features */
.feature{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:64px;align-items:center}
.feature + .feature{margin-top:120px}
.feature.flip{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
.feature.flip .copytext{order:2}
.feature.flip.even{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.copytext{display:flex;flex-direction:column;gap:16px;align-items:flex-start}
.copytext p{margin:0;font-size:1.0625rem;color:var(--muted);text-wrap:pretty}
.copytext ul,.compare ul{margin:4px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:9px}
.copytext li,.compare li{position:relative;padding-left:24px;color:var(--text2);font-size:1rem;line-height:1.45}
.copytext li::before,.compare li::before{content:"";position:absolute;left:2px;top:.48em;width:9px;height:9px;background:var(--accent);border-radius:5px 1px 5px 5px;transform:rotate(-14deg)}
.team-tag{display:inline-flex;align-items:center;font-size:0.75rem;font-weight:700;letter-spacing:.02em;color:var(--accent);border:1.5px solid var(--accent);border-radius:999px;padding:1px 10px;line-height:1.5}
/* Community is a beta: a small outlined pill after its name (Home's and Pricing's cards) and at the start of the hero's requirements line. */
.beta-tag{display:inline-flex;align-items:center;vertical-align:middle;margin-left:8px;font-size:0.75rem;font-weight:700;letter-spacing:.02em;color:var(--accent);border:1.5px solid var(--accent);border-radius:999px;padding:0 8px;line-height:1.5;position:relative;top:-2px}
.reqs .beta-tag{margin:0 8px 0 0;top:-1px}
.feature .more{font-weight:600;font-size:0.9688rem}
.visual{position:relative;min-width:0}
.term{position:relative;width:min(440px,78%);margin:-40px 0 0 auto;background:#0E0B09;color:#E9DFD6;border-radius:14px;box-shadow:0 30px 80px -30px rgba(0,0,0,.75),0 0 0 1px rgba(255,255,255,.08);font-family:var(--mono);font-size:0.8125rem;line-height:1.7;overflow:hidden}
.term-bar{display:flex;gap:7px;align-items:center;padding:10px 14px;border-bottom:1px solid #2A231F}
.term-bar i{width:11px;height:11px;border-radius:50%;background:#3A322C}
.term-bar span{margin-left:8px;color:#A3978C;font-size:0.75rem;font-family:var(--font)}
.term pre{margin:0;padding:14px 18px 16px;overflow-x:auto;white-space:pre}
.term .p{color:#A3978C}.term .k{color:#F0A27F}.term .ok{color:#8FD17A}
.files{margin:0;font-family:var(--mono);font-size:0.8125rem;line-height:1.75;color:var(--muted);background:var(--sunk);border:1px solid var(--line);border-radius:12px;padding:14px 18px;white-space:pre;overflow-x:auto;max-width:100%}
.files b{color:var(--text);font-weight:500}

.copytext p.note{font-size:0.9375rem;line-height:1.5;background:var(--raised);border-radius:12px;padding:12px 16px}
.copytext p.note b{color:var(--text);font-weight:600}

/* The AI section */
.eyebrow .ico{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.ai-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.ai-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;display:flex;flex-direction:column;min-width:0}
.ai-card.wide{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
.ai-media{position:relative;aspect-ratio:16/10;background:var(--sunk);border-bottom:1px solid var(--line);overflow:hidden}
.ai-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ai-media.pos-right img{object-position:right center}
.ai-media.pos-bottom img{object-position:center bottom}
.ai-media.pos-left img{object-position:left center}
.ai-card.wide .ai-media{aspect-ratio:auto;display:flex;align-items:center;padding:28px;border-bottom:0;border-right:1px solid var(--line)}
.ai-card.wide .ai-media picture{width:100%}
.ai-card.wide .ai-media img{position:static;height:auto;border-radius:10px;box-shadow:var(--shadow)}
.ai-text{padding:28px 30px 30px;display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.ai-card.wide .ai-text{justify-content:center;padding:36px}
.ai-text h3{margin:0;font-size:clamp(1.375rem,2.4vw,1.6875rem);letter-spacing:-.02em;line-height:1.15;text-wrap:balance}
.ai-text p:not(.eyebrow){margin:0;font-size:1rem;color:var(--muted);text-wrap:pretty}
.ai-text ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.ai-text li{position:relative;padding-left:24px;color:var(--text2);font-size:0.9688rem;line-height:1.45}
.ai-text li::before{content:"";position:absolute;left:2px;top:.48em;width:9px;height:9px;background:var(--accent);border-radius:5px 1px 5px 5px;transform:rotate(-14deg)}
.ai-text .more{font-weight:600;font-size:0.9688rem;margin-top:auto}
.ai-card.wide .ai-text .more{margin-top:0}
/* A feature that's coming later: text only, quieter than the cards above it. */
.ai-card.later{display:flex;background:transparent}
.ai-card.later .ai-text{padding:26px 30px;gap:10px;max-width:760px}
.ai-card.later h3{font-size:1.25rem}
.spec-card{grid-template-columns:minmax(0,5fr) minmax(0,7fr)!important;align-items:stretch}
.spec{margin:0;padding:28px 30px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;background:var(--sunk);border-left:1px solid var(--line);align-content:center}
.spec div{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:11px 14px}
.spec .opt{grid-column:1/-1}
.spec dt{font-size:0.7812rem;font-weight:600;color:var(--faint);letter-spacing:.02em}
.spec dd{margin:2px 0 0;font-size:0.9688rem;font-weight:600;color:var(--text);line-height:1.35}

/* Why on-device AI */
.on-device{background:var(--sunk)}
.why{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.why li{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);padding:22px 22px 24px}
.why b{display:block;font-size:1.0625rem;line-height:1.3;margin-bottom:8px;letter-spacing:-.005em}
.why span{display:block;font-size:0.9375rem;color:var(--muted);line-height:1.5;text-wrap:pretty}
.vs-wrap{max-width:860px;margin:40px auto 0;background:var(--surface)}
.matrix.vs{min-width:0}
.matrix.vs tbody th{width:36%}
.matrix.vs td{width:32%;text-align:left}
.matrix.vs thead th:not(:first-child){text-align:left}
.matrix.vs thead th:last-child{color:var(--accent)}
.matrix.vs td.bp{color:var(--text);font-weight:600}

/* Privacy points */
.points{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%}
.point{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);padding:16px 18px}
.point b{display:block;font-size:0.9688rem;margin-bottom:2px}
.point span{font-size:0.9062rem;color:var(--muted);line-height:1.45;display:block}

/* Editions */
.compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:stretch}
/* With Solo on sale, three plans. :where() keeps it as weak as .compare, so the small-screen rules below still win. */
:where([data-solo]) .compare{grid-template-columns:repeat(3,minmax(0,1fr))}
.plan{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:30px 30px 28px;display:flex;flex-direction:column;gap:14px}
/* Community is the plan to install today, so it carries the emphasis (like pricing's .plan-now). */
.plan.plan-now .team-tag{background:var(--accent);color:var(--on-accent)}
.plan.plan-now{border-color:color-mix(in srgb,var(--accent) 45%,var(--line));box-shadow:0 24px 60px -36px color-mix(in srgb,var(--accent) 60%,transparent)}
.plan-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.plan h3{margin:0;font-size:1.625rem;letter-spacing:-.015em}
.plan .who{margin:0;color:var(--muted);font-size:1rem}
.plan-price{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin:2px 0 0}
.plan-price b{font-size:2.5rem;letter-spacing:-.03em;line-height:1}
.plan-price span{color:var(--muted);font-size:0.9375rem}
.plan-tbd{margin:2px 0 0;font-size:1.375rem;font-weight:700;letter-spacing:-.015em;color:var(--text)}
.price-note{margin:-6px 0 0;font-size:0.875rem;color:var(--faint);letter-spacing:.01em}
.compare ul{flex:1}
.compare .plus{font-weight:600;color:var(--text);padding-left:0}
.compare .plus::before{display:none}
.plan .btn{align-self:flex-start;margin-top:8px}
.biz{margin:24px auto 0;max-width:820px;text-align:center;color:var(--muted);font-size:0.9688rem}
.table-wrap{margin-top:40px;border:1px solid var(--line);border-radius:var(--r-md);overflow:auto}
.matrix{border-collapse:collapse;width:100%;font-size:0.9375rem;min-width:480px}
.matrix caption{text-align:left;padding:14px 18px;font-weight:700;font-size:1rem;border-bottom:1px solid var(--line);background:var(--surface)}
.matrix th,.matrix td{padding:11px 18px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.matrix thead th{font-size:0.7812rem;color:var(--faint);font-weight:600;background:var(--surface);letter-spacing:.02em}
.matrix tbody th{font-weight:500;color:var(--text2)}
.matrix td{width:30%;text-align:center;color:var(--muted)}
@media (min-width:561px){:where([data-solo]) .matrix.stack td{width:22%}}
.matrix thead th:not(:first-child){text-align:center}
.matrix tr:last-child > *{border-bottom:0}
.yes{color:var(--accent);font-weight:700}
.no{color:var(--faint)}

/* FAQ */
.faq{max-width:820px;margin:0 auto;display:flex;flex-direction:column;gap:10px}
.faq details{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md)}
.faq summary{cursor:pointer;list-style:none;padding:18px 54px 18px 22px;font-weight:600;font-size:1.0938rem;position:relative;border-radius:var(--r-md);line-height:1.35;transition:background .15s ease-out}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";position:absolute;right:24px;top:50%;width:9px;height:9px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:translateY(-70%) rotate(45deg);transition:transform .15s ease-out}
.faq details[open] summary::after{transform:translateY(-30%) rotate(-135deg)}
.faq .a{padding:0 22px 18px;color:var(--muted);font-size:1rem}
/* The answer emerges from its question (a fade and a 4px drop) and goes back the same way. */
.faq details::details-content{opacity:0;translate:0 -4px;transition:opacity .2s ease-out,translate .2s ease-out,content-visibility .2s allow-discrete}
.faq details[open]::details-content{opacity:1;translate:none}
.faq .a a,.biz a,.prelaunch a,.solo-soon a,p.soon a,.lost p a,.foot-small a{text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--accent) 45%,transparent);text-underline-offset:3px}
.faq .a p{margin:0 0 10px}.faq .a p:last-child{margin:0}

/* Final call to action */
.cta{text-align:center;display:flex;flex-direction:column;align-items:center;gap:22px;padding:112px 20px 120px;border-top:1px solid var(--line);background:radial-gradient(50% 60% at 50% 100%,var(--accent-soft),transparent 70%)}
.mora{display:inline-block;background:var(--accent);transform:rotate(-14deg);width:56px;height:56px;border-radius:30px 7px 30px 30px}
.cta p.sub{margin:0;font-size:1.125rem;color:var(--muted);max-width:560px}

/* Footer. Plain .site-foot is the one-line footer the pricing and legal pages use; .rich is the landing page's. */
.site-foot{display:flex;justify-content:center;gap:18px;padding:16px;border-top:1px solid var(--line);font-size:0.8125rem;letter-spacing:.01em;color:var(--faint)}
.site-foot.rich{display:block;padding:40px 0 48px;font-size:0.9062rem}
.site-foot .wrap{display:flex;justify-content:space-between;gap:32px;flex-wrap:wrap}
.foot-brand{display:flex;flex-direction:column;gap:8px}
.foot-brand p{margin:0}
.foot-links{display:grid;grid-template-columns:repeat(3,auto);gap:10px 40px}
.foot-links a{color:var(--muted)}
.foot-links a:hover{color:var(--text)}
.foot-small{flex-basis:100%;margin:8px 0 0;font-size:0.8125rem}

/* 404 */
.lost{min-height:calc(100vh - var(--top) - 160px);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:18px;padding:64px 16px}
.lost .mora{width:88px;height:88px;border-radius:48px 11px 48px 48px;animation:sniff 2.6s ease-in-out .4s 2}
.lost h1{margin:8px 0 0;font-size:clamp(2rem,5vw,3rem);letter-spacing:-.025em;line-height:1.1}
.lost p{margin:0;color:var(--muted);font-size:1.0625rem;max-width:460px}
.lost .row{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
@keyframes sniff{0%,100%{transform:rotate(-14deg)}50%{transform:rotate(-5deg) translateY(-3px)}}

/* Edition cards and the narrow page container, used by the pricing, thanks and legal pages (pricing.css). */
.home{max-width:1040px;margin:0 auto;padding:0 24px}
.cols{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:36px}
.edition{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:28px 28px 24px;display:flex;flex-direction:column;gap:10px}
.edition.team{border-color:var(--line2)}
.edition-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.edition h3{margin:0;font-size:1.5rem;letter-spacing:-.01em}
.price{font-size:0.8125rem;font-weight:700;color:var(--on-accent);background:var(--accent);border-radius:999px;padding:2px 10px}
.edition.team .price{background:transparent;color:var(--accent);border:1.5px solid var(--accent)}
.edition .who{margin:0;color:var(--muted);font-size:1rem}
.edition ul{margin:6px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.edition li{position:relative;padding-left:24px;color:var(--text2);font-size:0.9688rem;line-height:1.45}
.edition li::before{content:"";position:absolute;left:2px;top:.5em;width:9px;height:9px;background:var(--accent);border-radius:5px 1px 5px 5px;transform:rotate(-14deg)}
.edition .more{margin-top:auto;padding-top:10px;font-size:0.9375rem;font-weight:600}

/* ---------- Documentation ---------- */
.docs{display:grid;grid-template-columns:272px minmax(0,1fr);max-width:1260px;margin:0 auto}
.toc{position:sticky;top:var(--top);align-self:start;height:calc(100vh - var(--top));overflow:auto;padding:28px 16px 40px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:1px;overscroll-behavior:contain}
.toc-title{font-size:0.75rem;font-weight:700;color:var(--faint);padding:0 10px 6px;letter-spacing:.07em;text-transform:uppercase}
.toc .toc-title:not(:first-child){margin-top:20px}
.toc a{color:var(--muted);padding:6px 10px;border-radius:8px;font-size:0.9062rem;line-height:1.35;border-left:2px solid transparent}
.toc a:hover{background:var(--raised);color:var(--text)}
.toc a.active{background:var(--accent-soft);color:var(--text);font-weight:600;border-left-color:var(--accent);border-radius:0 8px 8px 0}
.content{padding:40px 56px 96px;max-width:880px;min-width:0}
.content h1{font-size:3rem;line-height:1.05;letter-spacing:-.025em;margin:0 0 10px}
.lead{font-size:1.1875rem;color:var(--muted);margin:0 0 16px;text-wrap:pretty}
.content section{padding-top:28px;border-top:1px solid var(--line);margin-top:36px}
.content h2{font-size:1.875rem;letter-spacing:-.018em;line-height:1.15;margin:0 0 14px}
.content h3{font-size:1.25rem;margin:28px 0 8px;letter-spacing:-.005em}
.content h4{font-size:1.0625rem;margin:22px 0 6px}
.content p,.content li{font-size:1.0312rem;color:var(--text2);text-wrap:pretty;line-height:1.65}
.content ul,.content ol{padding-left:22px}
.content li{margin:5px 0}
.content li::marker{color:var(--faint)}
.content section a,.content .part a,.content .lead a{text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--accent) 40%,transparent);text-underline-offset:3px}
.content section a:hover{text-decoration-color:currentColor}
.content strong{color:var(--text);font-weight:600}
.table{overflow:auto;border:1px solid var(--line);border-radius:12px;margin:16px 0}
.table table{border-collapse:collapse;width:100%;font-size:0.9375rem}
.table th{text-align:left;font-size:0.7812rem;color:var(--faint);font-weight:600;padding:10px 14px;border-bottom:1px solid var(--line);background:var(--surface)}
.table td{padding:10px 14px;border-bottom:1px solid var(--line);color:var(--text2);vertical-align:top}
.table tr:last-child td{border-bottom:0}
.part{margin-top:64px;padding-top:30px;border-top:2px solid var(--line2)}
.part-title{font-size:0.8125rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent)}
.part p{font-size:1.0312rem;color:var(--muted);margin:8px 0 0}
.part + section{border-top:0;margin-top:8px}
.tag{display:inline-block;vertical-align:middle;margin-left:10px;font-size:0.75rem;font-weight:700;letter-spacing:.02em;color:var(--accent);border:1.5px solid var(--accent);border-radius:999px;padding:1px 9px;line-height:1.5;position:relative;top:-3px}
.toc-mobile{display:none;margin:20px 0 0;border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface)}
.toc-mobile summary{cursor:pointer;list-style:none;padding:13px 48px 13px 16px;font-weight:600;position:relative;border-radius:var(--r-md);display:flex;gap:6px;min-width:0;transition:background .15s ease-out}
.toc-mobile summary::-webkit-details-marker{display:none}
.toc-mobile summary::after{content:"";position:absolute;right:22px;top:50%;width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:translateY(-70%) rotate(45deg);transition:transform .15s ease-out}
.toc-mobile[open] summary::after{transform:translateY(-30%) rotate(-135deg)}
.toc-mobile[open] summary{border-radius:var(--r-md) var(--r-md) 0 0}
.toc-now{font-weight:500;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.toc-now:not(:empty)::before{content:"· ";color:var(--faint)}
/* Opens in place, fading in below its summary. It closes at once: the page is about to jump to the section picked. */
.toc-mobile[open]::details-content{animation:reveal .2s ease-out}
@keyframes reveal{from{opacity:0;translate:0 -4px}}
@keyframes unreveal{to{opacity:0;translate:0 -4px}}
.toc-mobile[open] summary{border-bottom:1px solid var(--line)}
.toc-mobile .toc-title{padding:14px 16px 4px}
.toc-mobile a{display:block;padding:8px 16px;color:var(--text2);font-size:0.9688rem}
.toc-mobile a.active{color:var(--text);font-weight:600;box-shadow:inset 2px 0 0 var(--accent);background:var(--accent-soft)}
.toc-mobile a:last-child{padding-bottom:14px}
.foot{margin-top:56px;padding-top:20px;border-top:1px solid var(--line);color:var(--faint);font-size:0.9062rem}
.to-top{position:fixed;right:16px;bottom:16px;z-index:6;width:44px;height:44px;border-radius:50%;display:none;align-items:center;justify-content:center;background:var(--surface);border:1px solid var(--line2);color:var(--text);box-shadow:0 8px 24px -10px rgba(0,0,0,.5);font-size:1.25rem;line-height:1}
.to-top:hover{color:var(--accent);border-color:var(--accent)}

/* ---------- Connect page ---------- */
.connect{min-height:calc(100vh - var(--top));display:flex;align-items:center;justify-content:center;padding:40px 24px}
.card{width:100%;max-width:480px;display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center;animation:in .3s ease-out both}
.ws-logo{width:72px;height:72px;border-radius:18px;background:var(--surface);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;overflow:hidden}
.ws-logo img{width:48px;height:48px;object-fit:contain}
.ws-logo .initial{width:48px;height:48px;border-radius:50%;background:var(--accent);color:var(--on-accent);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1.25rem}
.card h1{font-size:2.125rem;line-height:1.1;letter-spacing:-.015em;margin:0}
.card p{margin:0;color:var(--muted);font-size:1rem}
.card .small{font-size:0.8125rem;color:var(--faint)}
.actions{display:flex;flex-direction:column;gap:10px;align-items:center}
@keyframes in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ---------- Small screens ---------- */
@media (max-width:1000px){
  .feature,.feature.flip,.feature.flip.even{grid-template-columns:1fr;gap:36px}
  .feature.flip .copytext{order:0}
  .feature + .feature{margin-top:88px}
  .how-steps{grid-template-columns:1fr;max-width:560px;margin:0 auto}
  .ai-card.wide,.spec-card{grid-template-columns:1fr!important}
  .ai-card.wide .ai-media{border-right:0;border-bottom:1px solid var(--line)}
  .ai-card.wide .ai-text{padding:28px 30px 30px}
  .spec{border-left:0;border-top:1px solid var(--line)}
  .why{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:720px){
  .ai-grid,.why{grid-template-columns:1fr}
}
@media (max-width:860px){
  :root{--top:58px}
  .wrap{padding:0 16px}
  .top{padding:0 16px;gap:16px}
  .top nav{gap:16px}
  .top nav .wide{display:none}
  .docs{grid-template-columns:1fr}
  .toc{display:none}
  .toc-mobile{display:block}
  .content{padding:28px 16px 72px}
  .content h1{font-size:2.375rem}
  .content h2{font-size:1.625rem}
  .to-top{display:flex;opacity:0;visibility:hidden;translate:0 8px;transition:opacity .2s ease-out,translate .2s ease-out,scale .12s ease-out,visibility 0s linear .2s}
  .to-top.show{opacity:1;visibility:visible;translate:none;transition:opacity .2s ease-out,translate .2s ease-out,scale .12s ease-out}
  html:has(.toc-mobile){scroll-padding-top:calc(var(--top) + 76px)}
  .toc-mobile{position:sticky;top:calc(var(--top) + 8px);z-index:5;box-shadow:0 10px 24px -18px rgba(0,0,0,.6)}
  .toc-mobile[open]{max-height:calc(100vh - var(--top) - 24px);overflow:auto}
  .hero{padding-top:56px}
  .hero-shot{margin-top:44px}
  .band{padding:80px 0}
  .cta{padding:80px 16px 88px}
  .compare,.cols{grid-template-columns:1fr}
  .home{padding:0 16px}
  .edition{padding:22px 20px}
  .plan{padding:24px 22px}
  .points{grid-template-columns:1fr}
  .foot-links{grid-template-columns:repeat(2,auto);gap:10px 32px}
}
@media (max-width:560px){
  .top .brand{font-size:1.125rem;min-height:44px}
  .top .btn{min-height:44px}
  /* Without JavaScript (no Menu button), the links stay in the bar and scroll sideways there. */
  .top:not(.has-menu) nav{overflow-x:auto;scrollbar-width:none}
  .top:not(.has-menu) nav a{padding:12px 0}
  .top.has-menu nav{display:none}
  .has-menu .nav-toggle{display:inline-flex}
  .top.has-menu.open nav{display:flex;flex-direction:column;gap:0;position:absolute;top:100%;left:0;right:0;padding:4px 16px 12px;background:var(--bg);border-bottom:1px solid var(--line);box-shadow:0 24px 40px -24px rgba(0,0,0,.55);animation:reveal .2s ease-out both}
  .nav-toggle .i-close,.top.open .nav-toggle .i-menu{display:none}
  .top.open .nav-toggle .i-close{display:inline}
  .top.open + .nav-scrim{display:block;position:fixed;inset:0;z-index:9;background:rgba(0,0,0,.45);animation:edge .2s ease-out both}
  /* Over the scrim the header is solid, so it doesn't take the scrim's grey through its glass. */
  .top.open,.top.closing{background:var(--bg)}
  /* Closing: the menu and the scrim fade out the way they came (assets/site.js keeps them for it). */
  .top.has-menu.closing nav{display:flex;flex-direction:column;gap:0;position:absolute;top:100%;left:0;right:0;padding:4px 16px 12px;background:var(--bg);border-bottom:1px solid var(--line);box-shadow:0 24px 40px -24px rgba(0,0,0,.55);animation:unreveal .16s ease-in both;pointer-events:none}
  .top.has-menu.closing nav a,.top.has-menu.closing nav a.wide{display:flex;align-items:center;min-height:48px;padding:0 4px;font-size:1.0625rem;border-top:1px solid var(--line)}
  .top.has-menu.closing nav a:first-child{border-top:0}
  .top.closing + .nav-scrim{display:block;position:fixed;inset:0;z-index:9;background:rgba(0,0,0,.45);animation:edge .16s ease-in reverse both;pointer-events:none}
  /* While it's open the page under the scrim doesn't scroll. */
  html.menu-open{overflow:hidden}
  .top.has-menu.open nav a,.top.has-menu.open nav a.wide{display:flex;align-items:center;min-height:48px;padding:0 4px;font-size:1.0625rem;border-top:1px solid var(--line)}
  .top.has-menu.open nav a:first-child{border-top:0}
  .top.has-menu.open nav a[aria-current]::after{left:4px;right:auto;width:24px;bottom:8px}
  /* The install command stays on one line and scrolls sideways; Copy stays put at its end. */
  .install-cmd pre{padding:0 0 0 14px;overflow-x:auto;scrollbar-width:none}
  .install-cmd pre code{display:inline-block;padding-right:92px;line-height:56px;font-size:0.8125rem;white-space:pre}
  .install-cmd .copy{top:1px;bottom:1px;right:1px;transform:none;min-width:68px;min-height:44px;border:0;border-left:1px solid var(--line2);border-radius:0 11px 11px 0;background:var(--surface)}
  .install-cmd .copy::before{content:"";position:absolute;right:100%;top:0;bottom:0;width:24px;pointer-events:none;background:linear-gradient(to right,transparent,var(--surface))}
  .copy{min-height:44px;min-width:44px}
  .btn{min-height:44px}
  .more{display:inline-flex;align-items:center;min-height:44px}
  .foot-links a,.foot-brand p a{display:inline-flex;align-items:center;min-height:44px}
  .foot-brand .brand{min-height:44px}
  .skip{min-height:44px;display:inline-flex;align-items:center}
  .install-actions a{display:inline-flex;align-items:center;min-height:44px}
  .toc-mobile a{display:flex;align-items:center;min-height:44px}
  .install-actions .btn{width:100%}
  [data-prelaunch] .prelaunch,html:not([data-solo]) .solo-soon,p.soon{border-radius:14px;align-items:flex-start}
  .prelaunch .dot,.solo-soon .dot,p.soon .dot{margin-top:7px}
  .window{border-radius:10px}
  .head p{font-size:1.0625rem}
  .copytext p{font-size:1.0312rem}
  .faq summary{font-size:1.0312rem;padding:16px 48px 16px 18px}
  .faq .a{padding:0 18px 16px}
  .term{font-size:0.75rem;width:92%;margin-top:-24px}
  /* Wrap rather than cut long lines off at the card's edge. */
  .term pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:12px 14px 14px}
  /* The documentation's closing links are tap-sized. */
  .foot a{display:inline-flex;align-items:center;min-height:44px}
  .ai-card{border-radius:16px}
  .ai-card.wide .ai-media{padding:14px}
  .ai-text,.ai-card.wide .ai-text{padding:22px 20px 24px}
  .spec{padding:20px;grid-template-columns:1fr}
  /* On a phone the badge is two lines, always: the second line starts with its words, not a lone dot. */
  .ai-badge{font-size:0.8438rem;flex-direction:column;gap:2px;padding:7px 18px;border-radius:20px}
  .ai-badge .soft::before{display:none}
  .matrix.vs{font-size:0.875rem}
  .matrix.vs th,.matrix.vs td{padding:10px 10px}
  /* Copy is a 44 px target in the top right corner (top 8px). Commands wrap, so their first lines
     make room for it (a float as tall as the button); other code doesn't wrap, so it starts below it. */
  .code:not(.install-cmd,.output) pre{padding:60px 16px 14px}
  .code:not(.install-cmd,.output) pre:has(> code[data-lang="sh"]){padding-top:14px}
  .code pre code[data-lang="sh"]{white-space:pre-wrap;overflow-wrap:anywhere}
  .code pre code[data-lang="sh"]::before{content:"";float:right;width:72px;height:40px}
  .matrix.vs tbody th{width:34%}
  .matrix.vs td{width:33%}
}
@media (max-width:400px){
  .top{gap:12px}
  .top .btn{padding:8px 12px;font-size:0.875rem}
  .top nav{gap:12px}
}
/* Tables marked .stack become one card per row on a phone, so every column stays visible. Each
   cell names its column with data-label; --cols is how many cells sit side by side. */
@media (max-width:560px){
  table.stack,table.plain.stack{min-width:0}
  table.stack thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  table.stack tbody tr{display:grid;grid-template-columns:repeat(var(--cols,1),minmax(0,1fr));gap:6px 16px;padding:12px 16px;border-bottom:1px solid var(--line)}
  table.stack tbody tr:last-child{border-bottom:0}
  table.stack tbody tr > *{display:block;width:auto;padding:0;border:0;text-align:left}
  table.stack tbody tr > :first-child{grid-column:1 / -1}
  table.stack td[data-label]::before{content:attr(data-label);display:block;font-size:0.7812rem;font-weight:600;color:var(--faint);letter-spacing:.02em;margin-bottom:1px}
  .matrix.stack{--cols:2}
  /* The documentation's stacked tables (<!-- stack --> in docs/manual.md): the two columns side by side, like the comparison above. */
  .table table.stack:not([style*="--cols"]){--cols:2}
}
/* Reduced motion: no movement, but keep the short fades that explain what changed. */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  :root{--press:1}
  @keyframes in{from{opacity:0}}
  @keyframes reveal{from{opacity:0}}
  @keyframes unreveal{to{opacity:0}}
  /* The phone menu and its scrim fade only, quickly; the header's scroll edge is just there, not faded in. */
  .top.has-menu.open nav,.top.has-menu.closing nav,.top.open + .nav-scrim,.top.closing + .nav-scrim{animation-duration:.12s}
  .top::after{animation:none}
  .runs-count{animation-duration:.2s}
  .lost .mora{animation:none}
  .faq details::details-content{translate:none}
  .to-top{translate:none}
  .faq summary::after,.toc-mobile summary::after{transition:none}
  .btn:active,.copy:active,.period button:active,.stepper button:active,.to-top:active{opacity:.8}
}
/* Reduced transparency: the header becomes a solid bar. */
@media (prefers-reduced-transparency:reduce){
  .top{background:var(--bg);backdrop-filter:none;-webkit-backdrop-filter:none}
}
/* More contrast: stronger secondary text and lines, a solid header with a defined edge. */
@media (prefers-contrast:more){
  :root{--muted:#E6DDD5;--faint:#D2C7BD;--line:#6E6056;--line2:#8C7B6E;--text2:#F6EFE9}
  .top{background:var(--bg);backdrop-filter:none;-webkit-backdrop-filter:none;border-bottom:1px solid var(--line2)}
  .top::after{display:none}
  .btn.ghost{box-shadow:inset 0 0 0 2px var(--line2)}
  .faq .a a,.biz a,.prelaunch a,.lost p a,.foot-small a,.content section a{text-decoration-color:currentColor}
}
@media (prefers-contrast:more) and (prefers-color-scheme:light){
  :root{--muted:#2E241E;--faint:#3E322A;--line:#A89585;--line2:#7F6B5C;--text2:#221A15}
}
/* Long inline code (addresses, commands, variables) wraps in running text instead of widening the page. */
.content :is(p,li,td,dd) code{overflow-wrap:anywhere}
