/* volante-kit site. Tokens on :root, dark theme from the system or the toggle (data-theme). */
:root {
  --bg: #fbfaf8;
  --bg-soft: #f4f2ee;
  --bg-elevated: #ece9e3;
  --text: #1c1a17;
  --text-muted: #77726a;
  --border: #e3dfd8;
  --accent: #4f5bd5;
  --card: #fdfcfa;
  --nav-bg: color-mix(in srgb, var(--bg) 74%, transparent);
  --shadow: 0 1px 2px #0000000a, 0 12px 40px #00000012, 0 40px 80px -20px #0000001c;
  --glow: color-mix(in srgb, var(--accent) 14%, transparent);
  --grid-line: color-mix(in srgb, var(--text) 7%, transparent);
  --scan: transparent;
  --red: #c4262e;
  --green: #2f7a32;
  --yellow: #8a6a00;
  --blue: #2563c9;
  --magenta: #a5307f;
  /* The terminal windows stay dark in both themes. */
  --t-bg: #161513;
  --t-bar: #1d1c19;
  --t-fg: #e8e4dc;
  --t-muted: #8d877c;
  --t-border: #2d2b27;
  --t-accent: #8e9bff;
  --on-accent: #fff;
  --r: 9px;
  --t-red: #f07a6f;
  --t-green: #9bd38a;
  --t-yellow: #e8c57a;
  --t-blue: #7fb5ff;
  --t-magenta: #e88cc9;
  --font-ui: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121110;
    --bg-soft: #191816;
    --bg-elevated: #26241f;
    --text: #ebe7df;
    --text-muted: #8f897e;
    --border: #2b2925;
    --accent: #7c8cff;
    --card: #181715;
    --shadow: 0 1px 2px #0000004d, 0 12px 40px #0006, 0 40px 80px -20px #00000080;
    --glow: color-mix(in srgb, var(--accent) 12%, transparent);
    --grid-line: color-mix(in srgb, var(--accent) 16%, transparent);
    --scan: #0000001a;
    --red: #f07a6f;
    --green: #9bd38a;
    --yellow: #e8c57a;
    --blue: #7fb5ff;
    --magenta: #e88cc9;
    --on-accent: #12131c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121110;
  --bg-soft: #191816;
  --bg-elevated: #26241f;
  --text: #ebe7df;
  --text-muted: #8f897e;
  --border: #2b2925;
  --accent: #7c8cff;
  --card: #181715;
  --shadow: 0 1px 2px #0000004d, 0 12px 40px #0006, 0 40px 80px -20px #00000080;
  --glow: color-mix(in srgb, var(--accent) 12%, transparent);
  --grid-line: color-mix(in srgb, var(--accent) 16%, transparent);
  --scan: #0000001a;
  --red: #f07a6f;
  --green: #9bd38a;
  --yellow: #e8c57a;
  --blue: #7fb5ff;
  --magenta: #e88cc9;
  --on-accent: #12131c;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font-ui);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
code, pre { font-family: var(--font-mono); font-variant-ligatures: none; }
code { font-size: .86em; }
p > code, li > code, dd > code, dt > code, td > code { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); padding: .08em .35em; border-radius: 5px; }
h1, h2, h3 { margin: 0; font-weight: 700; }
h1, h2 { font-family: var(--font-ui); letter-spacing: -.032em; }
h3 { letter-spacing: -.02em; font-weight: 600; }
section { padding: 0 24px; }

.c-muted, .c-com { color: var(--t-muted); }
.c-com { font-style: italic; }
.c-accent, .c-prompt { color: var(--t-accent); }
.c-prompt { user-select: none; }
.c-str, .c-ok { color: var(--t-green); }
.c-num { color: var(--t-yellow); }
.c-key { color: var(--t-blue); }
.c-sec { color: var(--t-magenta); font-weight: 700; }
.c-err { color: var(--t-red); }
.c-wait { color: var(--t-blue); }


