/* Shapeshifter website. Plain CSS, no build step. Colours are tokens so light and dark stay in step. */

:root {
  --bg: #f7f7f5;
  --bg-alt: #efefeb;
  --surface: #ffffff;
  --surface-sunken: #f1f1ee;
  --text: #15171c;
  --text-muted: #525866;
  --line: #e0e0db;
  --line-strong: #c9c9c3;
  --accent: #0f62b8;
  --accent-hover: #0b549f;
  --accent-ink: #ffffff;
  --accent-soft: #e5eef9;
  --ok: #0f7b4a;
  --ok-soft: #e2f3ea;
  --warn: #8a5300;
  --warn-soft: #fbefd9;
  --focus: #0f62b8;
  --key-bg: #ffffff;
  --key-edge: #c3c4c0;
  --key-shadow: #b9bab5;
  --shadow-lg: 0 1px 2px rgb(20 24 30 / 0.06), 0 12px 32px -8px rgb(20 24 30 / 0.16), 0 40px 80px -24px rgb(20 24 30 / 0.18);
  --shadow-sm: 0 1px 2px rgb(20 24 30 / 0.06), 0 4px 12px -4px rgb(20 24 30 / 0.08);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --radius: 14px;
  --radius-lg: 20px;
  --container: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1013;
    --bg-alt: #13161a;
    --surface: #181b20;
    --surface-sunken: #111317;
    --text: #eceef1;
    --text-muted: #a4aab4;
    --line: #262a31;
    --line-strong: #363b44;
    --accent: #72b6ff;
    --accent-hover: #93c7ff;
    --accent-ink: #061a30;
    --accent-soft: #14243a;
    --ok: #6fd3a0;
    --ok-soft: #12281e;
    --warn: #f2bd62;
    --warn-soft: #2d2212;
    --focus: #93c7ff;
    --key-bg: #22262d;
    --key-edge: #3b414b;
    --key-shadow: #0a0b0d;
    --shadow-lg: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px -8px rgb(0 0 0 / 0.5), 0 40px 80px -24px rgb(0 0 0 / 0.6);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4), 0 4px 12px -4px rgb(0 0 0 / 0.4);
  }
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.38em;
  overflow-wrap: anywhere;
}

kbd {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.82em;
  font-weight: 600;
  line-height: 1;
  min-width: 1.9em;
  text-align: center;
  padding: 0.32em 0.5em 0.36em;
  color: var(--text);
  background: var(--key-bg);
  border: 1px solid var(--key-edge);
  border-bottom-width: 2px;
  border-radius: 6px;
  white-space: nowrap;
  vertical-align: 0.06em;
}

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

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

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand:hover { color: var(--text); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover { color: var(--text); background: var(--surface-sunken); }
.site-nav .nav-icon { padding: 0 10px; }

@media (max-width: 900px) {
  .nav-optional { display: none; }
}

/* Shared section styles */

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 {
  font-size: clamp(1.85rem, 1.2rem + 2.4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.028em;
}
.section-lede {
  margin-top: 18px;
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 62ch;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.button:hover { text-decoration: none; }
.button:active { transform: translateY(1px); }

.button-primary { background: var(--accent); color: var(--accent-ink); }
.button-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }

.button-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
}
.button-secondary:hover { color: var(--text); border-color: var(--text-muted); }

.button-label { display: flex; flex-direction: column; align-items: flex-start; }
.button-label small { font-weight: 500; font-size: 0.8rem; opacity: 0.85; }

.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Hero */

.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 8vw, 104px); overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px 64px;
  align-items: end;
}

