:root {
  --nits-page: #f8f8f6;
  --nits-paper: #ffffff;
  --nits-soft: #f1f1ee;
  --nits-soft-2: #e6e6e1;
  --nits-ink: #171817;
  --nits-ink-soft: #4f5551;
  --nits-muted: #636965;
  --nits-faint: #626762;
  --nits-line: #dedfda;
  --nits-line-strong: #b8bcb6;
  --nits-accent: #8d5a16;
  --nits-accent-on: #ffffff;
  --nits-accent-soft: #f3e7d6;
  --nits-image-shadow: rgba(24, 31, 27, 0.09);
  --nits-closing-a: #eeeeeb;
  --nits-closing-b: #f6f3ee;
  --nits-closing-glow: rgba(141, 90, 22, 0.1);
  --nits-max: 1120px;
}

:root[data-resolved-theme="dark"] {
  --nits-page: #101215;
  --nits-paper: #191c20;
  --nits-soft: #171b1e;
  --nits-soft-2: #262b2f;
  --nits-ink: #f4f3ef;
  --nits-ink-soft: #c6c7c2;
  --nits-muted: #9aa19c;
  --nits-faint: #858b86;
  --nits-line: #2f333a;
  --nits-line-strong: #4d525b;
  --nits-accent: #d9922f;
  --nits-accent-on: #17140e;
  --nits-accent-soft: #2a2015;
  --nits-image-shadow: rgba(0, 0, 0, 0.55);
  --nits-closing-a: #151a1d;
  --nits-closing-b: #221c14;
  --nits-closing-glow: rgba(217, 146, 47, 0.09);
}

html[data-contrast="high"][data-resolved-theme="light"],
html[data-contrast="high"][data-resolved-theme="dark"] {
  --nits-line: var(--nits-ink);
  --nits-line-strong: var(--nits-ink);
  --nits-muted: var(--nits-ink-soft);
}

html[data-contrast="high"][data-resolved-theme="light"] {
  --nits-accent: #000000;
  --nits-accent-on: #ffffff;
  --nits-accent-ink: #111111;
  --accent: #000000;
  --accent-ink: #111111;
  --muted: #111111;
}
html[data-contrast="high"][data-resolved-theme="light"] .display-options .mode-button {
  border-color: var(--nits-line-strong);
  background: var(--nits-page);
  color: var(--nits-muted);
}
html[data-contrast="high"][data-resolved-theme="light"] .display-options .mode-button[aria-pressed="true"] {
  background: var(--nits-ink);
  color: var(--nits-page);
}

body.product-nits.nits-editorial {
  letter-spacing: -0.012em;
  background: var(--nits-page);
}

.nits-editorial main { width: 100%; max-width: none; margin: 0; }
.nits-shell { width: min(calc(100% - 40px), var(--nits-max)); }
.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; }

.nits-site-head {
  min-height: 72px;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
}
.nits-wordmark { gap: 10px; font-size: 14px; font-weight: 700; }
.nits-wordmark img { width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 5px 14px var(--nits-image-shadow); }
.nits-site-nav { gap: 32px; }
.nits-site-nav a { min-height: 42px; display: inline-flex; align-items: center; color: var(--nits-ink-soft); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.nits-head-actions { gap: 8px; }
.nits-icon-button,
.display-options > summary.nits-icon-button {
  width: 42px;
  height: 42px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--nits-line);
  border-radius: 50%;
  background: var(--nits-paper);
  color: var(--nits-ink-soft);
  cursor: pointer;
  list-style: none;
}
.nits-icon-button svg { width: 16px; height: 16px; }
.display-options[open] > summary.nits-icon-button { border-color: var(--nits-accent); }
body.product-nits.nits-editorial .nits-theme-button {
  background: var(--nits-ink);
  border-color: var(--nits-ink);
  color: var(--nits-page);
}
.nits-head-download { min-height: 42px; display: inline-flex; align-items: center; padding: 0 15px; border-radius: 999px; background: var(--nits-accent); color: var(--nits-accent-on) !important; font-size: 12px; font-weight: 680; text-decoration: none; }
.display-options .mode-toolbar { border-radius: 12px; box-shadow: 0 18px 45px var(--nits-image-shadow); }
.display-options .mode-button:hover { color: var(--nits-ink); background: var(--nits-soft-2); }
.nits-editorial .file-picker.dragging { border-color: var(--nits-ink); background: var(--nits-paper); color: var(--nits-ink); }