/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  height: 64px; padding: 0 max(24px, 50% - 540px);
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.nav-brand { display: flex; align-items: center; gap: 9px; color: var(--text); font: 650 16px var(--font-ui); letter-spacing: -.02em; white-space: nowrap; }
.nav-brand:hover { text-decoration: none; }
.logo { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; flex: none; }
.nav-seg { display: flex; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); font: 500 13.5px var(--font-ui); }
.nav-seg a { padding: 6px 13px; border-radius: 9px; color: var(--text-muted); white-space: nowrap; transition: color .2s, background-color .2s, box-shadow .2s; }
.nav-seg a:hover { color: var(--text); text-decoration: none; }
.nav-seg a.on { color: var(--text); background: var(--card); box-shadow: 0 1px 2px #0000002e, 0 0 0 1px color-mix(in srgb, var(--text) 6%, transparent); }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 6px; }
.nav-gh { display: flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid var(--border); border-radius: var(--r); color: var(--text); font: 500 13.5px var(--font-ui); transition: border-color .2s; }
.nav-gh:hover { border-color: var(--accent); text-decoration: none; }
.nav-gh svg { width: 16px; height: 16px; fill: currentColor; }
.theme-toggle {
  display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
  color: var(--text-muted); background: none; border: 0; border-radius: 8px; cursor: pointer;
  transition: color .2s, background-color .2s;
}
.theme-toggle:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.theme-toggle svg {
  grid-area: 1 / 1; width: 17px; height: 17px;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0; transform: rotate(-60deg) scale(.6);
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.theme-toggle[data-mode="system"] .i-system,
.theme-toggle[data-mode="light"] .i-light,
.theme-toggle[data-mode="dark"] .i-dark { opacity: 1; transform: none; }
.theme-toggle:not([data-mode]) .i-system { opacity: 1; transform: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: calc(100svh - 64px); padding-block: 56px 96px;
}
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 640px; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 55% at 50% 28%, var(--glow), transparent 70%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: repeating-linear-gradient(135deg, var(--grid-line) 0 1px, transparent 1px 14px);
  -webkit-mask-image: radial-gradient(70% 75% at 50% 35%, #000 35%, #0000 80%);
  mask-image: radial-gradient(70% 75% at 50% 35%, #000 35%, #0000 80%);
}
.hero-mark {
  display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto;
  background: var(--t-bg); border-radius: 22px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--t-fg) 10%, transparent), 0 14px 34px #00000040, 0 0 70px -12px color-mix(in srgb, var(--t-accent) 45%, transparent);
  animation: float 6s ease-in-out infinite;
}
.hero-mark .logo { width: 56px; height: 56px; stroke: var(--t-accent); stroke-width: 1.7; }
.hero-mark.small { width: 68px; height: 68px; border-radius: 17px; animation: none; }
.hero-mark.small .logo { width: 40px; height: 40px; }
@keyframes float { 50% { transform: translateY(-8px); } }
.hero h1 { margin-top: 26px; font-size: clamp(48px, 10vw, 100px); font-weight: 700; line-height: 1; letter-spacing: -.045em; }
.hero-lead { position: relative; display: inline-block; margin: 18px 0 0; font: 500 clamp(19px, 3vw, 25px) var(--font-mono); letter-spacing: -.02em; color: var(--accent); }
.block-cursor {
  display: inline-block; width: 3px; height: 1.05em; margin-left: 6px; vertical-align: -.16em; border-radius: 2px;
  background: var(--accent); animation: blink 1.1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-sub { max-width: 36em; margin: 18px auto 0; color: var(--text-muted); font-size: 18px; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 34px; }
.hero-buttons { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 22px; }
.note { margin: 22px 0 0; color: var(--text-muted); font: 13px/1.7 var(--font-mono); }
.btn { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; transition: transform .2s var(--ease), box-shadow .2s, color .2s; }
.btn:hover { text-decoration: none; }
.btn-primary { padding: 12px 24px; border-radius: var(--r); background: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:active { transform: scale(.98); }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { color: var(--accent); }
.scroll-hint {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--text-muted); font: 11px var(--font-mono);
  animation: nudge 2.4s ease-in-out infinite;
}
.scroll-hint:hover { color: var(--accent); text-decoration: none; }
.scroll-hint svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@keyframes nudge { 50% { transform: translate(-50%, 5px); } }

.install-cmd {
  display: flex; align-items: center; gap: 10px; max-width: 100%; margin: 0 auto; padding: 11px 15px;
  border: 1px solid var(--border); border-radius: var(--r); background: var(--bg-soft); color: var(--text-muted);
  font: inherit; cursor: pointer; transition: border-color .2s, color .2s;
}
.install-cmd:hover { border-color: var(--accent); color: var(--text); }
.install-cmd:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.install-cmd .dollar { color: var(--accent); font: 13px var(--font-mono); }
.install-cmd code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 13.5px; }
.install-cmd svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.install-cmd .icon-check { display: none; color: var(--green); stroke-width: 1.8; }
.install-cmd.copied .icon-copy { display: none; }
.install-cmd.copied .icon-check { display: block; }

/* Terminal mockups */
.showcase { max-width: 980px; margin: 0 auto; padding-top: 16px; padding-bottom: 130px; }
.term, .win {
  overflow: hidden; border-radius: var(--r); background: var(--t-bg); color: var(--t-fg);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--t-fg) 11%, transparent), var(--shadow);
}
.term { box-shadow: 0 0 0 1px color-mix(in srgb, var(--t-fg) 12%, transparent), var(--shadow), 0 0 100px -26px color-mix(in srgb, var(--t-accent) 40%, transparent); }
.js .term { opacity: 0; transform: translateY(48px) scale(.97); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); }
.js .term.in { opacity: 1; transform: none; }
.term-bar, .win-bar {
  position: relative; display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px;
  background: var(--t-bar); border-bottom: 1px solid var(--t-border); color: var(--t-muted); font: 12px var(--font-mono);
}
.term-title, .win-title { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-title::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 2px; background: var(--t-accent); opacity: .8; vertical-align: 1px; }
.term-icon .logo { width: 15px; height: 15px; stroke: var(--t-accent); display: block; }
.term-bar, .win-bar { border-top: 2px solid var(--t-accent); }
.term-state { margin-left: auto; display: flex; align-items: center; gap: 7px; color: var(--t-yellow); }
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; }
.dot.running { background: var(--t-yellow); box-shadow: 0 0 0 0 color-mix(in srgb, var(--t-yellow) 50%, transparent); animation: pulse 1.8s ease-out infinite; }
.dot.waiting { background: var(--t-blue); }
.dot.red { background: var(--t-red); }
.dot.done { background: var(--t-green); }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.term-out {
  margin: 0; padding: 18px clamp(14px, 3vw, 24px) 22px;
  font: 13px/1.6 var(--font-mono); letter-spacing: 0; white-space: normal; overflow-x: auto;
}
.term-out .l { display: block; min-height: 1.6em; white-space: pre; }
.js .term .l { opacity: 0; transform: translateY(4px); }
.js .term.play .l { animation: line-in .35s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 230ms + 500ms); }
@keyframes line-in { to { opacity: 1; transform: none; } }
.cur { display: inline-block; width: .6em; height: 1.15em; vertical-align: -.22em; background: color-mix(in srgb, var(--t-fg) 85%, transparent); animation: blink 1.1s step-end infinite; }
.block-first { padding-top: 40px; }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 16px; }
.tabs button { padding: 8px 15px; border: 1px solid var(--border); border-radius: var(--r); background: var(--card); color: var(--text-muted); font: 500 13.5px var(--font-mono); cursor: pointer; transition: color .2s, border-color .2s, background-color .2s; }
.tabs button:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.tabs button.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#preview .term { max-width: 980px; margin: 0 auto; }
.term-out[hidden] { display: none; }
.showcase-note { max-width: 40em; margin: 22px auto 0; text-align: center; color: var(--text-muted); font-size: 14px; }