.hero h1 {
  font-size: clamp(3rem, 1.6rem + 6vw, 6rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.tagline {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1rem + 1.4vw, 1.95rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-muted);
}

.lede { font-size: 1.12rem; color: var(--text-muted); max-width: 52ch; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta .button-primary { min-height: 56px; padding: 8px 24px 8px 20px; }

.cta-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.cta-meta a { font-weight: 600; }

.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.version-pill::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
}

.hero-shot {
  margin: clamp(40px, 6vw, 64px) 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.hero-shot img { width: 100%; }

/* How it works */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px 26px;
}

.step-keys {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 104px;
  margin: -4px -2px 20px;
  padding: 0 18px 14px;
  border-radius: 10px;
  background: var(--surface-sunken);
  border: 1px solid var(--line);
}

.keycap {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  height: 48px;
  padding: 0 12px;
  font-weight: 650;
  font-size: 0.98rem;
  color: var(--text);
  background: var(--key-bg);
  border: 1px solid var(--key-edge);
  border-radius: 10px;
  box-shadow: 0 3px 0 var(--key-shadow);
}

/* A held key sits lower and carries the accent; a released one springs back. */
.keycap-held {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--key-shadow);
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.keycap-held::after {
  content: "hold";
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.keycap-release::after {
  content: "release";
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.keycap-release { border-style: dashed; border-bottom-style: solid; }

.plus, .or { color: var(--text-muted); font-weight: 600; font-size: 0.9rem; }
.or { margin: 0 2px; }

.step h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.012em;
  margin-bottom: 10px;
}

.step-number {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-size: 0.78rem;
  font-weight: 700;
  transform: translateY(-2px);
}

.step p { color: var(--text-muted); font-size: 0.98rem; }

.reference {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  gap: 16px 48px;
  align-items: start;
}
.reference-title { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.012em; padding-top: 12px; }
.reference .fine-print { grid-column: 2; }

.key-table, .data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.key-table th, .key-table td,
.data-table th, .data-table td {
  text-align: left;
  vertical-align: top;
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid var(--line);
}
.key-table thead th, .data-table thead th {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 0;
}
.key-table td:first-child { white-space: nowrap; width: 44%; }
.key-table td:last-child { color: var(--text-muted); }

.fine-print { font-size: 0.92rem; color: var(--text-muted); }

/* Features */

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature { background: var(--surface); padding: 28px 28px 30px; }

.feature-icon {
  width: 28px; height: 28px;
  margin-bottom: 18px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 { font-size: 1.1rem; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 0.98rem; }

/* Actions */

.kinds {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 16px;
}

.kind {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
}

.kind-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.kind-head h3 { font-size: 1.08rem; font-weight: 650; letter-spacing: -0.01em; }
.kind > p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 16px; }

.kind-icon {
  flex: none;
  width: 36px; height: 36px;
  padding: 7px;
  border-radius: 10px;
  background: var(--accent-soft);
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kind-actions {
  list-style: none;
  margin: 0;
  padding: 6px;
  display: grid;
  gap: 2px;
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.kind-actions li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 0.93rem;
}

/* The first action is the default: releasing the key right away runs it. */
.kind-actions li:first-child { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.kind-actions li:first-child .action-icon { stroke: currentColor; }

.action-icon {
  flex: none;
  width: 18px; height: 18px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.actions dt { display: flex; align-items: center; gap: 8px; }
.actions dt .action-icon { stroke: var(--accent); }

.actions-block {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  gap: 24px 48px;
}
.actions-intro h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.012em; margin-bottom: 10px; }
.actions-intro p { color: var(--text-muted); }

.actions {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}
.actions > div { padding: 14px 0 16px; border-top: 1px solid var(--line-strong); }
.actions dt { font-weight: 650; }
.actions dd { margin: 2px 0 0; color: var(--text-muted); font-size: 0.96rem; }

/* Screenshots and tabs */

.tab-list {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 28px;
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: 100%;
  overflow-x: auto;
}
.tab-list[hidden] { display: none; }

.tab-list [role="tab"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  white-space: nowrap;
}
.tab-list [role="tab"]:hover { color: var(--text); }
.tab-list [role="tab"][aria-selected="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.tab-panel + .tab-panel { margin-top: 72px; }
.js .tab-panel + .tab-panel { margin-top: 0; }
.tab-panel[hidden] { display: none; }

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin-bottom: 20px;
}
.panel-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.panel-head h3 img { width: 32px; height: 32px; }
.look-name { color: var(--text-muted); font-weight: 500; }
.panel-head p { color: var(--text-muted); }
/* With JavaScript the tab already names the platform. */
.js .panel-head h3 img { display: none; }

.shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.shot img { width: 100%; }
.shot-main { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

.shot figcaption {
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
}

.shot-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}
.shot-row .shot { display: flex; flex-direction: column; }
.shot-aside { display: grid; gap: 20px; }
.shot-note { color: var(--text-muted); font-size: 0.98rem; padding: 0 4px; max-width: 46ch; }


/* Privacy */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 32px 64px;
  align-items: start;
}
.split .section-head { margin-bottom: 0; }

.privacy-points { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.privacy-point {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.privacy-point h3 { font-size: 1.12rem; font-weight: 650; margin-bottom: 8px; }
.privacy-point > p { color: var(--text-muted); }
.privacy-data { margin-top: 20px; }

.plain-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.plain-list li { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: baseline; gap: 4px 12px; font-size: 0.95rem; color: var(--text-muted); }
.plain-list strong { font-weight: 650; color: var(--text); }
.plain-list code { overflow-wrap: anywhere; background: none; border: 0; padding: 0; color: var(--text); }

.table-scroll { overflow-x: auto; margin-top: 6px; }
.data-table { font-size: 0.93rem; }
.data-table th[scope="row"] { font-weight: 650; white-space: nowrap; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table td { color: var(--text-muted); }
.data-table code { background: none; border: 0; padding: 0; font-size: 0.88em; color: var(--text); overflow-wrap: normal; white-space: nowrap; }

/* Platforms */

.platforms {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.platform {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px 26px;
}
.platform-limited { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }

.platform-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.platform-head img { width: 40px; height: 40px; }
.platform h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
.platform-arch { font-size: 0.9rem; color: var(--text-muted); }
.platform > p { color: var(--text-muted); font-size: 0.98rem; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 650;
  white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-ok { color: var(--ok); background: var(--ok-soft); }
.status-limited { color: var(--warn); background: var(--warn-soft); }

/* Downloads */

.downloads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.download-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.download-group.is-current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.download-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 650;
  margin-bottom: 16px;
}
.download-group h3 img { width: 28px; height: 28px; }
.download-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.download-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 8px 14px 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.download-link::after {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M10 3v10m0 0-4-4m4 4 4-4M4 16h12'/%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 20 20'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M10 3v10m0 0-4-4m4 4 4-4M4 16h12'/%3E%3C/svg%3E") center / contain no-repeat;
  color: var(--accent);
}
.download-link:hover { color: var(--text); border-color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.download-link span { display: flex; flex-direction: column; }
.download-link small { margin-left: auto; font-weight: 500; font-size: 0.85rem; color: var(--text-muted); }

.download-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.downloads-more {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--text-muted);
}
.downloads-more a { font-weight: 600; }

/* Open source */

.oss {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px 64px;
  align-items: center;
}
.oss-text h2 {
  font-size: clamp(1.85rem, 1.2rem + 2.4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  margin-bottom: 18px;
}
.oss-text > p:not(.eyebrow) { color: var(--text-muted); font-size: 1.1rem; max-width: 58ch; }
.oss-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.oss-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.oss-card h3 { font-size: 1.15rem; font-weight: 650; margin-bottom: 8px; }
.oss-card p { color: var(--text-muted); margin-bottom: 18px; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 56px;
  font-size: 0.94rem;
  color: var(--text-muted);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: start;
}
.footer-brand p { margin-top: 8px; }
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer-nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.footer-nav a:hover { text-decoration: underline; }
.footer-license { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); }

/* Responsive */

@media (max-width: 1040px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reference, .actions-block { grid-template-columns: minmax(0, 1fr); }
  .reference .fine-print { grid-column: auto; }
  .reference-title { padding-top: 0; }
  .downloads { grid-template-columns: minmax(0, 1fr); }
  .download-group ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .hero-grid, .split, .oss { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { align-items: start; }
  .platforms { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .steps, .features { grid-template-columns: minmax(0, 1fr); }
  .actions { grid-template-columns: minmax(0, 1fr); }
  .shot-row { grid-template-columns: minmax(0, 1fr); }
  .accent-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-group ul { grid-template-columns: minmax(0, 1fr); }
  .cta .button { flex: 1 1 100%; }
  .hero-shot, .shot-main { border-radius: var(--radius); }
  .key-table td:first-child { white-space: normal; width: 50%; }
  .tab-list { display: flex; }
  .tab-list[hidden] { display: none; }
  .tab-list [role="tab"] { flex: 1; justify-content: center; padding: 0 10px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .privacy-point { padding: 22px 20px; }
  .data-table thead { display: none; }
  .data-table tr, .data-table th, .data-table td { display: block; }
  .data-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .data-table tbody tr:last-child { border-bottom: 0; }
  .data-table th, .data-table td { border: 0; padding: 2px 0; }
  .data-table td::before { content: attr(data-label); display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }
  .data-table code { white-space: normal; overflow-wrap: anywhere; }
  .platform-head { grid-template-columns: auto minmax(0, 1fr); }
  .platform-head .status { grid-column: 1 / -1; justify-self: start; }
}
