/* ==========================================================================
   DX9WARE — "The eye stays open"
   Palette: void / bone / ash / ember (the iris) / blood (the veins)
   Type:    Grenze Gotisch (display) · Spectral (text) · JetBrains Mono (code bits)
   ========================================================================== */

:root {
  --void: #050304;
  --crypt: #0c0708;
  --crypt-2: #120a0b;
  --bone: #ebe2cd;
  --ash: #bcb2a2;
  --dust: #8a7f71;
  --ember: #ffa119;
  --ember-2: #ffc35a;
  --ember-ink: #1a0d00;
  --blood: #8e0f15;
  --vein: #e0453f;
  --line: rgba(235, 226, 205, 0.1);
  --line-strong: rgba(235, 226, 205, 0.2);
  --ember-line: rgba(255, 161, 25, 0.45);
  --panel: rgba(12, 6, 7, 0.86);

  /* legacy names, kept so nothing downstream breaks */
  --bg: var(--void);
  --text: var(--bone);
  --muted: var(--ash);
  --faint: var(--dust);
  --accent: var(--ember);
  --accent-2: var(--ember-2);
  --ok: #c9b98f;
  --bad: var(--vein);

  --header-h: 64px;
  --radius: 6px;
  --radius-sm: 4px;
  --display: "Grenze Gotisch", "UnifrakturMaguntia", Georgia, serif;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: var(--serif);

  --veil: 0;
  --eye-x: 50vw;
  --eye-y: 39vh;
  --eye-w: 64vw;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-width: thin;
  scrollbar-color: #4a1316 var(--void);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: #3d1013; border-radius: 99px; border: 2px solid var(--void); }
::-webkit-scrollbar-thumb:hover { background: #5c171b; }

body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p { text-wrap: pretty; }

::selection {
  background: var(--blood);
  color: var(--bone);
}

img,
svg {
  display: inline-block;
  vertical-align: middle;
}

a {
  color: var(--ember-2);
  text-decoration: underline;
  text-decoration-color: rgba(255, 195, 90, 0.35);
  text-underline-offset: 3px;
}

a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

.container {
  width: min((1120px + 2 * clamp(16px, 4vw, 40px)), 100% - 2 * clamp(16px, 4vw, 40px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 400;
  background: var(--ember);
  color: var(--ember-ink);
  padding: 8px 16px;
  font-size: 15px;
}

.skip:focus { left: 12px; top: 12px; }

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

/* ==========================================================================
   The altar: everything that lives behind the page
   ========================================================================== */

main,
.site-footer {
  position: relative;
  z-index: 2;
}

.altar,
.eye-canvas,
.veil,
.eye-fallback {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  pointer-events: none;
}

.eye-canvas { display: block; }

.altar { overflow: hidden; }

.altar-glow {
  position: absolute;
  left: var(--eye-x);
  top: var(--eye-y);
  width: calc(var(--eye-w) * 1.15);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 140, 30, 0.17) 0%, rgba(142, 15, 21, 0.13) 30%, transparent 64%);
  animation: heartbeat 1.7s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 40%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  10% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
  20% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.01); }
  28% { opacity: 0.95; transform: translate(-50%, -50%) scale(1.03); }
}

.altar-sigil {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--eye-w) * 1.34);
  aspect-ratio: 1;
  transform: translate(calc(var(--eye-x) - 50%), calc(var(--eye-y) - 50%));
  color: var(--bone);
  opacity: calc(1 - var(--veil) * 0.35);
}

.sg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sg-outer { animation: sigil-turn 300s linear infinite; }
.sg-inner { animation: sigil-turn 220s linear infinite reverse; }

@keyframes sigil-turn {
  to { transform: rotate(360deg); }
}

.altar-sigil .sg-outer circle,
.altar-sigil .sg-ticks line {
  fill: none;
  stroke: var(--bone);
  stroke-opacity: 0.13;
  stroke-width: 1.2;
}

