/* ==========================================================================
   jamovi.app — Premium Scientific SaaS (light theme only)
   Warm-white surfaces · deep navy type · soft blue accent · mono data labels
   ========================================================================== */

@font-face {
  font-family: "Inter Var";
  src: url("../fonts/jamovi-inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono Var";
  src: url("../fonts/jamovi-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* surfaces */
  --bg: #ffffff;
  --bg-warm: #fcfcfa;
  --bg-soft: #f6f7fb;
  --bg-tint: #edf3f9;
  /* type */
  --ink: #0e1630;
  --ink-2: #2d3850;
  --muted: #546077;
  --faint: #687287;
  /* lines */
  --line: #e6e9f1;
  --line-2: #d4dae6;
  /* accent: blue */
  --blue: #3e6da9;
  --blue-h: #335b8e;
  --blue-ink: #2c527f;
  --blue-50: #edf3f9;
  --blue-100: #d9e6f2;
  --blue-200: #b9cee3;
  --blue-300: #91b1d1;
  /* support colours (charts + states) */
  --amber: #e5a03a;
  --amber-ink: #8a5208;
  --amber-50: #fff7ea;
  --green: #1d9d68;
  --green-ink: #0e7346;
  --green-50: #e9f8f1;
  --red-ink: #b73a2c;
  --red-50: #fdeeec;
  /* type families */
  --font: "Inter Var", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono Var", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  /* shape */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --pill: 999px;
  --shadow-xs: 0 1px 2px rgba(14, 22, 48, .05);
  --shadow-sm: 0 1px 2px rgba(14, 22, 48, .05), 0 2px 8px rgba(14, 22, 48, .04);
  --shadow: 0 1px 3px rgba(14, 22, 48, .05), 0 10px 30px -12px rgba(14, 22, 48, .12);
  --shadow-lg: 0 2px 6px rgba(14, 22, 48, .04), 0 30px 60px -24px rgba(43, 78, 122, .22);
  --shadow-blue: 0 1px 2px rgba(44, 82, 127, .25), 0 8px 22px -8px rgba(62, 109, 169, .55);
  /* layout */
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
figure { margin: 0; }
img { height: auto; display: block; }
h1, h2, h3, h4 { text-wrap: balance; color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.022em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -.035em; font-weight: 800; }
h2 { font-size: clamp(1.55rem, 2.9vw, 2.2rem); letter-spacing: -.03em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--blue-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-h); }
strong { color: var(--ink); font-weight: 650; }
code, kbd, .mono { font-family: var(--mono); font-size: .88em; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--blue-100); color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }
main:focus { outline: none; }

/* ---------- icons ---------- */
.ico { width: 20px; height: 20px; flex: none; }
.ico-sm { width: 16px; height: 16px; }
.ico-lg { width: 28px; height: 28px; }

/* ---------- buttons ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: var(--h); padding: 0 1.3em; border-radius: var(--pill);
  font: 600 .98rem/1.1 var(--font); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.btn .ico { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-h); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { color: var(--ink); border-color: var(--blue-300); background: var(--blue-50); transform: translateY(-1px); }
.btn-soft { background: var(--blue-50); color: var(--blue-ink); }
.btn-soft:hover { background: var(--blue-100); color: var(--blue-h); }
.btn-lg { --h: 56px; padding: 0 1.75em; font-size: 1.05rem; }
.btn-sm { --h: 38px; padding: 0 1em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn:active { transform: translateY(0); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; min-width: 40px; padding: 0 10px;
  border-radius: var(--pill); border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer;
  font: 500 .9rem var(--font); text-decoration: none; transition: border-color .2s, background .2s, color .2s;
}
.icon-btn:hover { border-color: var(--line-2); background: var(--bg-soft); color: var(--ink); }
kbd { display: inline-block; font: 500 .72rem/1 var(--mono); padding: 3px 6px; border-radius: 5px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: #fff; color: var(--muted); }

/* ---------- badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font: 600 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; padding: 6px 9px; border-radius: var(--pill); background: var(--blue-50); color: var(--blue-ink); border: 1px solid var(--blue-100); white-space: nowrap; }
.badge-warn { background: var(--amber-50); color: var(--amber-ink); border-color: #f6dfb7; }
.badge-green { background: var(--green-50); color: var(--green-ink); border-color: #c8ecda; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 .76rem/1 var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--blue-ink); margin: 0 0 1rem; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--blue); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(14, 22, 48, .25); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-name { font-weight: 750; font-size: 1.17rem; letter-spacing: -.03em; }
.brand-name span { color: var(--blue); }
.primary-nav { margin-inline: auto; }
.primary-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  position: relative; display: block; padding: 8px 13px; border-radius: var(--pill); color: var(--ink-2);
  font-weight: 500; font-size: .95rem; text-decoration: none; transition: color .2s, background .2s;
}
.primary-nav a:hover { color: var(--ink); background: var(--bg-soft); }
.primary-nav a[aria-current] { color: var(--blue-ink); font-weight: 600; }
.primary-nav a[aria-current]::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.search-btn { padding: 0 8px 0 12px; color: var(--muted); }
.search-btn .ico { width: 17px; height: 17px; }
.search-btn-label { font-size: .88rem; }
.menu-toggle { display: none; width: 42px; padding: 0; }
.menu-icon { position: relative; width: 18px; height: 12px; display: block; }
.menu-icon span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-icon span:first-child { top: 1px; }
.menu-icon span:last-child { top: 9px; }
.menu-toggle[aria-expanded="true"] .menu-icon span:first-child { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span:last-child { top: 5px; transform: rotate(-45deg); }
.mobile-nav { position: absolute; left: 0; right: 0; top: var(--header-h); background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(14, 22, 48, .3); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
.mobile-nav .wrap { padding-top: 8px; padding-bottom: 22px; }
.mobile-list { list-style: none; margin: 0; padding: 0; }
.mobile-list a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 1.05rem; text-decoration: none; }
.mobile-list a[aria-current] { color: var(--blue-ink); }
.mobile-list .ico { color: var(--faint); }
.mobile-extra { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.mobile-extra a { padding: 8px 14px; border-radius: var(--pill); background: var(--bg-soft); color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .mobile-nav:not([hidden]) { animation: drop .28s var(--ease); }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1080px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 560px) {
  .search-btn-label, .search-btn kbd { display: none; }
  .search-btn { padding: 0; width: 40px; }
  .header-cta { display: none; }
}

/* ---------- section scaffolding ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section-soft { background: var(--bg-soft); }
.section-line { border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { font-size: 1.08rem; color: var(--muted); margin: 0; }
.section-head h2 { margin-bottom: .4em; }
.split-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.split-head .section-head { margin-bottom: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--blue-ink); }
.link-arrow .ico { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover .ico { transform: translateX(3px); }

/* ==========================================================================
   HOME
   ========================================================================== */
.hero { position: relative; padding: clamp(56px, 8vw, 96px) 0 0; text-align: center; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -340px; width: 1500px; height: 900px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(62, 109, 169, .16), rgba(62, 109, 169, .06) 55%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse 60% 45% at 50% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 45% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; margin-bottom: 26px;
  border-radius: var(--pill); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .86rem; color: var(--ink-2); text-decoration: none;
}
.hero-pill:hover { color: var(--ink); border-color: var(--line-2); }
.hero-pill .badge { padding: 5px 8px; }
.hero-pill .ico { width: 15px; height: 15px; color: var(--faint); }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.045em; max-width: 14ch; margin: 0 auto .32em; }
.hero h1 .accent { background: linear-gradient(100deg, var(--blue) 10%, #80a4c8 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 640px; margin: 0 auto 32px; line-height: 1.6; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-os { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 18px; margin: 24px 0 0; padding: 0; list-style: none; font-size: .9rem; color: var(--muted); }
.hero-os li { display: inline-flex; align-items: center; gap: 7px; }
.hero-os .ico { width: 16px; height: 16px; color: var(--blue); }
.hero-os a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.hero-os a:hover { color: var(--blue-ink); text-decoration: underline; }

/* demo panel (illustration, not a screenshot) */
.demo { margin-top: clamp(44px, 6vw, 72px); padding-bottom: clamp(56px, 7vw, 88px); position: relative; }
.demo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.demo-panel { margin: 0;
  position: relative; text-align: left; background: rgba(255, 255, 255, .9); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); padding: clamp(14px, 2vw, 22px);
}
.demo-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.demo-chip { display: inline-flex; align-items: center; gap: 7px; font: 600 .74rem/1 var(--mono); letter-spacing: .03em; padding: 7px 10px; border-radius: var(--pill); border: 1px solid; }
.demo-chip.is-green { color: var(--green-ink); background: var(--green-50); border-color: #c4ead7; }
.demo-chip.is-file { color: var(--ink-2); background: #fff; border-color: var(--line-2); border-radius: 8px; font-weight: 500; }
.demo-analysis { margin-left: auto; font: 500 .82rem var(--mono); color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.demo-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; background: #fff; box-shadow: var(--shadow-xs); }
.kpi-label { font: 500 .72rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.kpi-value { font: 700 clamp(1.25rem, 2.1vw, 1.7rem)/1 var(--mono); color: var(--ink); letter-spacing: -.02em; margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.kpi-note { font: 500 .74rem/1 var(--mono); color: var(--green-ink); }
.kpi-note.is-amber { color: var(--amber-ink); }
.demo-chart { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; padding: 18px 18px 10px; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; }
.demo-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; grid-column: 1 / -1; }
.legend-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: var(--pill); border: 1px solid; font-size: .85rem; font-weight: 500; }
.legend-pill.is-blue { color: var(--blue-ink); border-color: var(--blue-200); background: var(--blue-50); }
.legend-pill.is-amber { color: var(--amber-ink); border-color: #f2d3a2; background: var(--amber-50); }
.legend-pill.is-dash { color: var(--muted); border-style: dashed; border-color: var(--line-2); }
.demo-svg { width: 100%; height: auto; overflow: visible; }
.demo-svg .grid line { stroke: var(--line); }
.demo-svg .axis-label { font: 500 11px var(--mono); fill: var(--faint); }
.demo-svg .pt { fill: var(--blue); fill-opacity: .82; stroke: #fff; stroke-width: 1.5; }
.demo-svg .pt.alt { fill: var(--amber); fill-opacity: .9; }
.demo-svg .fit { stroke: var(--ink); stroke-width: 2; fill: none; stroke-linecap: round; }
.demo-svg .band { fill: var(--blue); fill-opacity: .07; }
.demo-side { border-left: 1px dashed var(--line-2); padding-left: 18px; display: flex; flex-direction: column; gap: 12px; }
.demo-side-title { font: 600 .76rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0; }
.bars { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bars li { font-size: .85rem; }
.bars .bar-top { display: flex; justify-content: space-between; margin-bottom: 4px; color: var(--ink-2); }
.bars .bar-top b { font: 600 .82rem var(--mono); color: var(--ink); }
.bars .track { height: 8px; border-radius: 6px; background: var(--bg-soft); overflow: hidden; }
.bars .fill { height: 100%; border-radius: 6px; background: var(--blue); transform-origin: left; }
.bars .fill.is-amber { background: var(--amber); }
.demo-checks { margin: 4px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.demo-checks div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .84rem; }
.demo-checks dt { color: var(--muted); }
.demo-checks dd { margin: 0; font: 600 .8rem var(--mono); color: var(--ink); display: inline-flex; align-items: center; gap: 4px; }
.demo-checks .ico { color: var(--green); }
.demo-result { margin-top: auto; padding: 12px; border-radius: var(--r); background: var(--bg-tint); border: 1px solid var(--blue-100); font-size: .84rem; color: var(--ink-2); line-height: 1.5; }
.demo-result b { font-family: var(--mono); font-weight: 600; }
.demo-caption { display: flex; align-items: center; gap: 8px; justify-content: center; margin: 16px 0 0; font-size: .84rem; color: var(--muted); text-align: center; }
.demo-caption .ico { width: 16px; height: 16px; color: var(--faint); }

@media (max-width: 1000px) {
  .demo-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .demo-kpis .kpi:nth-child(n+4) { display: none; }
  .demo-chart { grid-template-columns: minmax(0, 1fr); }
  .demo-side { border-left: 0; border-top: 1px dashed var(--line-2); padding: 14px 0 6px; }
}
@media (max-width: 560px) {
  .demo-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .demo-kpis .kpi:nth-child(3) { display: none; }
  .kpi { padding: 12px 14px; }
  .demo-analysis { margin-left: 0; width: 100%; }
  .demo-chart { padding: 12px 10px 6px; }
}

/* trust strip */
.facts-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.fact { padding: 22px 24px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact-k { font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 8px; }
.fact-v { font-weight: 700; color: var(--ink); font-size: 1.15rem; letter-spacing: -.01em; margin: 0 0 4px; }
.fact-s { font-size: .86rem; color: var(--muted); margin: 0; }
@media (max-width: 860px) { .facts-strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .fact:nth-child(2) { border-right: 0; } .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 460px) { .facts-strip { grid-template-columns: minmax(0, 1fr); } .fact { border-right: 0; border-bottom: 1px solid var(--line); } .fact:last-child { border-bottom: 0; } }

/* OS chooser */
.os-switch { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.os-copy p { color: var(--muted); font-size: 1.05rem; }
.os-list { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; gap: 10px; }
.os-list li { display: flex; gap: 10px; align-items: flex-start; }
.os-list .ico { color: var(--green); margin-top: 3px; width: 18px; height: 18px; }
.os-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); overflow: hidden; }
.os-tabs { display: flex; gap: 4px; padding: 8px; background: var(--bg-soft); border-bottom: 1px solid var(--line); overflow-x: auto; }
.os-tab {
  flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid transparent; background: transparent; font: 600 .92rem var(--font); color: var(--muted); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s;
}
.os-tab .ico { width: 18px; height: 18px; }
.os-tab:hover { color: var(--ink); }
.os-tab[aria-selected="true"] { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-xs); }
.os-panel { padding: clamp(20px, 3vw, 30px); }
.os-panel[hidden] { display: none; }
.os-panel h3 { margin-bottom: .3em; }
.os-detected { display: none; margin-left: 8px; }
.os-panel.is-detected .os-detected { display: inline-flex; }
.os-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 22px; }
.os-spec { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.os-spec dt { font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.os-spec dd { margin: 0; font-weight: 600; color: var(--ink); font-size: .95rem; }
.os-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.os-note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; display: flex; gap: 6px; align-items: center; }
.os-note .ico { width: 15px; height: 15px; color: var(--green); }
@media (max-width: 900px) { .os-switch { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .os-specs { grid-template-columns: minmax(0, 1fr); } .os-tab { padding: 9px 10px; font-size: .86rem; } }

/* features bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px; overflow: hidden; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.tile:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.tile h3 { font-size: 1.12rem; margin-bottom: .35em; }
.tile p { color: var(--muted); font-size: .96rem; margin: 0; }
.tile-ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--blue-50); color: var(--blue); margin-bottom: 16px; border: 1px solid var(--blue-100); }
.tile-ico .ico { width: 20px; height: 20px; }
.tile-wide { grid-column: span 4; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: center; }
.tile-third { grid-column: span 2; }
.tile-half { grid-column: span 3; }
.tile-tint { background: linear-gradient(160deg, var(--blue-50), #fff 70%); }
.mini-sheet { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font: 500 .78rem var(--mono); background: #fff; box-shadow: var(--shadow-sm); }
.mini-sheet table { width: 100%; border-collapse: collapse; }
.mini-sheet th, .mini-sheet td { padding: 7px 10px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: left; white-space: nowrap; }
.mini-sheet th { background: var(--bg-soft); color: var(--ink-2); font-weight: 600; }
.mini-sheet td { color: var(--ink-2); }
.mini-sheet td.n { text-align: right; }
.mini-sheet tr:last-child td { border-bottom: 0; }
.mini-sheet th:last-child, .mini-sheet td:last-child { border-right: 0; }
.mini-sheet .vt { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.vt-n { background: var(--amber); }
.vt-c { background: var(--blue); }
.mini-code { font: 500 .8rem/1.6 var(--mono); background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-top: 16px; color: var(--ink-2); overflow-x: auto; white-space: pre; }
.mini-code .k { color: var(--blue-ink); }
.mini-code .s { color: var(--green-ink); }
.mini-apa { margin-top: 18px; font-size: .78rem; background: #fff; border-radius: var(--r); padding: 12px 14px; border: 1px solid var(--line); }
.mini-apa-title { font-weight: 650; color: var(--ink) !important; margin: 0 0 6px !important; font-size: .82rem !important; }
.mini-apa table { width: 100%; border-collapse: collapse; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.mini-apa th { font-weight: 500; color: var(--muted); text-align: right; padding: 5px 4px; border-bottom: 1px solid var(--ink); }
.mini-apa td { padding: 6px 4px; text-align: right; color: var(--ink-2); font-family: var(--mono); font-size: .74rem; }
.mini-apa th:nth-child(-n+2), .mini-apa td:nth-child(-n+2) { text-align: left; font-family: var(--font); }
.mini-options { list-style: none; margin: 18px 0 0; padding: 12px 14px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); display: grid; gap: 8px; font-size: .86rem; color: var(--ink-2); }
.mini-options li { display: flex; align-items: center; gap: 10px; }
.mini-options .box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: #fff; }
.mini-options .is-on .box { background: var(--blue); border-color: var(--blue); }
.mini-options .ico { width: 13px; height: 13px; stroke-width: 3; }
.mini-plot { width: 100%; height: auto; margin-top: 18px; }
.mini-plot .mp-grid { stroke: var(--line); }
.mini-plot .mp-label { font: 500 10px var(--mono); fill: var(--faint); }
.mini-plot .mp-name { fill: var(--ink-2); font-family: var(--font); font-size: 11px; }
.mini-plot .mp-whisk { stroke: var(--ink-2); stroke-width: 1.4; }
.mini-plot .mp-blue { fill: var(--blue-100); stroke: var(--blue); stroke-width: 1.4; }
.mini-plot .mp-amber { fill: var(--amber-50); stroke: var(--amber); stroke-width: 1.4; }
.mini-plot .mp-med { stroke: var(--ink); stroke-width: 2.2; }
.export-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.export-row span { font: 600 .72rem var(--mono); padding: 5px 9px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2); }
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-wide { grid-column: span 2; grid-template-columns: minmax(0, 1fr); }
  .tile-third, .tile-half { grid-column: span 1; }
}
@media (max-width: 600px) { .bento { grid-template-columns: minmax(0, 1fr); } .tile-wide, .tile-third, .tile-half { grid-column: auto; } .mini-sheet { overflow-x: auto; } }

/* workflow */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: flow; position: relative; }
.flow-step { position: relative; padding: 0 28px 0 0; }
.flow-num { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.flow-num b { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--blue-200); color: var(--blue-ink); font: 700 .95rem var(--mono); box-shadow: 0 0 0 6px var(--bg-soft); }
.flow-num::after { content: ""; height: 2px; flex: 1; background: linear-gradient(90deg, var(--blue-200), var(--line)); border-radius: 2px; transform-origin: left; }
.flow-step:last-child .flow-num::after { display: none; }
.flow-step h3 { font-size: 1.15rem; margin-bottom: .4em; }
.flow-step p { color: var(--muted); font-size: .96rem; }
.flow-step .menu-path { margin-top: 4px; }
@media (max-width: 820px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .flow-step { padding: 0 0 0 58px; }
  .flow-num { position: absolute; left: 0; top: 0; margin: 0; }
  .flow-num::after { display: none; }
}

/* tutorials list (home) */
.learn-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; border-top: 1px solid var(--line); }
.learn-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.learn-item:hover .learn-title { color: var(--blue-ink); }
.learn-item:hover .row-arrow { transform: translateX(3px); color: var(--blue); }
.learn-n { font: 600 .82rem var(--mono); color: var(--blue-ink); background: var(--blue-50); border: 1px solid var(--blue-100); height: 32px; border-radius: 9px; display: grid; place-items: center; }
.learn-title { display: block; font-weight: 650; color: var(--ink); font-size: 1.04rem; letter-spacing: -.01em; transition: color .2s; }
.learn-desc { display: block; color: var(--muted); font-size: .92rem; margin-top: 3px; line-height: 1.5; }
.learn-meta { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.row-arrow { color: var(--faint); width: 18px; height: 18px; margin-top: 4px; transition: transform .2s var(--ease), color .2s; }
@media (max-width: 820px) { .learn-grid { grid-template-columns: minmax(0, 1fr); } }

/* choose-a-test */
.chooser { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 60px); align-items: start; }
.chooser-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.chooser-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); align-items: center; }
.chooser-list li:last-child { border-bottom: 0; }
.chooser-q { color: var(--ink); font-weight: 600; font-size: .96rem; line-height: 1.4; }
.chooser-q small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.chooser-a a { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.chooser-a a:hover { text-decoration: underline; }
.chooser-a .menu-path { margin-top: 6px; }
.chooser .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 900px) { .chooser { grid-template-columns: minmax(0, 1fr); } .chooser .section-head { position: static; } }
@media (max-width: 560px) { .chooser-list li { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* comparison table */
.compare-wrap { border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow-sm); overflow-x: auto; }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .94rem; }
.compare th, .compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 600 .74rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg-soft); }
.compare thead th.is-us { color: var(--blue-ink); background: var(--blue-50); }
.compare tbody th { color: var(--ink); font-weight: 600; width: 18%; }
.compare td.is-us { background: rgba(237, 243, 249, .6); color: var(--ink); font-weight: 500; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare a { font-weight: 600; }
.compare-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; align-items: center; justify-content: space-between; }
.compare-foot p { margin: 0; font-size: .88rem; color: var(--muted); }
.compare-links { display: flex; gap: 8px; flex-wrap: wrap; }

/* help rows */
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.help-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r-xl); border: 1px solid var(--line); background: #fff; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s, transform .25s var(--ease); }
.help-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.help-card .tile-ico { margin-bottom: 4px; }
.help-card h3 { margin: 0; font-size: 1.08rem; }
.help-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.help-card .link-arrow { margin-top: auto; padding-top: 6px; font-size: .92rem; }
@media (max-width: 860px) { .help-grid { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 64px); }
.faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 2px; cursor: pointer; font-weight: 600; color: var(--ink); font-size: 1.04rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue-ink); }
.faq-icon { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--ink-2); transition: transform .3s var(--ease), background .2s, color .2s, border-color .2s; }
.faq-icon .ico { width: 15px; height: 15px; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--blue); border-color: var(--blue); color: #fff; }
.faq-answer { padding: 0 2px 20px; color: var(--muted); max-width: 66ch; }
.faq-answer p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: minmax(0, 1fr); } .faq-layout .section-head { position: static; } }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(36px, 6vw, 64px); background: linear-gradient(135deg, var(--blue-50), #fff 55%, var(--amber-50)); border: 1px solid var(--blue-100); display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 28px; align-items: center; }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 1px dashed var(--blue-200); pointer-events: none; }
@media (max-width: 820px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   INNER PAGES
   ========================================================================== */
.page-hero { position: relative; padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-tint), var(--bg-warm)); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; z-index: -1; right: -10%; top: -60%; width: 700px; height: 600px; background: radial-gradient(closest-side, rgba(62, 109, 169, .14), transparent 70%); }
.page-hero h1 { max-width: 22ch; margin-bottom: .35em; }
.page-hero .lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 64ch; margin: 0; }
.page-hero--hub { padding-bottom: clamp(36px, 5vw, 56px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 22px; padding: 0; font-size: .86rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.crumbs li + li::before { content: "/"; color: var(--line-2); margin-right: 2px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue-ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); font-weight: 500; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 22px 0 0; padding: 0; }
.meta-row li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--pill); background: #fff; border: 1px solid var(--line); font-size: .84rem; color: var(--ink-2); }
.meta-row .ico { color: var(--blue); }
.hero-path { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 0; }
.hero-path-label { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }

.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 5vw, 72px); padding-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(56px, 7vw, 88px); align-items: start; }
.doc-body { max-width: 760px; }
.doc-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.doc-aside-inner { display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; padding: 2px; }
.aside-title { font: 600 .74rem var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .9rem; line-height: 1.4; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--blue-ink); border-left-color: var(--blue); font-weight: 600; }
.aside-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; background: #fff; box-shadow: var(--shadow-xs); }
.aside-card p { margin: 0 0 10px; font-size: .92rem; }
.aside-download { background: linear-gradient(180deg, var(--blue-50), #fff); border-color: var(--blue-100); }
.aside-download .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 10px; height: auto; }
.aside-note { font-size: .8rem !important; color: var(--muted); margin: 10px 0 0 !important; }
@media (max-width: 1020px) {
  .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .doc-aside { position: static; order: -1; }
  .doc-aside-inner { max-height: none; overflow: visible; }
  .toc { display: none; }
  .doc-aside .aside-card { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
  .doc-aside .aside-card > * { margin: 0 !important; }
  .doc-aside .aside-card .btn { width: auto; margin-left: auto !important; }
}

.doc-wide { padding-top: clamp(32px, 4vw, 48px); }
.aside-card .aside-title { font-size: .74rem; margin-bottom: 10px; }
.hub-body { padding-bottom: clamp(56px, 7vw, 96px); }
.hub-section { padding-top: clamp(40px, 5vw, 64px); }
.hub-intro { max-width: 760px; font-size: 1.06rem; color: var(--muted); }
.hub-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .hub-cols { grid-template-columns: minmax(0, 1fr); } }
.plain-grid { padding-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(56px, 7vw, 88px); }
.plain-body { max-width: 760px; }

/* ---------- prose ---------- */
.prose { color: var(--ink-2); font-size: 1.04rem; line-height: 1.75; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 2.4em 0 .6em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.18rem; margin: 1.9em 0 .5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; padding-left: .2em; }
.prose li::marker { color: var(--blue); }
.prose ol > li::marker { font: 600 .9em var(--mono); }
.prose a:not(.btn):not(.row-link):not(.related-card) { text-decoration: underline; text-decoration-color: var(--blue-200); }
.prose a:not(.btn):not(.row-link):hover { text-decoration-color: currentColor; }
.prose code { background: var(--bg-soft); border: 1px solid var(--line); padding: .12em .4em; border-radius: 6px; color: var(--ink); overflow-wrap: anywhere; }
.prose pre { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; overflow-x: auto; font-size: .9rem; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; overflow-wrap: normal; }
.prose blockquote { margin: 1.5em 0; padding: 18px 22px; border-radius: var(--r-lg); background: var(--bg-soft); border: 1px solid var(--line); border-left: 3px solid var(--blue); color: var(--ink); font-size: .98rem; }
.prose blockquote p:last-child { margin: 0; }
.prose blockquote::before { content: "Report it like this"; display: block; font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--blue-ink); margin-bottom: 8px; }
.prose img { border-radius: var(--r); }
.prose hr { margin: 2.5em 0; }
a.ext::after { content: ""; display: inline-block; width: .7em; height: .7em; margin-left: .25em; vertical-align: .05em; background: currentColor; opacity: .55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat; }
.btn.ext::after, .footer-disclaimer a::after { display: none; }

