/* ============================================================
   SUBTAKT — style.css
   Dark-only, single accent (warm orange). System-font stack only.
   No external resources. No inline styles anywhere (strict CSP).
   ============================================================ */

:root {
  --bg:        #08090c;
  --bg-soft:   #0d0f14;
  --surface:   #101319;
  --surface-2: #151922;
  --border:    #22262f;
  --border-2:  #2c313c;

  --text:      #e8eaef;
  --text-dim:  #a6adba;
  --text-mute: #8a91a0;

  --accent:     #ff7d33;   /* warm orange — the carving colour */
  --accent-hi:  #ff9354;
  --accent-lo:  #ef6714;
  --accent-glow: rgba(255, 125, 51, 0.35);
  --accent-soft: rgba(255, 125, 51, 0.12);

  --steel:     #6f8296;
  --steel-2:   #48586a;
  --steel-hi:  #a9b8c8;
  --steel-soft: rgba(111, 130, 150, 0.14);

  --maxw: 1080px;
  --radius: 14px;
  --radius-sm: 10px;
  --tap: 44px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
          "Liberation Mono", monospace;
}

/* ---------- reset-ish ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* subtle ambient glow behind hero */
body::before {
  content: "";
  position: fixed;
  top: -20vh; left: 50%;
  width: 90vw; max-width: 1100px; height: 70vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
              var(--accent-soft) 0%, rgba(255,125,51,0.04) 35%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(10px);
}

/* skip link */
.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  background: var(--accent);
  color: #1a0e05;
  font-weight: 650;
  padding: 10px 16px;
  border-radius: 999px;
}
.skip:focus { top: 10px; color: #1a0e05; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
main { position: relative; z-index: 1; }
section { padding: 84px 0; }
.section-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
h1, h2, h3 { color: var(--text); }
h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  font-weight: 650;
}
h3 { font-size: 1.15rem; margin: 0 0 8px; letter-spacing: -0.01em; line-height: 1.3; }
p { color: var(--text-dim); }
strong { color: var(--text); font-weight: 650; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-dim); max-width: 62ch; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  background: rgba(8, 9, 12, 0.82);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.26em;
  font-size: 0.98rem;
}
.brand:hover { color: var(--text); }
.brand .mark { width: 26px; height: 26px; display: block; flex: 0 0 auto; }
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav a.navlink {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 10px;
  color: var(--text-dim);
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  border-radius: 8px;
}
.nav a.navlink:hover { color: var(--text); }
.nav a.navlink[aria-current] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

/* language switch (plain links, works without JS) */
.langswitch {
  display: inline-flex;
  margin-left: 6px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  overflow: hidden;
}
.langswitch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tap);
  min-height: 40px;
  padding: 0 10px;
  color: var(--text-mute);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  border-radius: 0;
}
.langswitch a:hover { color: var(--text); }
.langswitch a[aria-current] {
  background: var(--accent);
  color: #1a0e05;
}