.altar-sigil .sg-ticks line { stroke-opacity: 0.16; }

.altar-sigil .sg-text {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 8px;
  fill: var(--bone);
  fill-opacity: 0.24;
}

.altar-sigil .sg-tri {
  fill: none;
  stroke: #b3161d;
  stroke-opacity: 0.5;
  stroke-width: 1.6;
}

.altar-sigil .sg-tri-2 {
  stroke-opacity: 0.18;
  stroke-dasharray: 3 9;
}

.altar-sigil .sg-inner circle {
  fill: none;
  stroke: var(--ember);
  stroke-opacity: 0.32;
  stroke-width: 1.4;
}

.altar-sigil .sg-inner circle[fill] {
  fill: var(--ember);
  fill-opacity: 0.45;
  stroke: none;
}

.altar-sigil .sg-dash {
  stroke: var(--bone) !important;
  stroke-opacity: 0.14 !important;
  stroke-dasharray: 2 12;
}

/* the veil: vignette always, darkness behind reading content */
.veil::before,
.veil::after {
  content: "";
  position: absolute;
  inset: 0;
}

.veil::before {
  background: radial-gradient(ellipse 75% 70% at var(--eye-x) var(--eye-y), transparent 35%, rgba(3, 1, 2, 0.82) 100%);
}

.veil::after {
  background: radial-gradient(ellipse 60% 55% at var(--eye-x) var(--eye-y), rgba(4, 2, 3, 0.18), rgba(4, 2, 3, 0.6));
  opacity: var(--veil);
}

.eye-fallback {
  display: grid;
  place-items: center;
  padding-bottom: 26vh;
}

.eye-fallback svg {
  width: min(64vw, 920px);
  height: auto;
  overflow: visible;
}

@media (max-aspect-ratio: 9/10) {
  .eye-fallback svg { width: 92vw; }

}

/* film grain, lights that stutter, voices */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 300;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 .92  0 0 0 0 .85  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); }
  80% { transform: translate(5%, 4%); }
  100% { transform: translate(0, 0); }
}

.flicker {
  position: fixed;
  inset: 0;
  z-index: 310;
  pointer-events: none;
  background: #000;
  opacity: 0;
}

.flicker.on { animation: flicker 0.65s linear 1; }

@keyframes flicker {
  0% { opacity: 0; }
  6% { opacity: 0.32; }
  12% { opacity: 0; }
  44% { opacity: 0; }
  50% { opacity: 0.18; }
  58% { opacity: 0; }
  100% { opacity: 0; }
}

.whispers {
  position: fixed;
  inset: 0;
  z-index: 305;
  pointer-events: none;
  overflow: hidden;
}

.whisper {
  position: absolute;
  max-width: 320px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #d0322d;
  text-shadow: 0 0 22px rgba(208, 50, 45, 0.55), 0 0 2px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: rotate(var(--r, 0deg));
  animation: whisper 5.6s ease-in-out forwards;
}

@keyframes whisper {
  0% { opacity: 0; filter: blur(9px); transform: translateY(8px) rotate(var(--r, 0deg)); }
  22% { opacity: 0.8; filter: blur(0); }
  70% { opacity: 0.62; filter: blur(0.5px); }
  100% { opacity: 0; filter: blur(12px); transform: translateY(-10px) rotate(var(--r, 0deg)); }
}

/* leaving the page: the eye closes, the page goes dark with it */
.eye-leaving main,
.eye-leaving .site-footer,
.eye-leaving .altar {
  opacity: 0.12;
  transition: opacity 0.22s ease-in;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: linear-gradient(rgba(5, 3, 4, 0.9), rgba(5, 3, 4, 0.55));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(5, 3, 4, 0.9);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bone);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-decoration: none !important;
}

.brand-mark {
  width: 34px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(224, 69, 63, 0.35));
}

.brand b {
  color: var(--ember);
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
}

