/* BCYFlow Desktop download site. One typeface (Manrope), one accent (the Aurora violet of the application), dark first. */

@font-face { font-family: 'Manrope'; src: url('../fonts/Manrope-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/Manrope-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/Manrope-ExtraBold.ttf') format('truetype'); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #08090c;
  --bg-raised: #0e1015;
  --surface: #12141b;
  --surface-2: #181b24;
  --line: #222633;
  --line-strong: #343a4c;
  --text: #f2f4f9;
  --text-2: #bcc3d1;
  --muted: #929cb0;
  --accent: #a99bff;
  --accent-strong: #7c6cff;
  --accent-wash: rgba(124, 108, 255, 0.14);
  --focus: #c8beff;
  --cta-bg: #ffffff;
  --cta-text: #0b0c10;
  --cta-hover: #e9e7ff;
  --ok: #6fd1a4;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --radius: 14px;
  --radius-sm: 9px;
  --gutter: clamp(20px, 4vw, 40px);
  --measure: 66ch;
}

html[data-theme='light'] {
  color-scheme: light;
  --bg: #fafafc;
  --bg-raised: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f2f7;
  --line: #e0e3ed;
  --line-strong: #c7ccdb;
  --text: #12141c;
  --text-2: #3b4357;
  --muted: #566079;
  --accent: #5642dc;
  --accent-strong: #5b47e0;
  --accent-wash: rgba(91, 71, 224, 0.09);
  --focus: #5b47e0;
  --cta-bg: #12141c;
  --cta-text: #ffffff;
  --cta-hover: #2a2f40;
  --ok: #17795a;
  --shadow: 0 30px 70px -34px rgba(31, 35, 60, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
h3 { font-weight: 600; letter-spacing: -0.015em; }
ul, ol { margin: 0; padding: 0; }
code, kbd, .mono { font-family: ui-monospace, 'Cascadia Mono', 'Consolas', monospace; font-size: 0.9em; }
::selection { background: var(--accent-strong); color: #fff; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--cta-bg); color: var(--cta-text); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.site-header[data-scrolled='true'] { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.28rem; letter-spacing: -0.03em; }
.brand .icon { width: 26px; height: 26px; stroke-width: 2; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--text); background: var(--surface); }
.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--text); cursor: pointer; transition: background-color .15s ease, border-color .15s ease;
}
.icon-btn:hover { background: var(--surface); border-color: var(--line-strong); }
.menu-toggle { display: none; }
.theme-moon { display: none; }
html[data-theme='light'] .theme-moon { display: block; }
html[data-theme='light'] .theme-sun { display: none; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border-radius: var(--radius-sm); border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-primary { background: var(--cta-bg); color: var(--cta-text); }
.btn-primary:hover { background: var(--cta-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.93rem; }
.btn[aria-disabled='true'] { opacity: 0.6; pointer-events: none; }

/* ---- hero ---- */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.03; letter-spacing: -0.04em; }
.lead { margin-top: 24px; max-width: 54ch; color: var(--text-2); font-size: clamp(1.06rem, 1.6vw, 1.22rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }
.hero-meta { color: var(--muted); font-size: 0.94rem; line-height: 1.5; }
.hero-meta > strong, .hero-meta > span { display: block; }
.hero-meta strong { color: var(--text-2); font-weight: 600; }
.fineprint { margin-top: 18px; max-width: 54ch; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }

/* ---- tiling demo: the one memorable thing ---- */
.demo { border: 1px solid var(--line); border-radius: 20px; background: var(--bg-raised); box-shadow: var(--shadow); overflow: hidden; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.segmented { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); }
.segmented label { position: relative; }
.segmented input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: block; min-width: 56px; padding: 8px 14px; border-radius: 8px; text-align: center; font-weight: 600; font-size: 0.93rem;
  color: var(--text-2); transition: background-color .15s ease, color .15s ease;
}
.segmented input:checked + span { background: var(--accent-strong); color: #fff; }
.segmented input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.demo-edges { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--text-2); font-size: 0.93rem; font-weight: 600; cursor: pointer; }
.demo-edges input { width: 18px; height: 18px; accent-color: var(--accent-strong); }
.demo-stage { position: relative; aspect-ratio: 1 / 1; background-color: #101a2e; }
.demo-canvas {
  position: absolute; inset: 0; background-image: url('../img/tile-navy.svg'); background-repeat: repeat; background-position: 0 0;
  background-size: calc(100% / var(--n, 1)); transition: background-size .7s cubic-bezier(.22, .72, .2, 1);
}
.demo-canvas[data-palette='forest'] { background-image: url('../img/tile-forest.svg'); }
.demo-canvas[data-palette='clay'] { background-image: url('../img/tile-clay.svg'); }
.demo-grid { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
.demo-stage[data-edges='true'] .demo-grid { opacity: 1; }
.demo-grid line { stroke: #fff; stroke-width: 2; stroke-dasharray: 7 7; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.8)); }
.demo-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 16px; border-top: 1px solid var(--line); }
.demo-file { color: var(--text-2); font-size: 0.92rem; }
.demo-file b { color: var(--text); font-weight: 600; }
.swatches { display: inline-flex; gap: 8px; margin-left: auto; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-strong); cursor: pointer; padding: 0; position: relative; }
.swatch::after { content: ''; position: absolute; inset: -9px; }
.swatch[aria-pressed='true'] { border-color: var(--text); box-shadow: 0 0 0 2px var(--bg-raised) inset; }
.swatch[data-palette='navy'] { background: linear-gradient(135deg, #101a2e 55%, #e8b4b8 55%); }
.swatch[data-palette='forest'] { background: linear-gradient(135deg, #1c2b22 55%, #f3e2c7 55%); }
.swatch[data-palette='clay'] { background: linear-gradient(135deg, #f1e4d3 55%, #c0644a 55%); }

/* ---- sections ---- */
.section { padding-block: clamp(56px, 8vw, 112px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); line-height: 1.08; }
.section-head p { margin-top: 18px; color: var(--text-2); font-size: 1.12rem; max-width: 58ch; }

/* steps: a real sequence, so it is numbered */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 1px solid var(--line-strong); }
.step { position: relative; padding: 28px 28px 8px 0; counter-increment: step; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step::before {
  content: counter(step); position: absolute; top: -17px; left: 0; display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); color: var(--accent); font-weight: 800; font-size: 0.95rem;
}
.step + .step::before { left: 28px; }
.step h3 { font-size: 1.14rem; margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 0.99rem; line-height: 1.6; }
.folder { display: inline-block; margin-top: 4px; padding: 3px 10px; border-radius: 999px; background: var(--accent-wash); color: var(--accent); font-weight: 600; font-size: 0.86rem; }

/* showcase: tabs with the real application */
.showcase { display: block; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; flex: 1 1 170px; padding: 14px 18px 16px; text-align: left; font: inherit;
  color: var(--text-2); background: transparent; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; border-radius: 10px 10px 0 0;
  cursor: pointer; transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.tab strong { font-weight: 600; font-size: 1.05rem; color: var(--text); }
.tab span { font-size: 0.9rem; line-height: 1.4; color: var(--muted); }
.tab:hover { background: var(--surface); }
.tab[aria-selected='true'] { border-bottom-color: var(--accent-strong); background: var(--accent-wash); }
.tab[aria-selected='true'] span { color: var(--text-2); }
.panel { min-width: 0; }
.panel[hidden] { display: none; }
.shot { margin: 0; border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: var(--bg-raised); box-shadow: var(--shadow); }
.shot a { display: block; cursor: zoom-in; }
.shot img { width: 100%; height: auto; }
.panel-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(28px, 5vw, 72px); margin-top: 30px; align-items: start; }
.panel-text h3 { font-size: 1.4rem; margin-bottom: 8px; }
.panel-text p { color: var(--text-2); }
.checks { list-style: none; display: grid; gap: 12px; margin: 4px 0 0; }
.checks li { position: relative; padding-left: 28px; color: var(--text-2); font-size: 0.99rem; line-height: 1.55; }
.checks li::before { content: ''; position: absolute; left: 3px; top: 0.5em; width: 11px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }

/* careful with your files: three plain columns separated by hairlines */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.principle { padding: 4px 32px 4px 0; }
.principle + .principle { padding-left: 32px; border-left: 1px solid var(--line); }
.principle h3 { font-size: 1.2rem; margin-bottom: 10px; }
.principle p { color: var(--text-2); font-size: 1rem; }

/* download */
.download { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.download-card { border: 1px solid var(--line-strong); border-radius: 20px; padding: clamp(24px, 3.4vw, 40px); background: linear-gradient(160deg, var(--bg-raised), var(--surface)); box-shadow: var(--shadow); }
.download-card h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.1; }
.download-card .facts { margin-top: 26px; }
.download-card .hero-actions { margin-top: 0; }
.download-card .fineprint { margin-top: 6px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 12px 28px; margin: 0 0 28px; }
.facts dt { color: var(--muted); font-size: 0.95rem; }
.facts dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.hash { display: flex; align-items: center; gap: 10px; }
.hash code { font-weight: 400; color: var(--text-2); font-size: 0.82rem; line-height: 1.4; word-break: break-all; }
.status { min-height: 1.5em; margin: 14px 0 0; color: var(--muted); font-size: 0.92rem; }
.requirements { list-style: none; display: grid; gap: 14px; }
.requirements li { padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.requirements li:last-child { border-bottom: 0; }
.requirements strong { display: block; color: var(--text); font-weight: 600; }

/* install + faq: native disclosure elements */
.install-steps { list-style: none; counter-reset: i; display: grid; gap: 22px; margin-bottom: 44px; max-width: 760px; }
.install-steps li { counter-increment: i; position: relative; padding-left: 52px; }
.install-steps li::before { content: counter(i); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--accent); font-weight: 800; }
.install-steps h3 { font-size: 1.12rem; margin-bottom: 4px; }
.install-steps p { margin: 0; color: var(--text-2); }
.disclosures { max-width: 820px; border-top: 1px solid var(--line); }
.disclosures details { border-bottom: 1px solid var(--line); }
.disclosures summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 4px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.08rem; line-height: 1.4;
}
.disclosures summary::-webkit-details-marker { display: none; }
.disclosures summary::after { content: ''; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; margin-right: 6px; }
.disclosures details[open] summary::after { transform: rotate(-135deg); }
.disclosures summary:hover { color: var(--accent); }
.answer { padding: 0 4px 24px; max-width: 66ch; color: var(--text-2); }
.answer p:last-child, .answer ol:last-child { margin-bottom: 0; }
.answer ol { padding-left: 1.3em; display: grid; gap: 6px; margin: 0 0 1em; }
.codeblock { display: flex; align-items: center; gap: 12px; margin: 12px 0 1em; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.codeblock code { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--text); }

/* release history */
.history-list { list-style: none; max-width: 820px; border-top: 1px solid var(--line); }
.history-list > li { border-bottom: 1px solid var(--line); }
.history-list summary { display: grid; grid-template-columns: 5.2rem 1fr auto; align-items: baseline; gap: 6px 18px; padding: 18px 4px; cursor: pointer; list-style: none; }
.history-list summary::-webkit-details-marker { display: none; }
.history-list .v { font-weight: 800; letter-spacing: -0.02em; }
.history-list .t { font-weight: 600; color: var(--text-2); }
.history-list .d { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.history-list .answer h4 { margin: 18px 0 4px; font-size: 1rem; font-weight: 600; color: var(--text); }
.history-list .answer p { margin-bottom: 0; }
.more { margin-top: 22px; }

/* heading on the left, content on the right (questions, release history) */
.split { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.6fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.split-side { position: sticky; top: 104px; }
.split-side h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); line-height: 1.08; }
.split-side p { margin: 18px 0 26px; max-width: 34ch; color: var(--text-2); font-size: 1.08rem; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); transition: border-color .15s ease, background-color .15s ease; }
.faq-list details:hover { border-color: var(--line-strong); }
.faq-list details[open] { border-color: var(--line-strong); background: var(--surface); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.08rem; line-height: 1.4; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ''; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; margin-right: 4px; }
.faq-list details[open] summary::after { transform: rotate(-135deg); }
.faq-list summary:hover { color: var(--accent); }
.faq-list .answer { padding: 0 24px 24px; max-width: 68ch; }
.split .history-list { max-width: none; }
.history-list summary:hover .t { color: var(--text); }

/* install */
.install-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.install-grid .install-steps { margin: 0; max-width: none; }
.smartscreen { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); background: var(--bg-raised); }
.smartscreen h3 { margin-bottom: 10px; font-size: 1.25rem; }
.smartscreen > p { color: var(--text-2); }
.ss-window { margin: 22px 0; padding: 22px 24px 20px; border-radius: 8px; background: #1b5fb0; color: #fff; box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.7); font-family: 'Segoe UI', system-ui, sans-serif; font-size: 0.92rem; line-height: 1.5; }
.ss-head { margin-bottom: 8px; font-size: 1.3rem; font-weight: 600; }
.ss-text { margin: 0 0 10px; color: #e6eefb; }
.ss-more { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.ss-more u { text-underline-offset: 3px; }
.ss-facts { display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; margin: 0 0 16px; }
.ss-facts dt { color: #cfe0fa; }
.ss-facts dd { display: flex; align-items: center; gap: 10px; margin: 0; }
.ss-buttons { display: flex; justify-content: flex-end; gap: 10px; }
.ss-btn { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border: 1px solid rgba(255, 255, 255, 0.75); color: #fff; }
.ss-btn-primary { background: #fff; border-color: #fff; color: #1b5fb0; font-weight: 600; }
.ss-mark { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #ffd23f; color: #1c2230; font-size: 0.78rem; font-weight: 800; }
.ss-list { display: grid; gap: 6px; margin: 0 0 14px; padding-left: 1.2em; color: var(--text-2); }
.ss-note { margin: 0; color: var(--muted); font-size: 0.92rem; }
.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(32px, 5vw, 56px); }
.help { padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); }
.help h3 { margin-bottom: 8px; font-size: 1.12rem; }
.help p { margin: 0 0 0.8em; color: var(--text-2); }
.help p:last-child { margin-bottom: 0; }
.help .help-small { color: var(--muted); font-size: 0.92rem; }
.hint { margin: -6px 0 26px; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.hint strong { color: var(--text-2); font-weight: 600; }

/* footer */
.site-footer { margin-top: 0; padding-block: clamp(44px, 6vw, 72px) 30px; border-top: 1px solid var(--line); background: var(--bg-raised); color: var(--muted); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 36px clamp(24px, 4vw, 64px); }
.footer-brand p { max-width: 32ch; margin: 14px 0 20px; }
.footer-col h2 { margin-bottom: 14px; color: var(--text); font-size: 0.98rem; font-weight: 600; letter-spacing: 0; }
.footer-col ul { display: grid; gap: 10px; list-style: none; }
.footer-col a { color: var(--text-2); font-weight: 600; text-decoration: none; }
.footer-col a:hover { color: var(--text); text-decoration: underline; }
.footer-col p { max-width: 30ch; margin: 12px 0 0; font-size: 0.9rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(36px, 5vw, 56px); padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.88rem; }
.footer-bottom p { margin: 0; }

/* legal pages */
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 120px); }
.doc-head { grid-column: 1 / -1; max-width: 820px; }
.doc-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.05; }
.doc-head p { margin-top: 18px; color: var(--text-2); font-size: 1.12rem; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 0.93rem; }
.toc p { margin: 0 0 10px; color: var(--muted); font-weight: 600; }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--text); border-left-color: var(--accent-strong); }
.prose { max-width: var(--measure); }
.prose h2 { margin: 2.4em 0 0.6em; font-size: 1.55rem; line-height: 1.2; }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { margin: 1.6em 0 0.4em; font-size: 1.12rem; }
.prose p, .prose li { color: var(--text-2); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; display: grid; gap: 8px; }
.prose strong { color: var(--text); font-weight: 600; }
.summary { margin: 0 0 2.4em; padding: 22px 24px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.summary h2 { margin: 0 0 12px; font-size: 1.15rem; }
.summary ul { margin: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--text-2); }
.prose th { color: var(--text); font-weight: 600; background: var(--surface); }
.prose tr:last-child td { border-bottom: 0; }

.notfound { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 14px; padding-block: 80px; }
.notfound h1 { font-size: clamp(2.4rem, 6vw, 4rem); }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .hero-grid, .download { grid-template-columns: minmax(0, 1fr); }
  .panel-text { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(3)::before { left: 0; }
  .principles { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .principle, .principle + .principle { padding: 0; border-left: 0; }
  .tab span { display: none; }
  .tab { flex-basis: 140px; padding-bottom: 14px; }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
}
@media (max-width: 820px) {
  .menu-toggle { display: inline-grid; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 10px var(--gutter) 18px; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); }
  .site-header[data-open='true'] .nav { display: flex; }
  .nav a { padding: 14px 8px; font-size: 1.05rem; }
  .header-download { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step + .step { padding: 28px 0 0 28px; border-left: 1px solid var(--line-strong); margin-left: 17px; }
  .step::before, .step + .step::before { left: -18px; top: 0; }
  .steps { border-top: 0; row-gap: 12px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .facts dd { margin-bottom: 12px; }
  .history-list summary { grid-template-columns: 1fr auto; }
  .history-list .t { grid-column: 1 / -1; grid-row: 2; }
  .demo-edges { margin-left: 0; }
  .swatches { margin-left: 0; }
}

@media (max-width: 980px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .split-side { position: static; }
  .install-grid, .help-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .faq-list summary { padding: 18px 18px; }
  .faq-list .answer { padding: 0 18px 20px; }
  .ss-window { padding: 18px 16px 16px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
@media (forced-colors: active) {
  .btn, .icon-btn, .tab, .swatch { border: 1px solid ButtonText; }
  .segmented input:checked + span, .tab[aria-selected='true'] { outline: 2px solid Highlight; }
}
@media print {
  .site-header, .site-footer, .demo, .toc, .menu-toggle { display: none; }
  body { background: #fff; color: #000; }
}