/* ---------- hero ---------- */
.hero { padding: 74px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.wordmark {
  font-size: clamp(2.9rem, 9vw, 5.4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin: 0 0 6px;
  background: linear-gradient(180deg, #ffffff 0%, #b9c0cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wordmark-wave { display: block; width: min(340px, 70%); height: 22px; margin: 4px 0 22px; }
.claim {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 26px;
}
.hero h1 {
  font-size: clamp(1.5rem, 3.6vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 640;
  margin: 0 0 16px;
  color: var(--text);
}
.hero h1 .accent { color: var(--accent); }
.hero-sub { max-width: 52ch; margin: 0 0 30px; }
.hero h1.product-name { font-size: clamp(2.1rem, 6vw, 3.2rem); line-height: 1.05; margin: 0; }
.hero-tagline { font-size: clamp(1.15rem, 2.4vw, 1.4rem); color: var(--text); font-weight: 600; margin: 16px 0 12px; line-height: 1.3; }
.hero-home .hero-copy { max-width: 640px; }

/* "Im Katalog": compact overview right of the home hero (desktop only) */
.peek {
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 10px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8);
}
.peek-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 4px 8px;
}
.peek ul { list-style: none; margin: 0; padding: 0; }
.peek li + li { border-top: 1px solid var(--border); }
.peek-row {
  display: flex; align-items: center; gap: 10px;
  min-height: 52px;
  padding: 8px 6px;
  border-radius: 8px;
  color: var(--text);
}
.peek-row:hover { color: var(--text); background: var(--surface-2); }
.peek-name { font-weight: 650; flex: 1 1 auto; }
.peek-ver { font-family: var(--mono); font-size: 0.76rem; color: var(--text-mute); min-width: 3.6em; text-align: right; }
@media (max-width: 899px) {
  .hero-home .hero-grid { grid-template-columns: 1fr; }
  .peek { display: none; }
}

/* product hero with a full-width image underneath */
.hero-wide .hero-copy { max-width: 760px; }
.hero-visual.is-wide { margin-top: 40px; padding: 16px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.cta-note { font-family: var(--mono); font-size: 0.8rem; color: var(--text-mute); letter-spacing: 0.04em; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--tap);
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  color: #1a0e05;
  box-shadow: 0 8px 30px -8px var(--accent-glow);
}
.btn-primary:hover { color: #1a0e05; transform: translateY(-1px); box-shadow: 0 12px 36px -8px var(--accent-glow); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border-2);
  color: var(--text);
}
.btn-ghost:hover { color: var(--text); border-color: var(--steel-2); background: var(--surface-2); }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* status badge: beta = orange, dev = steel */
.status-badge, .beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 4px 11px;
  background: var(--accent-soft);
  white-space: nowrap;
}
.status-badge .dot, .beta-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.status-badge.is-dev {
  color: var(--steel-hi);
  border-color: var(--steel);
  background: var(--steel-soft);
}
.status-badge.is-dev .dot { background: var(--steel-hi); box-shadow: none; }

/* format chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chip {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 6px;
  padding: 2px 8px;
}

/* ---------- artwork ---------- */
.hero-visual {
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8);
}
.hero-visual .art, .hero-visual img { display: block; width: 100%; height: auto; }
.hv-caption {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-mute);
}
.hv-caption li { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 10px; height: 10px; border-radius: 2px; display: inline-block; background: var(--steel); }
.swatch.sw-light { background: #c8d6e2; }
.swatch.sw-steel { background: #5f7386; }
.swatch.sw-accent { background: var(--accent); }

/* simple window frame for real screenshots */
.window {
  border: 1px solid var(--border-2);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 18px 40px -24px rgba(0,0,0,0.9);
}
.window-bar {
  display: flex; gap: 6px; align-items: center;
  height: 22px; padding: 0 10px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.window-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-2); display: block; }
.window img { display: block; width: 100%; height: auto; }

/* ---------- generic band ---------- */
.band { border-top: 1px solid var(--border); background: var(--bg); }
.band-soft { background:
  linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }

/* problem / solution */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.split .sol { position: relative; padding-left: 22px; }
.split .sol::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-lo));
}

/* ---------- feature cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color .2s, background .2s;
}
.card:hover { border-color: var(--border-2); background: var(--surface-2); }
.card .ic {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid rgba(255,125,51,0.25);
  margin-bottom: 16px;
}
.card .ic svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; }
.card p { margin: 0; font-size: 0.96rem; }

/* ---------- product grid (start page) ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 34px;
}
.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, background .2s, transform .2s;
}
.pcard:hover { border-color: var(--border-2); background: var(--surface-2); transform: translateY(-2px); }
.pcard:focus-within { border-color: var(--accent); }
.pcard-media {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  padding: 18px;
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.pcard-media .art { display: block; width: 100%; height: 100%; }
.pcard-media .window { width: 100%; }
/* screenshot cards: deliberate crop at the bottom with a soft fade */
.pcard-media.is-shot { position: relative; place-items: start center; padding: 18px 18px 0; }
.pcard-media.is-shot .window { border-bottom: 0; border-radius: 10px 10px 0 0; box-shadow: none; }
.pcard-media.is-shot::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  background: linear-gradient(180deg, rgba(13,15,20,0) 0%, var(--bg-soft) 92%);
  pointer-events: none;
}
.pcard-body { display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 24px; flex: 1; }
.pcard-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.pcard h3 { font-size: 1.3rem; margin: 0; }
.pcard h3 a { color: var(--text); }
.pcard h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.pcard h3 a:focus-visible { outline: none; }
.pcard h3 a:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; }
.pcard p { margin: 0; font-size: 0.96rem; }
.pcard-foot {
  margin-top: auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.pcard-dl { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.04em; color: var(--text-mute); }
.pcard-dl.is-ready { color: var(--accent); }
.pcard-more { font-weight: 600; font-size: 0.92rem; color: var(--accent); }

/* ---------- "how we work" points ---------- */
.points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}
.points li {
  border-top: 2px solid var(--border-2);
  padding-top: 16px;
}
.points li:first-child { border-top-color: var(--accent); }
.points h3 { font-size: 1.02rem; }
.points p { margin: 0; font-size: 0.94rem; }