.nav > a {
  font-size: 16px;
  font-weight: 500;
  color: var(--ash);
  text-decoration: none;
  transition: color 0.18s ease;
}

.nav > a:hover,
.nav > a:focus-visible {
  color: var(--bone);
}

.nav > a.active {
  color: var(--ember);
}

.nav > a.btn-primary,
.nav > a.btn-primary:hover {
  color: var(--ember-ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2px;
  background: var(--bone);
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle span { top: 20px; }
.nav-toggle span::before { top: -6px; left: 0; }
.nav-toggle span::after { top: 6px; left: 0; }

.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn svg { flex: none; transition: transform 0.18s ease; }
.btn:hover svg[data-arrow] { transform: translateY(2px); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--ember);
  color: var(--ember-ink);
  box-shadow:
    inset 0 0 0 1px rgba(26, 13, 0, 0.25),
    0 0 0 1px rgba(255, 161, 25, 0.35),
    0 10px 30px rgba(142, 15, 21, 0.45);
}

.btn-primary:hover {
  background: var(--ember-2);
  box-shadow:
    inset 0 0 0 1px rgba(26, 13, 0, 0.25),
    0 0 0 4px rgba(255, 161, 25, 0.16),
    0 14px 46px rgba(224, 40, 34, 0.55);
}

.btn-xl {
  padding: 19px 40px;
  font-size: 19px;
}

.btn-xl.btn-pulse { animation: pulse 2.4s ease-in-out infinite; }

@keyframes pulse {
  0%, 30%, 100% { box-shadow: inset 0 0 0 1px rgba(26, 13, 0, 0.25), 0 0 0 0 rgba(224, 40, 34, 0.5), 0 10px 30px rgba(142, 15, 21, 0.45); }
  12% { box-shadow: inset 0 0 0 1px rgba(26, 13, 0, 0.25), 0 0 0 10px rgba(224, 40, 34, 0), 0 10px 30px rgba(142, 15, 21, 0.45); }
  20% { box-shadow: inset 0 0 0 1px rgba(26, 13, 0, 0.25), 0 0 0 2px rgba(224, 40, 34, 0.35), 0 10px 30px rgba(142, 15, 21, 0.45); }
  29% { box-shadow: inset 0 0 0 1px rgba(26, 13, 0, 0.25), 0 0 0 14px rgba(224, 40, 34, 0), 0 10px 30px rgba(142, 15, 21, 0.45); }
}

.btn-ghost {
  background: rgba(5, 3, 4, 0.55);
  border-color: var(--line-strong);
  color: var(--bone);
}

.btn-ghost:hover {
  border-color: var(--ember-line);
  color: var(--ember-2);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 15.5px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.stage {
  position: relative;
  width: 100%;
  isolation: isolate;
}

.stage.hero {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: flex-end;
}

.hero-scrim {
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  z-index: 1;
  background: linear-gradient(to top,
    rgba(5, 3, 4, 0.98) 0%,
    rgba(5, 3, 4, 0.9) 36%,
    rgba(5, 3, 4, 0.5) 70%,
    transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  pointer-events: none;
  padding: 120px 0 clamp(64px, 9vh, 96px);
}

.hero-content .btn,
.hero-content a {
  pointer-events: auto;
}

.hero-kicker {
  font-style: italic;
  font-size: 17px;
  color: var(--ash);
  margin-bottom: 10px;
}

.hero-kicker .dot { color: var(--blood); padding: 0 4px; }

h1.hero-title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.005em;
  margin-bottom: 18px;
  max-width: 24ch;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(5, 3, 4, 0.9);
}

.grad { color: inherit; }

.hero-sub {
  max-width: 34em;
  color: var(--ash);
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  margin-bottom: 32px;
  text-shadow: 0 1px 18px rgba(5, 3, 4, 0.95);
}

.hero-sub strong { color: var(--bone); font-weight: 600; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  list-style: none;
  font-style: italic;
  font-size: 16px;
  color: var(--ash);
}

.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* a tiny closed-and-open eye as the bullet */
.hero-badges li::before,
.check-list li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ember) 0 2.4px, var(--bone) 2.9px);
  box-shadow: 0 0 10px rgba(255, 161, 25, 0.35);
}

.hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 2;
  font-style: italic;
  font-size: 15px;
  white-space: nowrap;
  color: rgba(235, 226, 205, 0.42);
  pointer-events: none;
  user-select: none;
}

/* ==========================================================================
   Sections — chapters of the codex
   ========================================================================== */

main { counter-reset: chapter; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-style: italic;
  font-size: 15px;
  color: var(--dust);
}

.breadcrumbs a { color: var(--ash); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ember); }
.breadcrumbs .sep { color: var(--blood); }
.breadcrumbs [aria-current] { color: var(--ember); }

.section {
  position: relative;
  padding: clamp(72px, 9vw, 120px) 0;
}

.section-alt {
  background: rgba(10, 4, 5, 0.6);
  border-block: 1px solid var(--line);
}

/* a small watching eye sits on the seam between chapters */
.section-alt::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -10px;
  width: 52px;
  height: 20px;
  transform: translateX(-50%);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 20'%3E%3Cpath d='M4 10 C12 2.5 20 1 26 1 S40 2.5 48 10 C40 17.5 32 19 26 19 S12 17.5 4 10Z' fill='%23050304' stroke='%23ebe2cd' stroke-opacity='.5'/%3E%3Ccircle cx='26' cy='10' r='5' fill='%23ffa119'/%3E%3Crect x='25' y='6' width='2' height='8' rx='1' fill='%23050304'/%3E%3C/svg%3E") center / contain no-repeat;
}

.kicker {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-style: italic;
  font-size: 17px;
  color: var(--ash);
  margin-bottom: 6px;
}

.section-head .kicker::before {
  counter-increment: chapter;
  content: counter(chapter, upper-roman) ".";
  font-family: var(--serif);
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--vein);
}

/* the intro and the comment thread are not chapters of their own */
#what-is .section-head .kicker::before,
#comments .section-head .kicker::before {
  content: none;
  counter-increment: none;
}

h2 {
  font-family: var(--display);
  font-size: clamp(2.05rem, 4.2vw, 3.1rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0.005em;
  margin-bottom: 22px;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(5, 3, 4, 0.9);
}

h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--bone);
}

h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.section p { color: var(--ash); }

.section p,
.section li,
.lead {
  text-shadow: 0 1px 16px rgba(5, 3, 4, 0.95), 0 0 3px rgba(5, 3, 4, 0.8);
}

.lead {
  font-size: clamp(1.15rem, 1.8vw, 1.32rem);
  color: var(--bone) !important;
  max-width: 36em;
  margin-bottom: 18px;
  line-height: 1.62;
}

.section p + p { margin-top: 16px; }

.section .lead strong,
.section p strong,
.section li strong {
  color: var(--bone);
  font-weight: 600;
}

.section-head {
  max-width: 44em;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.section-body { max-width: 44em; }
.section-body p + p { margin-top: 16px; }

.section-body h3 { margin-bottom: 12px; }

/* ==========================================================================
   Panels — dark plates over the eye
   ========================================================================== */

.toc,
.spec,
.feature-row,
.step,
.panel,
.vs-wrap,
.review-summary,
.review-card,
.rate-card,
.comment-card,
.faq details,
.changelog,
.quote,
.note,
.comment-item,
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toc {
  padding: 24px 26px;
  margin-bottom: clamp(40px, 5vw, 56px);
}

.toc-title {
  font-style: italic;
  font-size: 16px;
  color: var(--dust);
  margin-bottom: 10px;
}

.toc ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 2px 26px;
  counter-reset: toc-item;
}