/* tables */
.table-wrap { margin: 1.5em 0 1.8em; border: 1px solid var(--line); border-radius: var(--r-lg); overflow-x: auto; background: #fff; box-shadow: var(--shadow-xs); }
.table-wrap:focus-visible { outline-offset: 3px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .93rem; line-height: 1.5; }
.table-wrap caption { caption-side: bottom; text-align: left; padding: 12px 16px; font-size: .83rem; color: var(--muted); border-top: 1px solid var(--line); background: var(--bg-soft); }
.table-wrap th, .table-wrap td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap thead th { font: 600 .74rem var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--bg-soft); white-space: nowrap; }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr:hover td { background: #fafbff; }
.table-wrap .num { text-align: right; font-family: var(--mono); font-size: .88rem; white-space: nowrap; }
.table-wrap code { font-size: .82rem; }

/* menu path chips */
.menu-path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; vertical-align: middle; line-height: 1; }
.menu-path span { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 7px; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 1px 0 var(--line); font: 600 .78rem/1.1 var(--mono); color: var(--ink); white-space: nowrap; }
.menu-path span + span::before { content: ""; width: 5px; height: 5px; border-right: 1.5px solid var(--faint); border-top: 1.5px solid var(--faint); transform: rotate(45deg); margin: 0 8px 0 -2px; display: inline-block; }
.menu-path span:last-child { background: var(--blue-50); border-color: var(--blue-200); color: var(--blue-ink); }