/* support band */
.support {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-2);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.support h2 { font-size: 1.5rem; margin: 0 0 6px; }
.support p { margin: 0; max-width: 60ch; }
.inline-support { margin-top: 18px; font-size: 0.92rem; color: var(--text-mute); }

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
}
.step .num {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.step p { margin: 0; font-size: 0.95rem; }

/* honest block */
.honest {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.honest > svg { flex: 0 0 auto; width: 20px; height: 20px; stroke: var(--accent); fill: none; margin-top: 3px; }
.honest h3 { margin: 0 0 8px; font-size: 1.02rem; }
.honest ul { margin: 0; padding-left: 18px; }
.honest li { margin: 6px 0; }
.honest p { margin: 0; }

/* state of things (dev products) */
.forum-hint { margin: 22px 0 0; font-size: 0.94rem; }
.forum-hint a { display: inline-flex; align-items: center; min-height: var(--tap); }

.state {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 30px;
}
.state > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px;
}
.state ul { list-style: none; margin: 0; padding: 0; }
.state li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.state li:last-child { border-bottom: 0; }
.state li svg { flex: 0 0 auto; width: 16px; height: 16px; fill: none; margin-top: 5px; stroke: var(--steel-hi); }
.state .is-checked li svg { stroke: var(--accent); }

/* ---------- download ---------- */
.dl-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 30px;
}
.dl-card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dl-card.is-pending { border-style: dashed; }
.dl-file {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 8px;
  min-width: 0;
}
.dl-file .fico {
  width: 46px; height: 46px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid rgba(255,125,51,0.25);
}
.dl-card.is-pending .fico { background: var(--steel-soft); border-color: var(--border-2); }
.dl-file .fico svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; }
.dl-card.is-pending .fico svg { stroke: var(--steel-hi); }
.dl-file .fname { font-weight: 650; color: var(--text); font-size: 1.05rem; overflow-wrap: anywhere; }
.dl-file .fmeta { font-family: var(--mono); font-size: 0.8rem; color: var(--text-mute); }
.dl-sha {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-mute);
  word-break: break-all;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  margin: 14px 0 20px;
}
.dl-sha b { color: var(--text-dim); font-weight: 600; }
.dl-card .btn-primary { align-self: flex-start; }
.dl-note { margin: 16px 0 0; font-size: 0.88rem; color: var(--text-mute); }
.dl-note strong { color: var(--accent); }
.dl-links { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 8px; font-size: 0.92rem; }
.dl-links a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 2px; }

.req {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px;
}
.req h3 { margin-bottom: 14px; }
.req ul { list-style: none; margin: 0; padding: 0; }
.req li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 7px 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.req li:last-child { border-bottom: 0; }
.req li svg { flex: 0 0 auto; width: 16px; height: 16px; stroke: var(--accent); fill: none; margin-top: 5px; }

/* downloads overview */
.dl-list { display: grid; gap: 34px; margin-top: 30px; }
.dl-entry h2 { font-size: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 4px; }
.dl-entry h2 a { color: var(--text); }
.dl-entry h2 a:hover { color: var(--accent-hi); }
.dl-entry .dl-grid { margin-top: 16px; }
.devlist { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.devlist li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.devlist a { font-weight: 650; color: var(--text); min-height: var(--tap); display: inline-flex; align-items: center; }
.devlist a:hover { color: var(--accent-hi); }
.devlist p { margin: 0; flex: 1 1 280px; font-size: 0.94rem; }

/* install / gatekeeper note */
.note-box {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
}
.note-box > h2, .note-box > h3 { color: var(--text); display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin: 0 0 6px; }
.note-box > h2 svg, .note-box > h3 svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; flex: 0 0 auto; }
.kbd {
  font-family: var(--mono);
  font-size: 0.82em;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--text);
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 40px 0 46px;
  color: var(--text-mute);
  font-size: 0.9rem;
}
.foot-row {
  display: flex; flex-wrap: wrap; gap: 8px 26px;
  align-items: center; justify-content: space-between;
}
.site-footer .foot-brand { letter-spacing: 0.22em; font-weight: 700; color: var(--text-dim); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 4px; }
.foot-links a {
  display: inline-flex; align-items: center;
  min-height: var(--tap);
  padding: 0 8px;
  color: var(--text-dim);
}
.foot-links a:hover { color: var(--text); }
.foot-tm { margin: 18px 0 0; font-size: 0.78rem; color: var(--text-mute); max-width: 90ch; line-height: 1.55; }

/* =========================================================
   DOC / PROSE PAGES (manuals, legal)
   ========================================================= */
.doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 54px 24px 90px;
  position: relative;
  z-index: 1;
}
.doc .backrow {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px 16px; margin-bottom: 30px; flex-wrap: wrap;
}
.doc .back {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: var(--tap);
  color: var(--text-dim); font-size: 0.9rem;
}
.doc .back:hover { color: var(--text); }
.doc .back svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.doc h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 6px 0 14px;
  font-weight: 750;
}
.doc .subtitle {
  font-family: var(--mono);
  font-size: 0.82rem; letter-spacing: 0.1em;
  color: var(--accent); text-transform: uppercase;
  margin: 0 0 34px;
}
.doc .draft {
  font-size: 0.9rem;
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 0 0 26px;
}
.prose h2 {
  font-size: 1.5rem; margin: 46px 0 14px;
  padding-top: 18px; border-top: 1px solid var(--border);
  letter-spacing: -0.01em;
}
.prose h2:first-child, .prose h1 + h2 { border-top: 0; padding-top: 0; }
.prose h3 { font-size: 1.1rem; margin: 26px 0 8px; color: var(--text); }
.prose h4 { font-size: 1rem; margin: 22px 0 6px; color: var(--text); }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; color: var(--text-dim); }
.prose li { margin: 6px 0; }
.prose li > ul, .prose li > ol { margin: 6px 0 6px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--accent-hi);
  overflow-wrap: anywhere;
}
.prose pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  overflow-x: auto;
  margin: 0 0 18px;
  font-size: 0.86rem;
  line-height: 1.5;
}
.prose pre code { background: none; border: 0; padding: 0; color: var(--text); overflow-wrap: normal; }
.prose blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  color: var(--text-dim);
}
.prose blockquote strong { color: var(--accent-hi); }
.prose blockquote p:last-child { margin-bottom: 0; }
.table-scroll { overflow-x: auto; margin: 0 0 22px; }
.prose table {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
  font-size: 0.92rem;
}
.prose th, .prose td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-dim);
}
.prose thead th {
  color: var(--text);
  font-weight: 650;
  border-bottom: 1px solid var(--border-2);
  background: var(--surface);
}
.prose tbody tr:hover { background: var(--surface); }
.prose td code { white-space: nowrap; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 30px 0; }
.note-box.prose > :last-child { margin-bottom: 0; }
.note-box.prose > h2 { margin: 0 0 10px; padding: 0; border: 0; font-size: 1.15rem; }
.doc.prose hr { display: none; }
.note-box + .note-box { margin-top: 18px; }
.doc.prose h2:first-of-type { border-top: 0; padding-top: 0; }
.note-box.prose h3 { margin-top: 18px; }
.doc .docfoot {
  margin-top: 46px; padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text-mute);
  font-family: var(--mono);
}

/* 404 */
.notfound { padding: 90px 0 110px; }
.notfound .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 10px; }
.notfound h1, .notfound .nf-title { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.15; margin: 0 0 10px; font-weight: 650; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .cards { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .points { grid-template-columns: 1fr 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
  .state { grid-template-columns: 1fr; }
  .notfound .pair { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { gap: 6px; }
  .brand > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand .mark { width: 30px; height: 30px; }
  .nav { gap: 0; }
  .nav a.navlink { padding: 0 8px; font-size: 0.9rem; }
  .langswitch { margin-left: 4px; }
  .cta-row { gap: 10px; }
  .cta-row .btn { width: 100%; }
  .points { grid-template-columns: 1fr; }
  .pcard-body { padding: 18px 18px 20px; }
  .dl-card { padding: 24px 20px; }
  .dl-card .btn-primary { align-self: stretch; }
  .doc { padding: 36px 16px 70px; }
  .support { padding: 22px 20px; }
}

/* ---------- artwork animation ---------- */
.hv-carve {
  transform-box: fill-box;
  transform-origin: center top;
  animation: hvCarve 4.2s ease-in-out infinite;
}
@keyframes hvCarve {
  0%, 100% { transform: scaleY(0.30); }
  45%, 60% { transform: scaleY(1); }
}
.hv-bar {
  transform-box: fill-box;
  transform-origin: center top;
  animation: hvBar 4.2s ease-in-out infinite;
}
.hv-bar.b1 { animation-delay: 0s; }
.hv-bar.b2 { animation-delay: 0.12s; }
.hv-bar.b3 { animation-delay: 0.24s; }
.hv-bar.b4 { animation-delay: 0.16s; }
@keyframes hvBar {
  0%, 100% { transform: scaleY(0.16); opacity: 0.55; }
  45%, 60% { transform: scaleY(1); opacity: 1; }
}
.hv-wave-pulse { animation: hvWave 3.6s ease-in-out infinite; }
@keyframes hvWave {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
.art-flow {
  stroke-dasharray: 4 12;
  animation: artFlow 1.8s linear infinite;
}
.art-flow.is-back { animation-direction: reverse; }
@keyframes artFlow {
  to { stroke-dashoffset: -32; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hv-carve { transform: scaleY(0.7); }
  .hv-bar { transform: scaleY(0.7); opacity: 0.85; }
  .pcard:hover { transform: none; }
}