.toc a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 6px 4px;
  color: var(--bone);
  font-size: 17px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.toc a:hover { color: var(--ember-2); }

.toc a::before {
  content: counter(toc-item, upper-roman);
  counter-increment: toc-item;
  min-width: 2.6em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--vein);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 16px;
}

.card { padding: 26px 24px; }

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--ember);
  background: radial-gradient(circle, rgba(255, 161, 25, 0.1), transparent 70%);
  border: 1px solid rgba(255, 161, 25, 0.35);
  box-shadow: 0 0 0 5px rgba(5, 3, 4, 0.9), 0 0 0 6px rgba(235, 226, 205, 0.1);
}

.card p { font-size: 16px; color: var(--ash) !important; }

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: 14px;
}

.feature-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px;
}

.feature-row p { font-size: 16.5px; }

/* the install rite: wax seals */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 30px 16px;
  counter-reset: step;
  padding-top: 20px;
}

.step {
  position: relative;
  padding: 40px 22px 22px;
}

.step::before {
  counter-increment: step;
  content: counter(step, upper-roman);
  position: absolute;
  top: -24px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #f3dcc4;
  background: radial-gradient(circle at 36% 30%, #c42a2e 0%, #8e0f15 48%, #4d070b 100%);
  box-shadow:
    inset 0 0 0 4px rgba(0, 0, 0, 0.18),
    inset 0 0 0 5px rgba(255, 210, 190, 0.08),
    0 6px 18px rgba(142, 15, 21, 0.55);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

.step:nth-child(2n)::before { border-radius: 52% 48% 47% 53% / 49% 53% 47% 51%; }
.step:nth-child(3n)::before { border-radius: 50% 50% 53% 47% / 46% 52% 48% 54%; }

.step p { font-size: 16px; }

.note {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-left: 3px solid var(--blood);
  padding: 16px 18px;
  font-size: 16px;
  color: var(--ash);
}

.note svg { color: var(--vein); flex: none; margin-top: 4px; }

.spec { overflow: hidden; }

.spec-row {
  display: grid;
  grid-template-columns: minmax(150px, 230px) 1fr;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}

.spec-row:last-child { border-bottom: none; }

.spec-row dt {
  font-style: italic;
  color: var(--dust);
}

.spec-row dd { color: var(--bone); }
.spec-row dd .muted { color: var(--ash); }

.proscons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 16px;
}

.panel { padding: 26px 24px; }

.panel ul {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.panel li {
  position: relative;
  padding-left: 30px;
  color: var(--ash);
  font-size: 16.5px;
}

.panel li strong { color: var(--bone); }

.panel-good { border-top: 2px solid var(--ember); }
.panel-bad { border-top: 2px solid var(--vein); }

.panel-good li::before,
.panel-bad li::before {
  position: absolute;
  left: 2px;
  top: 0;
  font-weight: 700;
}

.panel-good li::before { content: "✓"; color: var(--ember); }
.panel-bad li::before { content: "✕"; color: var(--vein); }

.vs-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.vs-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 16px;
}

.vs-table th,
.vs-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ash);
}

.vs-table thead th {
  font-weight: 400;
  font-style: italic;
  color: var(--dust);
  background: rgba(235, 226, 205, 0.03);
}

.vs-table tbody tr:last-child td { border-bottom: none; }

.vs-table td:first-child {
  font-weight: 600;
  color: var(--bone);
  white-space: nowrap;
}

.vs-table tr.us { background: rgba(255, 161, 25, 0.07); }
.vs-table tr.us td:first-child { color: var(--ember-2); }
.vs-table tr.us td { color: var(--bone); }

.vs-table .yes { color: var(--ember-2); font-weight: 600; }
.vs-table .no { color: var(--vein); font-weight: 600; }

.src-note {
  margin-top: 14px;
  font-size: 14.5px;
  font-style: italic;
  color: var(--dust) !important;
}