.win-code { margin: 0; padding: 20px clamp(14px, 3.5vw, 26px); overflow-x: auto; font: 13px/1.72 var(--font-mono); letter-spacing: 0; color: var(--t-fg); }
.win-code code { font-size: 1em; }
.win-narrow { max-width: 820px; margin: 0 auto; }
.block h2 + .win { margin-top: 44px; }

/* Sections */
.block { max-width: 1088px; margin: 0 auto; padding-top: 110px; padding-bottom: 20px; }
.eyebrow { margin: 0 0 16px; text-align: center; color: var(--accent); font: 600 12px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.eyebrow b { margin-right: 12px; color: var(--text-muted); font-weight: 500; }
.block h2, .download h2 { text-align: center; font-size: clamp(30px, 5vw, 46px); line-height: 1.1; }
.lead { max-width: 40em; margin: 18px auto 52px; text-align: center; color: var(--text-muted); font-size: 18px; }

.flow { max-width: 860px; margin: 40px auto 0; }
.flow-sync { margin: 0 auto 48px; }
.split-how { margin-top: 0; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.fig { margin: 0; padding: 24px; border: 1px solid var(--border); border-radius: var(--r); background: var(--card); }
.fig svg { display: block; width: 100%; height: auto; }
.fig text { font: 500 12px var(--font-mono); fill: var(--text); }
.fig .lb { fill: var(--text-muted); font-size: 10.5px; }
.fig .bx { fill: var(--bg); stroke: var(--border); stroke-width: 1.4; }
.fig .hot { stroke: var(--accent); }
.fig .wi { fill: none; stroke: var(--text-muted); stroke-width: 1.3; marker-end: url(#arr); }
.fig .wi.red { stroke: var(--red); stroke-dasharray: 4 4; }
.fig .arr-head { fill: var(--text-muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 56px; }
.step { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 36px; align-items: center; }
.step-no { display: inline-block; margin-bottom: 10px; padding: 2px 10px; border: 1px solid var(--border); border-radius: 980px; color: var(--accent); font: 12px var(--font-mono); }
.step h3 { font: 700 23px var(--font-ui); letter-spacing: -.03em; }
.step-text p { margin: 12px 0 0; color: var(--text-muted); font-size: 16px; }
.step-text .req { font: 13px var(--font-mono); }

.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px 34px; max-width: 1000px; margin: 56px auto 0; }
.notes p { margin: 0; color: var(--text-muted); font-size: 15px; }
.notes strong { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; color: var(--text); font: 600 15px var(--font-ui); }
.notes strong::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.notes-col { grid-template-columns: 1fr; margin: 0; align-content: center; gap: 22px; }

.cmds { max-width: 880px; margin: 0 auto; }
.cmds > div, .keys > div {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 8px 24px; align-items: baseline;
  padding: 14px 4px; border-bottom: 1px dashed var(--border);
}
.cmds > div:first-child, .keys > div:first-child { border-top: 1px dashed var(--border); }
.cmds dt code { background: none; padding: 0; color: var(--accent); font-size: 14px; overflow-wrap: anywhere; }
.cmds dd, .keys dd { margin: 0; color: var(--text-muted); font-size: 15px; }
.keys > div { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); padding: 11px 4px; }
.keys dt code { background: none; padding: 0; color: var(--text); font-size: 13px; }

.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: center; margin-top: 64px; }
.split-tight { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); margin-top: 40px; }
.side h3 { font: 700 21px var(--font-ui); letter-spacing: -.03em; }
.side-lead { margin: 12px 0 0; color: var(--text-muted); font-size: 16px; }
.side-foot { margin: 18px 0 0; color: var(--text-muted); font-size: 14px; }
.kinds { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; color: var(--text-muted); font-size: 15px; }
.kind { display: inline-block; min-width: 82px; margin-right: 10px; padding: 1px 8px; border: 1px solid color-mix(in srgb, var(--blue) 45%, var(--border)); border-radius: 6px; color: var(--blue); font: 12px/1.6 var(--font-mono); text-align: center; }

.more { margin: 36px 0 0; text-align: center; color: var(--text-muted); font-size: 15px; }

/* A step most readers skip: one line until clicked. */
.extra { max-width: 1000px; margin: 48px auto 0; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.extra > summary { display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; list-style: none; border-radius: 14px; }
.extra > summary::-webkit-details-marker { display: none; }
.extra > summary:hover .extra-title, .extra[open] > summary .extra-title { color: var(--accent); }
.extra > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.extra-tag { flex: none; padding: 2px 10px; border: 1px solid var(--border); border-radius: 980px; color: var(--accent); font: 12px var(--font-mono); }
.extra-title { color: var(--text); font: 600 17px var(--font-ui); letter-spacing: -.02em; transition: color .2s; }
.extra-hint { margin-left: auto; color: var(--text-muted); font: 12px var(--font-mono); }
.extra-chev { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--text-muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.extra[open] .extra-chev { transform: rotate(180deg); }
.extra-body { padding: 8px 28px 28px; border-top: 1px solid var(--border); }
.extra-body .steps { margin-top: 24px; }
.extra-more { margin-top: 28px; }
@media (max-width: 720px) {
  .extra > summary { flex-wrap: wrap; gap: 8px 12px; }
  .extra-hint { display: none; }
  .extra-chev { margin-left: auto; }
  .extra-body { padding: 4px 16px 20px; }
}

/* The live dashboard demo: the real app (docs/demo/, built by `npm run demo` in ui/) in a browser frame */
.views { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 16px; }
.views button { padding: 7px 15px; border: 1px solid var(--border); border-radius: var(--r); background: var(--card); color: var(--text-muted); font: 500 13.5px var(--font-ui); cursor: pointer; transition: color .2s, border-color .2s, background-color .2s; }
.views button:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.views button.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.views button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dash {
  max-width: 1120px; margin: 0 auto; overflow: hidden; border-radius: 14px; background: var(--bg-soft);
  box-shadow: 0 0 0 1px var(--border), var(--shadow), 0 0 120px -30px color-mix(in srgb, var(--accent) 45%, transparent);
}
.js .dash { opacity: 0; transform: translateY(48px) scale(.97); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); }
.js .dash.in { opacity: 1; transform: none; }
.dash-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--border); border-top: 2px solid var(--accent); background: var(--bg-elevated); font: 12px var(--font-mono); }
.dash-url { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 8px; background: var(--bg-soft); color: var(--text-muted); }
.dash-url svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.dash-open { color: var(--accent); white-space: nowrap; }
.dash-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg); }
.dash-view iframe { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; border: 0; transform-origin: 0 0; transform: scale(var(--s, .75)); background: var(--bg); }
.dash-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 6px 14px; border-radius: 20px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--text-muted); font-size: 12.5px; white-space: nowrap; pointer-events: none; box-shadow: 0 0 0 1px var(--border); transition: opacity .4s; }
.dash.used .dash-hint { opacity: 0; }
#dashboard .notes { margin-top: 36px; }