.nits-hero {
  min-height: 700px;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  gap: 48px;
  padding: 82px 0 70px;
}
.nits-hero h1 { font-size: clamp(50px, 5vw, 72px); line-height: 1.14; letter-spacing: -0.02em; font-weight: 500; word-break: keep-all; }
:root[data-site-lang="en"] .nits-hero h1 { font-size: clamp(44px, 4vw, 58px); letter-spacing: -0.035em; }
.nits-hero-title-line.is-muted { color: var(--nits-faint); }
.nits-hero-lead { max-width: 25em; margin-top: 25px; color: var(--nits-muted); font-size: 15px; line-height: 1.75; word-break: keep-all; }
.nits-hero-actions { margin-top: 30px; }
.nits-hero-cta,
.nits-download-button { min-height: 54px; gap: 28px; padding: 0 20px; border-radius: 999px; background: var(--nits-paper); box-shadow: 0 8px 28px var(--nits-image-shadow); font-size: 13px; font-weight: 650; }
.nits-hero-cta > span[aria-hidden], .nits-download-button > span[aria-hidden] { color: var(--nits-accent); font-size: 17px; }
.nits-hero-meta { gap: 9px 18px; margin-top: 17px; color: var(--nits-faint); font-size: 13px; }
.nits-direct-download { min-height: 44px; display: inline-flex; align-items: center; padding-inline: 4px; color: var(--nits-accent) !important; font-weight: 650; text-decoration: none; }
.nits-hero-visual { position: relative; height: auto; aspect-ratio: 1680 / 1240; margin: 0; overflow: hidden; border-radius: 16px; background: var(--nits-soft); }
.nits-hero-visual img { width: 100%; height: 100%; display: block; object-fit: contain; border-radius: 12px; box-shadow: 0 18px 50px var(--nits-image-shadow); }
.nits-hero-visual figcaption { position: absolute; right: 12px; bottom: 12px; padding: 7px 10px; border-radius: 999px; background: color-mix(in srgb, var(--nits-paper) 88%, transparent); color: var(--nits-faint); font: 13px/1.25 ui-monospace, monospace; backdrop-filter: blur(8px); }
:root[data-resolved-theme="dark"] .nits-hero-visual,
:root[data-resolved-theme="dark"] .nits-feature-visual { box-shadow: 0 0 0 1px var(--nits-line); }
.nits-editorial-sections { padding: 56px 0 8px; }
.nits-feature-row,
.nits-feature-row.is-reverse { grid-template-columns: minmax(0, 61fr) minmax(0, 39fr); gap: 46px; margin-bottom: 30px; }
.nits-feature-row.is-reverse { grid-template-columns: minmax(0, 39fr) minmax(0, 61fr); }
.nits-feature-visual { height: 340px; margin: 0; border-radius: 16px; background: var(--nits-soft); }
.nits-feature-visual img { width: 100%; height: 100%; display: block; object-fit: cover; }
.nits-feature-row:nth-child(1) img { object-position: 50% 44%; }
.nits-feature-row:nth-child(2) img { object-position: 50% 36%; }
.nits-feature-row:nth-child(3) img { object-position: 50% 34%; }
.nits-feature-copy { padding: 30px 0; }
.nits-feature-number { margin-bottom: 20px; font-size: 44px; font-weight: 450; }
.nits-feature-copy h2 { max-width: 9.5em; font-size: clamp(26px, 3vw, 38px); line-height: 1.26; letter-spacing: -0.015em; font-weight: 600; word-break: keep-all; }
.nits-feature-copy p { max-width: 25em; color: var(--nits-muted); font-size: 15px; line-height: 1.75; word-break: keep-all; }

.nits-modes { padding: 54px 0 72px; }
.nits-mode-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.nits-mode-card { min-height: 190px; display: flex; flex-direction: column; justify-content: center; padding: 26px 20px; border-radius: 12px; background: var(--nits-soft); }
.nits-mode-card svg { width: 42px; height: 42px; margin-bottom: 28px; color: var(--nits-accent); }
.nits-mode-card strong { display: block; font-size: 15px; }
.nits-mode-card > span { margin-top: 7px; color: var(--nits-muted); font-size: 13px; line-height: 1.55; }

.nits-download-wrap { padding: 0 0 72px; }
.nits-download-banner { min-height: 155px; padding: 30px 42px; border-radius: 14px; background: radial-gradient(circle at 74% 32%, var(--nits-closing-glow), transparent 28%), linear-gradient(105deg, var(--nits-closing-a), var(--nits-closing-b)); }
.nits-download-banner h2 { font-size: 30px; line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; }
.nits-download-banner p { margin-top: 9px; color: var(--nits-muted); font-size: 13px; line-height: 1.65; }
.nits-download-secondary { color: var(--nits-faint); }
.nits-release-facts { margin-top: 28px; }
.nits-verify-tools { margin-top: 12px; }
.nits-faq { padding-top: 40px; }