.safe-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.safe-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(5, 3, 4, 0.7);
  color: var(--bone);
  font-size: 16px;
  font-weight: 500;
  padding: 11px 18px;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.safe-link:hover { border-color: var(--ember-line); color: var(--ember-2); }
.safe-link svg { color: var(--ember); }

.check-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--ash);
  font-size: 16.5px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.62em;
}

/* ==========================================================================
   Reviews, rating, comments
   ========================================================================== */

.review-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(24px, 3.5vw, 36px);
  margin-bottom: 20px;
}

.rs-score { text-align: center; }

.rs-value {
  font-family: var(--display);
  font-size: clamp(3.4rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--ember);
}

.rs-meta {
  margin-top: 8px;
  font-style: italic;
  font-size: 15px;
  color: var(--ash);
}

.rs-bars { display: grid; gap: 8px; }

.bar-row {
  display: grid;
  grid-template-columns: 34px 1fr 44px;
  gap: 12px;
  align-items: center;
  font-size: 14.5px;
  color: var(--dust);
}

.bar-track {
  height: 6px;
  border-radius: 99px;
  background: rgba(235, 226, 205, 0.08);
  overflow: hidden;
}

.bar-fill { height: 100%; border-radius: 99px; background: var(--ember); }
.bar-pct { text-align: right; }

.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 17px; height: 17px; }
.stars .full { color: var(--ember); }
.stars .empty { color: rgba(235, 226, 205, 0.18); }

.rs-score .stars { justify-content: center; margin-top: 8px; }
.rs-score .stars svg { width: 22px; height: 22px; }

.review-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.review-card { padding: 22px; }

.rc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.rc-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  color: var(--ember);
  background: var(--void);
  border: 1px solid var(--ember-line);
  flex: none;
}

.rc-name {
  font-weight: 600;
  font-size: 16.5px;
  color: var(--bone);
  line-height: 1.3;
}

.rc-date {
  font-style: italic;
  font-size: 14px;
  color: var(--dust);
}

.rc-stars { margin-left: auto; }

.review-card p { font-size: 16px; color: var(--ash); }

.verified-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-style: italic;
  font-size: 14px;
  color: var(--ok);
}

.rate-card,
.comment-card {
  padding: clamp(24px, 3.5vw, 34px);
}

.rate-card fieldset,
.comment-card fieldset { border: none; }