/* numbered steps */
.prose ol.steps { list-style: none; padding: 0; counter-reset: step; margin: 1.5em 0 1.8em; }
.prose ol.steps > li { counter-increment: step; position: relative; padding: 0 0 22px 52px; margin: 0; }
.prose ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); border: 1px solid var(--blue-200); color: var(--blue-ink); font: 700 .86rem var(--mono); }
.prose ol.steps > li::after { content: ""; position: absolute; left: 16.5px; top: 36px; bottom: 4px; width: 1.5px; background: var(--line); }
.prose ol.steps > li:last-child { padding-bottom: 4px; }
.prose ol.steps > li:last-child::after { display: none; }

/* callouts */
.callout, .answer-box { margin: 1.6em 0; padding: 18px 20px 18px 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-soft); font-size: .98rem; position: relative; }
.callout > :last-child, .answer-box > :last-child { margin-bottom: 0; }
.callout .label, .answer-box .label { display: flex; align-items: center; gap: 8px; font: 600 .74rem/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); margin: 0 0 10px; }
.callout .label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.callout.note { background: var(--blue-50); border-color: var(--blue-100); }
.callout.note .label { color: var(--blue-ink); }
.callout.note .label::before { background: var(--blue); }
.callout.tip { background: var(--green-50); border-color: #c8ecda; }
.callout.tip .label { color: var(--green-ink); }
.callout.tip .label::before { background: var(--green); }
.callout.caution { background: var(--amber-50); border-color: #f4ddb4; }
.callout.caution .label { color: var(--amber-ink); }
.callout.caution .label::before { background: var(--amber); }
.callout.version { background: #fff; border-style: dashed; border-color: var(--line-2); }
.answer-box { background: #fff; border: 1px solid var(--blue-200); box-shadow: 0 0 0 5px var(--blue-50); margin-top: 0; }
.answer-box .label { color: var(--blue-ink); }
.answer-box .label::before { content: ""; width: 14px; height: 14px; background: var(--blue); border-radius: 4px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat; }

/* official download panel */
.official-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: center; margin: 1.8em 0; padding: 22px 24px; border-radius: var(--r-xl); border: 1px solid var(--blue-100); background: linear-gradient(135deg, var(--blue-50), #fff 70%); box-shadow: var(--shadow-sm); }
.official-title { font-weight: 700; color: var(--ink); font-size: 1.08rem; margin: 0 0 6px !important; }
.official-copy p { margin: 0; font-size: .94rem; line-height: 1.6; }
.official-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.official-note { display: flex; align-items: center; gap: 6px; font-size: .8rem !important; color: var(--muted); margin: 0 !important; }
.official-note .ico { color: var(--green); }
.prose .official-panel a.btn { text-decoration: none; }
@media (max-width: 760px) { .official-panel { grid-template-columns: minmax(0, 1fr); } .official-panel .btn { white-space: normal; text-align: center; } }

/* dataset card */
.dataset-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; margin: 1.5em 0; padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-xs); }
.dataset-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--green-50); color: var(--green-ink); border: 1px solid #c8ecda; }
.dataset-name { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 4px !important; font-weight: 600; color: var(--ink); }
.dataset-desc { margin: 0 !important; font-size: .88rem; color: var(--muted); line-height: 1.55; }
.dataset-desc .mono { font-size: .8rem; }
.prose .dataset-card a.btn { text-decoration: none; }
@media (max-width: 560px) { .dataset-card { grid-template-columns: auto minmax(0, 1fr); } .dataset-card .btn { grid-column: 1 / -1; } }

/* command line */
.command { display: flex; align-items: center; gap: 10px; margin: 1em 0 1.4em; padding: 8px 8px 8px 16px; border-radius: var(--r); background: #0f1730; }
.command code { flex: 1; color: #e6ebff; background: none; border: 0; font-size: .88rem; overflow-x: auto; white-space: nowrap; padding: 6px 0; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; border-radius: 8px; padding: 7px 10px; font: 600 .8rem var(--font); cursor: pointer; }
.copy-btn:hover { background: rgba(255, 255, 255, .16); }

/* ad slot */
.ad-slot { margin: 2em 0; padding: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ad-label { display: block; font: 500 .68rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 8px; }

/* sources, prev/next */
.sources { margin-top: 3em; padding: 22px 24px; border-radius: var(--r-lg); background: var(--bg-soft); border: 1px solid var(--line); }
.sources h2 { font-size: 1rem !important; margin: 0 0 .7em !important; }
.sources ul { margin: 0; padding-left: 1.1em; font-size: .92rem; }
.prev-next { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 2.2em; }
.pn { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid var(--line); text-decoration: none !important; transition: border-color .2s, box-shadow .2s; }
.pn:hover { border-color: var(--blue-200); box-shadow: var(--shadow-sm); }
.pn-next { text-align: right; grid-column: 2; }
.pn-label { font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pn-title { color: var(--ink); font-weight: 650; line-height: 1.35; }
@media (max-width: 560px) { .prev-next { grid-template-columns: minmax(0, 1fr); } .pn-next { grid-column: auto; } }

/* related */
.related { padding: clamp(48px, 6vw, 80px) 0; background: var(--bg-soft); border-top: 1px solid var(--line); }
.related h2 { font-size: 1.5rem; margin-bottom: 1em; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related-card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 22px; border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s, transform .25s var(--ease); }
.related-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.related-title { font-weight: 650; color: var(--ink); font-size: 1.05rem; line-height: 1.35; }
.related-desc { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.related-go { margin-top: auto; display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: var(--blue-ink); font-size: .9rem; }
@media (max-width: 900px) { .related-grid { grid-template-columns: minmax(0, 1fr); } }

/* row lists & filter */
.row-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row-list li { border-bottom: 1px solid var(--line); }
.row-link { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 18px 4px; text-decoration: none !important; color: inherit; transition: background .2s; }
.row-link:hover { background: linear-gradient(90deg, var(--blue-50), transparent 80%); }
.row-link:hover .row-title { color: var(--blue-ink); }
.row-link:hover .row-arrow { transform: translateX(3px); color: var(--blue); }
.row-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.row-title { font-weight: 650; color: var(--ink); font-size: 1.04rem; letter-spacing: -.01em; transition: color .2s; }
.row-desc { color: var(--muted); font-size: .93rem; line-height: 1.5; }
.row-meta { display: flex; align-items: center; gap: 10px; flex: none; }
.row-level { font-size: .8rem; color: var(--muted); }
@media (max-width: 640px) { .row-link { flex-direction: column; align-items: flex-start; gap: 10px; } .row-meta .row-arrow { display: none; } }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-bottom: 24px; padding: 14px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.filter-bar[hidden] { display: none; }
.filter-input { display: flex; align-items: center; gap: 8px; flex: 1 1 260px; padding: 0 14px; height: 44px; border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--bg-warm); color: var(--muted); }
.filter-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.filter-input input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 .95rem var(--font); color: var(--ink); outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 8px 13px; border-radius: var(--pill); border: 1px solid var(--line-2); background: #fff; font: 500 .86rem var(--font); color: var(--ink-2); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--blue-300); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-status { width: 100%; margin: 0; font-size: .85rem; color: var(--muted); }
.filter-status:empty { display: none; }
.filter-group { margin-top: 36px; }
.filter-group h2 { font-size: 1.25rem; margin-bottom: .7em; }
.filter-group h2 a { color: var(--ink); text-decoration: none; }
.filter-group h2 a:hover { color: var(--blue-ink); }
.empty-state { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r-lg); margin-top: 16px; }

/* hub cards (section heads, OS cards etc.) */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .card-grid, .card-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .card-grid, .card-grid.two, .card-grid.four { grid-template-columns: minmax(0, 1fr); } }
.os-big { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r-xl); border: 1px solid var(--line); background: #fff; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s, transform .25s var(--ease); position: relative; }
.os-big:hover { border-color: var(--blue-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.os-big.is-detected { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50), var(--shadow); }
.os-big h3 { margin: 0; font-size: 1.15rem; }
.os-big p { margin: 0; color: var(--muted); font-size: .92rem; }
.os-big .mono { font-size: .8rem; color: var(--ink-2); }
.os-big .detected-tag { position: absolute; top: 16px; right: 16px; display: none; }
.os-big.is-detected .detected-tag { display: inline-flex; }
.os-big .link-arrow { margin-top: auto; padding-top: 8px; font-size: .92rem; }

/* contact & recommendation lists */
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--blue-100); background: var(--blue-50); margin: 1.4em 0; }
.contact-card .ico-lg { color: var(--blue); }
.contact-card p { margin: 0 0 6px; }
.contact-card.is-pending { background: var(--bg-soft); border-color: var(--line); }
.contact-label { font: 600 .74rem var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.rec-list { list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.rec-list li { padding: 18px 20px !important; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; margin: 0 !important; }
.rec-list a { font-weight: 650; }
.rec-by { display: block; font-size: .85rem; color: var(--ink-2); margin-top: 4px; }
.rec-note { display: block; font-size: .92rem; color: var(--muted); }

/* search */
.search-dialog { width: min(640px, calc(100vw - 24px)); max-height: min(78vh, 680px); margin: 10vh auto auto; padding: 0; border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff; box-shadow: 0 40px 80px -20px rgba(14, 22, 48, .35); color: var(--ink-2); overflow: hidden; }
.search-dialog[open] { display: flex; flex-direction: column; }
.search-dialog::backdrop { background: rgba(14, 22, 48, .28); backdrop-filter: blur(3px); }
@media (prefers-reduced-motion: no-preference) { .search-dialog[open] { animation: drop .25s var(--ease); } }
.search-form { display: flex; align-items: center; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
.search-field { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 12px; color: var(--muted); }
.search-field input { flex: 1; min-width: 0; height: 44px; border: 0; outline: none; font: 500 1.05rem var(--font); color: var(--ink); background: transparent; }
.search-results { overflow-y: auto; padding: 8px; flex: 1; }
.search-results:empty { display: none; }
.sr-item { display: block; padding: 12px 14px; border-radius: var(--r); text-decoration: none; color: inherit; }
.sr-item:hover, .sr-item.is-active { background: var(--blue-50); }
.sr-item-title { display: block; font-weight: 650; color: var(--ink); }
.sr-item-desc { display: block; font-size: .88rem; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.sr-item-kind { font: 600 .68rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--blue-ink); }
.sr-empty { padding: 18px; color: var(--muted); font-size: .95rem; }
.search-hint { margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--bg-soft); font-size: .8rem; color: var(--muted); display: flex; gap: 12px; }
.search-page-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 680px; margin-top: 24px; }
.search-page-form .filter-input { background: #fff; height: 52px; }
.search-count { color: var(--muted); margin: 0 0 16px; }
mark { background: #fff1c9; color: inherit; border-radius: 3px; padding: 0 2px; }

/* 404 */
.notfound { text-align: center; padding: clamp(56px, 9vw, 110px) 0; }
.notfound-code { font: 800 clamp(4rem, 14vw, 9rem)/1 var(--mono); letter-spacing: -.06em; background: linear-gradient(180deg, var(--blue-300), var(--blue-50)); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0 0 8px; }
.notfound p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }
.notfound .hero-ctas { margin-bottom: 40px; }
.notfound .row-list { max-width: 680px; margin: 0 auto; text-align: left; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-warm); border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 72px); font-size: .93rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 48px; padding-bottom: 44px; }
.footer-brand p { color: var(--muted); margin: 16px 0 18px; max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-heading { font: 600 .74rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin: 6px 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--blue-ink); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0 30px; display: grid; gap: 12px; }
.footer-disclaimer { display: flex; gap: 10px; align-items: flex-start; margin: 0; color: var(--ink-2); font-size: .9rem; line-height: 1.6; }
.footer-disclaimer .ico { color: var(--blue); margin-top: 3px; }
.footer-disclaimer a { font-weight: 600; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; font-size: .83rem; color: var(--muted); }
.footer-meta a { color: var(--muted); }
@media (max-width: 960px) { .footer-top { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
@media (max-width: 620px) { .footer-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 20px; } }

/* ---------- motion ---------- */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero-anim > * { opacity: 0; transform: translateY(14px); animation: rise .8s var(--ease) forwards; }
.js .hero-anim > *:nth-child(2) { animation-delay: .08s; }
.js .hero-anim > *:nth-child(3) { animation-delay: .16s; }
.js .hero-anim > *:nth-child(4) { animation-delay: .24s; }
.js .hero-anim > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.js .demo-svg .pt { opacity: 0; }
.js .demo.is-in .demo-svg .pt { animation: pop .5s var(--ease) forwards; animation-delay: calc(.3s + var(--i) * 18ms); }
@keyframes pop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
.demo-svg .pt { transform-box: fill-box; transform-origin: center; }
.js .demo-svg .fit { stroke-dashoffset: 700; stroke-dasharray: 700; }
.js .demo.is-in .demo-svg .fit { animation: draw 1.4s 1.2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.js .bars .fill { transform: scaleX(0); transition: transform 1s var(--ease) .6s; }
.js .demo.is-in .bars .fill { transform: scaleX(1); }
.js .flow-num::after { transform: scaleX(0); transition: transform 1s var(--ease) .3s; }
.js .flow.is-in .flow-num::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .hero-anim > * { opacity: 1; transform: none; }
  .js .demo-svg .pt { opacity: 1; }
  .js .demo-svg .fit { stroke-dashoffset: 0; }
  .js .bars .fill, .js .flow-num::after { transform: none; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .doc-aside, .related, .search-dialog, .ad-slot, .prev-next { display: none !important; }
  .doc-grid { display: block; }
  body { font-size: 11pt; }
  a.ext::after { display: none; }
}

/* ---------- hub components ---------- */
.start-here { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.start-copy { padding-right: 12px; }
.start-copy h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.start-copy p { color: var(--muted); }
.start-card, .feature-card, .vs-card {
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 26px; border-radius: var(--r-xl);
  border: 1px solid var(--line); background: #fff; text-decoration: none; color: inherit; box-shadow: var(--shadow-xs);
  transition: border-color .2s, box-shadow .25s, transform .25s var(--ease);
}
.start-card:hover, .feature-card:hover, .vs-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.start-card { background: linear-gradient(170deg, var(--blue-50), #fff 60%); }
.start-n { font: 700 .82rem var(--mono); color: #fff; background: var(--blue); border-radius: 9px; padding: 6px 9px; box-shadow: var(--shadow-blue); }
.start-title, .feature-title { font-weight: 700; color: var(--ink); font-size: 1.15rem; letter-spacing: -.015em; line-height: 1.3; }
.start-desc, .feature-desc { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.start-path { margin: 2px 0; }
.start-card .link-arrow, .feature-card .link-arrow, .vs-card .link-arrow { margin-top: auto; padding-top: 6px; font-size: .93rem; }
@media (max-width: 960px) { .start-here { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .start-copy { grid-column: 1 / -1; } }
@media (max-width: 620px) { .start-here { grid-template-columns: minmax(0, 1fr); } }
.learn-cards .feature-card { padding: 30px; }
.vs-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.vs-chip { font: 700 .82rem var(--mono); padding: 7px 11px; border-radius: 9px; border: 1px solid var(--line-2); color: var(--ink); background: #fff; }
.vs-chip.is-us { background: var(--blue); border-color: var(--blue); color: #fff; }
.vs-x { font: 600 .74rem var(--mono); color: var(--faint); text-transform: uppercase; }
.proscons { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.pc { padding: 26px 28px; border-radius: var(--r-xl); border: 1px solid var(--line); background: #fff; }
.pc-pro { background: linear-gradient(170deg, var(--green-50), #fff 55%); border-color: #cdeedd; }
.pc-con { background: linear-gradient(170deg, var(--amber-50), #fff 55%); border-color: #f4e0bd; }
.pc-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: 1.05rem; margin: 0 0 12px; }
.pc-pro .pc-title .ico { color: var(--green); }
.pc-con .pc-title .ico { color: var(--amber-ink); }
.pc ul { margin: 0; padding-left: 1.2em; color: var(--ink-2); }
.pc li { margin-bottom: .55em; }
.pc li::marker { color: var(--faint); }
@media (max-width: 760px) { .proscons { grid-template-columns: minmax(0, 1fr); } }
.hub-note { margin-top: 24px; color: var(--muted); }
.h-small { font-size: 1.35rem; margin-bottom: 1em; }
.hub-cols aside .callout:first-child { margin-top: 0; }

.feature-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mini-feature { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s, transform .25s var(--ease); }
.mini-feature:hover { border-color: var(--blue-200); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.mini-feature .tile-ico { margin: 0; flex: none; width: 36px; height: 36px; }
.mini-feature-title { display: block; font-weight: 650; color: var(--ink); font-size: .98rem; }
.mini-feature-desc { display: block; color: var(--muted); font-size: .86rem; line-height: 1.45; margin-top: 2px; }
@media (max-width: 1000px) { .feature-index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .feature-index { grid-template-columns: minmax(0, 1fr); } }

/* ---------- small-screen refinements ---------- */
@media (max-width: 560px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 10px; }
  .os-actions .btn, .hero-ctas .btn, .cta-actions .btn { width: 100%; }
  .os-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
  .os-tab { flex-direction: column; gap: 4px; padding: 8px 4px; font-size: .78rem; }
  .demo-panel { padding: 12px; border-radius: var(--r-lg); }
  .demo-legend { gap: 6px; }
  .demo-legend .legend-pill { padding: 4px 9px; font-size: .76rem; }
  .demo-legend .legend-pill.is-dash { display: none; }
  .demo-svg .axis-label { font-size: 15px; }
  .demo-svg .pt { r: 7px; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 2.8rem); }
}

/* Original teaching visuals; deliberately not presented as software screenshots. */
.tutorial-visual{margin:1.5rem 0 2rem;border:1px solid #d9e5eb;border-radius:18px;background:linear-gradient(115deg,#f7fbfd,#fff);padding:1.35rem;box-shadow:0 6px 20px rgba(25,70,96,.045)}
.tutorial-visual figcaption{display:flex;flex-direction:column;gap:.25rem;margin-bottom:1.1rem}
.visual-eyebrow{font-size:.69rem;letter-spacing:.105em;font-weight:800;color:#236783}
.tutorial-visual figcaption strong{font-size:1.05rem;color:#163548}
.visual-note{font-size:.8rem;color:#647582}
.visual-steps{list-style:none!important;counter-reset:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:.7rem;margin:0!important;padding:0!important}
.visual-steps li{position:relative;display:flex;align-items:center;flex-direction:column;gap:.55rem;justify-content:center;text-align:center;min-height:118px;border:1px solid #d7e7ee;background:#fff;border-radius:12px;padding:.8rem .6rem;font-weight:600;color:#27475a;font-size:.88rem;line-height:1.35}
.visual-step-num{width:29px;height:29px;display:inline-grid;place-items:center;flex:none;border-radius:50%;background:#e4f4ef;color:#166a55;font-size:.78rem;font-weight:800}
@media(max-width:650px){.tutorial-visual{padding:1rem}.visual-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.visual-steps li{min-height:94px;font-size:.82rem}}
@media(max-width:370px){.visual-steps{grid-template-columns:1fr}.visual-steps li{min-height:auto;flex-direction:row;text-align:left;justify-content:flex-start}}