:where(.nits-editorial a, .nits-editorial button, .nits-editorial summary):focus-visible { outline: 2px solid var(--nits-accent); outline-offset: 3px; }
html[data-contrast="high"] .nits-hero-cta,
html[data-contrast="high"] .nits-download-button { box-shadow: 0 0 0 2px var(--nits-line-strong), 0 8px 28px var(--nits-image-shadow); }
html[data-text-size="large"] .nits-site-nav a,
html[data-text-size="large"] .nits-hero-meta { font-size: 15px; }
html[data-text-size="large"] .nits-hero-cta,
html[data-text-size="large"] .nits-download-button { font-size: 16px; }

@media (min-width: 901px) {
  .display-options .mode-toolbar { top: calc(100% + 10px); }
  .nits-release-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  html[data-text-size="large"] .nits-head-download { font-size: 15px; }
}

@media (min-width: 561px) and (max-width: 900px) {
  .nits-release-fact + .nits-release-fact { padding-left: 0; border-left: 0; }
  .nits-release-fact:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--nits-line); }
}

@media (hover: hover) {
  .nits-icon-button, .nits-head-download, .nits-hero-cta, .nits-download-button { transition: transform 0.22s cubic-bezier(.22,.61,.36,1), box-shadow 0.22s ease, border-color 0.18s ease; }
  .nits-icon-button:hover { transform: translateY(-1px); border-color: var(--nits-faint); }
  .display-options > summary.nits-icon-button:hover { color: var(--nits-ink); border-color: var(--nits-faint); }
  .nits-head-download:hover, .nits-hero-cta:hover, .nits-download-button:hover { transform: translateY(-2px); box-shadow: 0 14px 34px var(--nits-image-shadow); }
}

@media (max-width: 900px) {
  .nits-shell { width: min(calc(100% - 28px), var(--nits-max)); }
  .nits-site-head { grid-template-columns: 1fr auto; padding-top: 8px; }
  .nits-site-nav { grid-row: 2; grid-column: 1 / -1; display: flex; justify-content: start; gap: 8px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
  .nits-site-nav::-webkit-scrollbar { display: none; }
  .nits-site-nav a { flex: 0 0 auto; min-height: 42px; padding: 0 12px; border-radius: 999px; background: var(--nits-paper); }
  .nits-head-actions { gap: 6px; }
  .nits-icon-button, .display-options > summary.nits-icon-button { width: 44px; height: 44px; min-height: 44px; }
  .nits-copy-button { min-height: 44px; }
  .nits-head-download { min-height: 44px; padding: 0 12px; font-size: 0; }
  .nits-head-download::after { content: "DMG"; font-size: 12px; }
  html[data-text-size="large"] .nits-head-download::after { font-size: 15px; }
  .nits-hero { grid-template-columns: 1fr; min-height: auto; gap: 46px; padding: 62px 0; }
  .nits-hero h1 { font-size: clamp(48px, 14vw, 66px); }
  :root[data-site-lang="en"] .nits-hero h1 { font-size: 40px; }
  .nits-feature-row, .nits-feature-row.is-reverse { grid-template-columns: 1fr; gap: 0; margin-bottom: 54px; }
  .nits-feature-row.is-reverse .nits-feature-copy, .nits-feature-row.is-reverse .nits-feature-visual { grid-column: 1; grid-row: auto; }
  .nits-feature-visual { grid-row: 1; height: auto; aspect-ratio: 1680 / 1240; }
  .nits-feature-copy { grid-row: 2; }
  .nits-feature-visual img { object-fit: contain; }
  .nits-mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nits-download-banner { align-items: flex-start; flex-direction: column; padding: 28px 24px; }
  .nits-download-button { align-self: stretch; justify-content: space-between; }
}

@media (max-width: 460px) {
  .nits-wordmark-label { display: none; }
  .nits-head-actions { margin-left: -4px; }
  .nits-hero-meta { align-items: flex-start; flex-direction: column; }
  .nits-mode-card { min-height: 175px; padding: 22px 16px; }
}

@media (max-width: 560px) {
  .nits-hero h1 { font-size: clamp(38px, 10vw, 44px); }
}

@media (prefers-reduced-motion: reduce) {
  .nits-editorial * { transition: none !important; }
}