.rate-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.rate-form fieldset {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.star-picker {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}

.star-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.star-picker label {
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  transition: transform 0.12s ease;
}

.star-picker label:hover { transform: scale(1.15); }

.star-picker input:focus-visible + label { outline: 2px solid var(--ember); }

.star-picker label svg {
  width: 34px;
  height: 34px;
  color: rgba(235, 226, 205, 0.18);
  transition: color 0.12s ease;
}

.star-picker label.lit svg {
  color: var(--ember);
  filter: drop-shadow(0 0 8px rgba(255, 161, 25, 0.45));
}

.rate-hint {
  font-style: italic;
  font-size: 16px;
  color: var(--ash);
  min-width: 150px;
}

.rate-hint.err { color: var(--vein); }

.rate-thanks {
  font-style: italic;
  font-size: 17px;
  color: var(--ember-2);
  padding: 6px 0;
}

.comment-form { display: grid; gap: 14px; }

.comment-form fieldset { display: grid; gap: 16px; }

.comment-form label {
  display: block;
  font-style: italic;
  font-size: 15.5px;
  color: var(--ash);
  margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form textarea {
  width: 100%;
  background: rgba(5, 3, 4, 0.9);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--bone);
  font-family: var(--serif);
  font-size: 17px;
  padding: 12px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.comment-form input::placeholder,
.comment-form textarea::placeholder { color: var(--dust); font-style: italic; }

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(255, 161, 25, 0.15);
}

.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form .btn { justify-self: start; }

.comment-list { display: grid; gap: 12px; margin-top: 20px; }
.comment-item { padding: 16px 18px; }
.comment-item .rc-name { font-size: 16px; }
.comment-item p { margin-top: 6px; font-size: 16px; color: var(--ash); }

/* ==========================================================================
   CTA band, download page bits, FAQ, share, footer
   ========================================================================== */

.cta-band {
  position: relative;
  padding: clamp(72px, 9vw, 120px) 0;
  background: radial-gradient(ellipse 55% 90% at 50% 120%, rgba(142, 15, 21, 0.4) 0%, transparent 70%), rgba(5, 3, 4, 0.55);
  border-block: 1px solid var(--line);
  text-align: center;
}

.cta-band h2 { margin-bottom: 12px; }

.cta-band p {
  color: var(--ash);
  max-width: 560px;
  margin: 0 auto 30px;
}

.dl-hero {
  position: relative;
  padding: clamp(48px, 7vw, 88px) 0 clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  text-align: center;
  background: radial-gradient(ellipse 60% 70% at 50% 40%, rgba(5, 3, 4, 0.75), rgba(5, 3, 4, 0.2) 75%);
}

.dl-hero .breadcrumbs {
  justify-content: center;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.dl-logo { display: none; }

.dl-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  margin: 10px auto 18px;
  max-width: 16ch;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(5, 3, 4, 0.95);
}

.dl-hero .sub {
  color: var(--ash);
  max-width: 36em;
  margin: 0 auto 32px;
  text-wrap: balance;
  text-shadow: 0 1px 16px rgba(5, 3, 4, 0.95);
}

.dl-hero .sub strong { color: var(--bone); }

.dl-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.dl-meta {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dust);
}

.version-card {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(5, 3, 4, 0.8);
  font-size: 15px;
  margin-bottom: 28px;
  overflow: hidden;
}

.version-card span {
  padding: 10px 18px;
  color: var(--ash);
  border-right: 1px solid var(--line);
}

.version-card span:last-child { border-right: none; }

.version-card b {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ember-2);
  font-weight: 700;
}

.changelog {
  list-style: none;
  display: grid;
  overflow: hidden;
}

.changelog li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  align-items: baseline;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.changelog li:last-child { border-bottom: none; }

.cl-version {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--ember-ink);
  background: var(--ember);
  border-radius: 3px;
  padding: 3px 10px;
  white-space: nowrap;
}

.cl-version.old { background: rgba(235, 226, 205, 0.1); color: var(--ash); }

.cl-date { font-style: italic; font-size: 15px; color: var(--dust); }

.changelog p { font-size: 16.5px; grid-column: 2; }

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 14px;
}

.quote { position: relative; padding: 22px; }

.quote::before {
  content: "“";
  position: absolute;
  top: 2px;
  right: 16px;
  font-family: var(--display);
  font-size: 60px;
  line-height: 1;
  color: rgba(224, 69, 63, 0.35);
}

.quote p { font-size: 16.5px; font-style: italic; color: var(--ash); }

.quote footer { margin-top: 12px; font-size: 14.5px; color: var(--dust); }
.quote footer b { color: var(--bone); }

.faq { max-width: 46em; }

.faq details {
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq details[open] { border-color: rgba(224, 69, 63, 0.4); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 17.5px;
  line-height: 1.45;
  list-style: none;
  user-select: none;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ember-2); }

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  color: var(--vein);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq .faq-a {
  padding: 0 20px 18px;
  color: var(--ash);
  font-size: 16.5px;
}

.share-section {
  padding: clamp(44px, 6vw, 64px) 0;
  border-top: 1px solid var(--line);
}

.share-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.share-label {
  font-style: italic;
  font-size: 17px;
  color: var(--ash);
  margin-right: 4px;
}