/* Download */
.download { margin-top: 130px; padding-top: 110px; padding-bottom: 130px; text-align: center; border-top: 1px solid var(--border); background: linear-gradient(var(--bg), var(--bg-soft)); }
.download h2 { margin: 22px 0 12px; }
.download > p { margin: 0 0 28px; color: var(--text-muted); }
.download-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 20px; margin-top: 26px !important; font: 13px var(--font-mono); }
.download-links a { color: var(--text-muted); }
.download-links a:hover { color: var(--accent); text-decoration: none; }
.version-pill { padding: 3px 12px; border: 1px solid var(--border); border-radius: 980px; background: var(--bg-soft); }
.version-pill:hover { border-color: var(--accent); }

/* Footer */
.footer { padding: 56px max(24px, 50% - 540px) 32px; border-top: 1px solid var(--border); background: var(--bg-soft); color: var(--text-muted); font-size: 13px; }
.footer a { color: var(--text-muted); transition: color .2s; }
.footer a:hover { color: var(--text); text-decoration: none; }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px 32px; }
.footer-brand p { max-width: 24em; margin: 14px 0 0; line-height: 1.6; }
.footer-title { margin: 0 0 14px; color: var(--text); font: 600 11.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-author { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px 24px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border); }
.footer-photo { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; border: 1px solid var(--border); }
.footer-about p { margin: 0; line-height: 1.6; }
.footer-about a { color: var(--text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: 3px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px !important; }
.footer-social a { display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); text-decoration: none; font: 600 11.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.footer-social a:hover { color: var(--text); }
.footer-social svg { width: 14px; height: 14px; fill: var(--accent); }
.coffee { display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border-radius: var(--r); background: var(--accent); color: var(--on-accent) !important; font: 600 15px var(--font-ui); white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s; }
.coffee:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent); text-decoration: none; }
.coffee svg { width: 20px; height: 20px; fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.coffee .cup { fill: #ffdd00; stroke: #1a1408; }
.coffee .lid { fill: #f4f1ea; stroke: #1a1408; }
.coffee .steam { stroke: #ffdd00; stroke-width: 2; }
.footer-copy { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--border); font: 12px var(--font-mono); }

/* Documentation pages (docs/*.md) */
.doc { max-width: 860px; margin: 0 auto; padding: 72px 24px 110px; }
.doc-eyebrow { text-align: left; text-transform: none; letter-spacing: .02em; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; }
.doc-body { margin-top: 28px; font-size: 16.5px; }
.doc-body h2 { margin: 56px 0 14px; padding-top: 8px; font-size: 26px; letter-spacing: -.03em; }
.doc-body h2::before { content: ""; display: inline-block; width: 4px; height: .75em; margin-right: 12px; border-radius: 2px; background: var(--accent); }
.doc-body h3 { margin: 36px 0 10px; font: 650 19px var(--font-ui); }
.doc-body h4 { margin: 28px 0 8px; font-size: 16px; }
.doc-body p, .doc-body li { color: color-mix(in srgb, var(--text) 86%, var(--text-muted)); }
.doc-body ul, .doc-body ol { padding-left: 1.3em; }
.doc-body li { margin: 4px 0; }
.doc-body li::marker { color: var(--accent); }
.doc-body pre {
  margin: 20px 0; padding: 18px 20px; overflow-x: auto; border-radius: 10px;
  background: var(--t-bg); color: var(--t-fg); font: 13px/1.65 var(--font-mono);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--t-fg) 10%, transparent);
}
.doc-body pre code { font-size: 1em; background: none; padding: 0; color: inherit; }
.doc-body div.highlighter-rouge { margin: 20px 0; }
.doc-body div.highlighter-rouge pre { margin: 0; }
.doc-body table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 22px 0; font-size: 14.5px; }
.doc-body th, .doc-body td { padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.doc-body th { font: 600 12.5px var(--font-mono); color: var(--text-muted); border-bottom-color: color-mix(in srgb, var(--text) 25%, var(--border)); }
.doc-body blockquote { margin: 20px 0; padding: 4px 18px; border-left: 3px solid var(--accent); color: var(--text-muted); }
.doc-body hr { margin: 44px 0; border: 0; border-top: 1px dashed var(--border); }
.doc-source { margin: 56px 0 0; padding-top: 20px; border-top: 1px dashed var(--border); font: 13px var(--font-mono); }
/* Rouge tokens in the dark code blocks */
.highlight .c, .highlight .c1, .highlight .cm, .highlight .cs { color: var(--t-muted); font-style: italic; }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb { color: var(--t-green); }
.highlight .m, .highlight .mi, .highlight .mf, .highlight .kc { color: var(--t-yellow); }
.highlight .na, .highlight .nt, .highlight .py { color: var(--t-blue); }
.highlight .k, .highlight .kd, .highlight .nb, .highlight .gh, .highlight .gu { color: var(--t-magenta); }
.highlight .nv, .highlight .nf { color: var(--t-accent); }

/* Phone and tablet */
@media (max-width: 900px) {
  .step, .split, .split-tight, .split-how { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-author { grid-template-columns: auto minmax(0, 1fr); }
  .coffee { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-seg { display: none; }
  .nav-gh span { display: none; }
  .nav-gh { padding: 7px 9px; }
  .block { padding-top: 84px; }
  .cmds > div, .keys > div { grid-template-columns: 1fr; gap: 4px; }
  .term-state { display: none; }
  .term-out { font-size: 11.5px; min-height: 0; }
  .win-code { font-size: 12px; }
  .dash-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .term, .js .term .l { opacity: 1; transform: none; }
}