.share-row { display: flex; flex-wrap: wrap; gap: 10px; }

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(5, 3, 4, 0.7);
  color: var(--ash);
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none !important;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.share-btn:hover { border-color: var(--ember-line); color: var(--ember-2); }
.share-btn svg { width: 16px; height: 16px; fill: currentColor; }

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(5, 3, 4, 0.9);
  padding: 46px 0 34px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 15.5px;
}

.footer-nav a { color: var(--ash); text-decoration: none; }
.footer-nav a:hover { color: var(--ember); }

.footer-motto {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  color: rgba(224, 69, 63, 0.75);
  margin-bottom: 18px;
}

.footer-disclaimer {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ash);
  max-width: 54em;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-copy { font-size: 14.5px; color: var(--dust); }
.footer-copy a { color: var(--ash); }

/* download page: centred column */
.dl-page .kicker { justify-content: center; }

.dl-page .section-head,
.dl-page .section-body {
  text-align: center;
  margin-inline: auto;
}

.dl-page .steps,
.dl-page .spec,
.dl-page .changelog,
.dl-page .quotes,
.dl-page .note {
  max-width: 940px;
  margin-inline: auto;
}

.dl-page .step { text-align: center; }
.dl-page .step::before { left: 50%; margin-left: -24px; }
.dl-page .spec-row { text-align: center; }
.dl-page .note { justify-content: center; text-align: center; }
.dl-page .quote { text-align: center; }
.dl-page .quote footer { display: block; }
.dl-page .share-wrap { justify-content: center; }

/* 404 */
.lost {
  display: grid;
  align-items: end;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 56vh 0 clamp(40px, 7vh, 72px);
  text-align: center;
}

.lost .dl-cta {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.lost h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 700;
  line-height: 1;
  margin: 2px 0 14px;
  text-shadow: 0 2px 30px rgba(5, 3, 4, 0.95);
}

.lost p {
  color: var(--ash);
  max-width: 32em;
  margin: 0 auto 28px;
  text-shadow: 0 1px 16px rgba(5, 3, 4, 0.95);
}

.lost .kicker { justify-content: center; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px clamp(16px, 4vw, 40px) 20px;
    background: rgba(8, 4, 5, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  html.nav-open .nav { display: flex; }

  .nav > a {
    padding: 12px 6px;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }

  .nav > .btn { margin-top: 12px; }

  .spec-row { grid-template-columns: 1fr; gap: 2px; }

  .review-summary { grid-template-columns: 1fr; text-align: center; }
  .rs-bars { text-align: left; }

  .changelog li { grid-template-columns: 1fr; }
  .changelog p { grid-column: 1; }
}

@media (max-width: 700px) {
  body { font-size: 17px; }

  .hint { display: none; }

  .hero-content { padding: 96px 0 48px; }

  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; white-space: normal; text-align: center; }

  .btn-xl { padding: 17px 24px; font-size: 18px; }

  .share-btn span { display: none; }
  .share-btn { padding: 11px; }

  .feature-row { grid-template-columns: 1fr; gap: 14px; }

  .rate-form,
  .rate-form fieldset { flex-direction: column; align-items: flex-start; }

  .dl-page .steps { grid-template-columns: 1fr; }

  .version-card span { border-right: none; padding: 8px 14px; }

  .whisper { white-space: normal; max-width: 70vw; }
}

/* portrait: the eye owns the top of the first screen, the words start under it */
@media (max-aspect-ratio: 9/10) {
  .hero-content {
    padding-top: calc(34.5vh - var(--header-h) + 19vw);
    padding-top: calc(34.5lvh - var(--header-h) + 19vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .btn,
  .share-btn,
  .safe-link { transition: none; }

  .btn-xl.btn-pulse,
  .altar-glow,
  .sg-outer,
  .sg-inner,
  .grain { animation: none; }

  .whisper { animation-name: whisper-still; }

  @keyframes whisper-still {
    0%, 100% { opacity: 0; }
    20%, 75% { opacity: 0.7; }
  }
}
