/* =============================================================
   viper4android.com — MAIN STYLESHEET (readable version)

   HOW TO EDIT
   1. Colours, text sizes and spacing live in the ":root" block
      right below. Change a number there and save — that's it.
   2. Every part of the site has its own labelled section:
        01 Fonts            08 Install / terminal
        02 Settings (:root) 09 Tables, pills, pros & cons
        03 Base styles      10 Troubleshooting, FAQ, final CTA
        04 Header & menu    11 Footer
        05 Buttons          12 Inner pages & guides
        06 Hero             13 Scroll animations
        07 Features & download  14 Tablet / mobile rules
   3. After uploading, press Ctrl+F5 once to see your change.
   ============================================================= */


/* ---------- 01 Fonts (self-hosted Poppins) ---------- */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/poppins-latin-800-normal.woff2") format("woff2");
}


/* ---------- 02 Settings — EDIT HERE ---------- */
:root {
  /* ===== HERO H1 SIZE (homepage title) ===== */
  --hero-h1-desktop: 36px;   /* computers: wider than 900px  */
  --hero-h1-tablet: 32px;    /* tablets: 641px – 900px       */
  --hero-h1-mobile: 28px;    /* phones: 640px and smaller    */

  /* ===== OTHER TEXT SIZES ===== */
  --page-h1-desktop: 42px;   /* H1 on guides, About, legal pages */
  --page-h1-mobile: 30px;
  --h2-desktop: 34px;        /* section headings */
  --h2-mobile: 26px;
  --h3-size: 19px;           /* card titles / sub headings */
  --body-size: 16px;         /* paragraph text */
  --line: 1.75;              /* paragraph line height */

  /* ===== BRAND COLOURS — taken from the purple logo ===== */
  --primary: #4B3279;        /* logo purple: buttons, links, highlights */
  --primary-hover: #3A275E;  /* logo disc purple (darker) */
  --primary-mid: #7A5CB0;    /* medium purple: focus ring, accents */
  --primary-soft: #EFEAF7;   /* very light purple backgrounds */
  --secondary: #2A1C47;      /* dark purple: download band, footer */
  --secondary-2: #3A275E;
  --accent: #B9A3E3;         /* light lavender (logo ring, lighter) */
  --accent-hover: #A58BD6;
  --accent-soft: #F4F0FA;
  --cream: #E7E3DE;          /* cream of the "V" in the logo */
  --bg: #F9F8F6;             /* page background (warm white) */
  --heading: #1F1535;        /* heading text (purple-black) */
  --body: #514A63;           /* paragraph text (purple-grey) */
  --surface: #FFFFFF;        /* cards */
  --border: #DAD4E4;
  --border-soft: #EAE6F0;
  --on-dark: #EDE9F4;        /* text on dark purple backgrounds */

  /* status colours (tables, notes) */
  --success: #067647;
  --success-soft: #E3F6EC;
  --warning: #B54708;
  --warning-soft: #FEF0E2;
  --danger: #B42318;
  --danger-soft: #FDECEA;

  /* ===== FONTS ===== */
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* ===== LAYOUT ===== */
  --container: 1140px;       /* max content width */
  --gutter: 24px;            /* side padding */
  --header-h: 72px;          /* header height */
  --radius-s: 8px;           /* corner roundness */
  --radius: 14px;
  --radius-l: 22px;
  --shadow-1: 0 1px 2px rgba(31, 21, 53, .06), 0 1px 3px rgba(31, 21, 53, .08);
  --shadow-2: 0 12px 32px -12px rgba(42, 28, 71, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
}


/* ---------- 03 Base styles ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--body-size);
  line-height: var(--line);
  color: var(--body);
  background: var(--bg);
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-hover);
}

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}

h2 {
  font-size: var(--h2-desktop);
  font-weight: 700;
}

h3 {
  font-size: var(--h3-size);
  font-weight: 600;
}

p {
  margin: 0 0 1.05em;
}

ul, ol {
  padding-left: 1.25em;
  margin: 0 0 1.1em;
}

li {
  margin: .3em 0;
}

code, kbd {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--primary-soft);
  color: var(--secondary);
  padding: .12em .4em;
  border-radius: 6px;
}

pre {
  font-family: var(--mono);
  font-size: .86rem;
  background: var(--secondary);
  color: var(--on-dark);
  padding: 16px 18px;
  border-radius: var(--radius);
  overflow-x: auto;
  line-height: 1.6;
  margin: 0 0 1.2em;
}

pre code {
  background: none;
  color: inherit;
  padding: 0;
}

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

::selection {
  background: var(--accent);
  color: var(--heading);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link:focus {
  top: 12px;
  color: #fff;
}

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


/* ---------- 04 Header & menu ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow .3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 6px 20px -12px rgba(31,21,53,.25);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--heading);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform .5s var(--ease);
}

.brand:hover img {
  transform: rotate(-12deg) scale(1.05);
}

.brand-word {
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -.02em;
  color: var(--heading);
}

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

.nav-desktop ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--heading);
  font-weight: 500;
  font-size: .94rem;
  position: relative;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}

.nav-desktop a:hover::after,
.nav-desktop a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-mobile {
  display: none;
  position: relative;
}

.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 600;
  color: var(--heading);
  font-size: .9rem;
}

.nav-mobile summary::-webkit-details-marker {
  display: none;
}

.nav-mobile .bars {
  width: 18px;
  height: 12px;
  position: relative;
  display: inline-block;
}

.nav-mobile .bars::before,
.nav-mobile .bars::after,
.nav-mobile .bars i {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: transform .3s var(--ease),opacity .2s;
}

.nav-mobile .bars::before {
  top: 0;
}

.nav-mobile .bars i {
  top: 5px;
}

.nav-mobile .bars::after {
  top: 10px;
}

.nav-mobile[open] .bars::before {
  transform: translateY(5px) rotate(45deg);
}

.nav-mobile[open] .bars i {
  opacity: 0;
}

.nav-mobile[open] .bars::after {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 10px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  animation: drop .25s var(--ease);
}

.nav-mobile li {
  margin: 0;
}

.nav-mobile a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--heading);
  font-weight: 500;
}

.nav-mobile a:hover {
  background: var(--primary-soft);
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.read-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg,var(--primary),var(--accent));
  transform: scaleX(0);
  transform-origin: left;
}


/* ---------- 05 Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 14px 22px;
  border-radius: 12px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease),background-color .2s,box-shadow .2s,color .2s;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(75,50,121,.6);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: var(--heading);
  box-shadow: 0 12px 28px -12px rgba(185,163,227,.9);
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: var(--heading);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--heading);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--heading);
  color: var(--heading);
}

.btn-lg {
  padding: 17px 28px;
  font-size: 1.05rem;
}

.btn .arrow {
  transition: transform .25s var(--ease);
}

.btn:hover .arrow {
  transform: translateY(2px);
}

.dl-status {
  min-height: 1.5em;
  font-size: .88rem;
  margin: 10px 0 0;
  color: var(--success);
  font-weight: 500;
}

.on-dark .dl-status {
  color: var(--accent);
}


/* ---------- Section spacing & headings ---------- */
.section {
  padding-block: clamp(56px,8vw,104px);
  position: relative;
}

.section-tight {
  padding-block: clamp(40px,6vw,72px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}

.on-dark .kicker {
  color: var(--accent);
}

.split-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(20px,5vw,64px);
  align-items: end;
  margin-bottom: clamp(30px,5vw,52px);
}

.split-head p {
  margin: 0;
}

.lead {
  font-size: 1.08rem;
}


/* ---------- 06 Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(36px,6vw,80px) clamp(40px,6vw,72px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 85% 10%,rgba(90,63,128,.12),transparent 70%),
  radial-gradient(420px 260px at 8% 92%,rgba(185,163,227,.22),transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(28px,5vw,64px);
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--heading);
  margin-bottom: 22px;
}

.hero-tag .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
}

.hero-tag .dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    transform: scale(.55);
    opacity: .6;
  }
}

.hero h1 {
  font-size: var(--hero-h1-desktop);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: 22px;
}

.hero h1 .hl {
  color: var(--primary);
  position: relative;
  white-space: nowrap;
}

.hero h1 .hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .04em;
  height: .22em;
  background: var(--accent);
  z-index: -1;
  border-radius: 4px;
  transform-origin: left;
  animation: sweep 1.1s .5s var(--ease) both;
}

@keyframes sweep {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.hero-copy p {
  font-size: 1.06rem;
  max-width: 56ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.fact-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 22px 0 0;
}

.fact-chips li {
  margin: 0;
  font-size: .8rem;
  font-weight: 500;
  color: var(--heading);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  padding: 6px 12px;
  border-radius: 999px;
}

.fact-chips li b {
  color: var(--primary);
  font-weight: 600;
}

/* Console illustration */
.console {
  position: relative;
  background: linear-gradient(160deg,var(--secondary) 0%,#1C1232 100%);
  border-radius: var(--radius-l);
  padding: 22px;
  color: var(--on-dark);
  box-shadow: var(--shadow-2);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform .6s var(--ease);
}

.console:hover {
  transform: perspective(1200px) rotateY(0) rotateX(0);
}

.console::after {
  content: "";
  position: absolute;
  inset: -14px -14px auto auto;
  width: 90px;
  height: 90px;
  border-radius: 24px;
  background: var(--accent);
  z-index: -1;
  transform: rotate(12deg);
}

.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #B3A6CC;
  margin-bottom: 16px;
}

.leds {
  display: flex;
  gap: 6px;
}

.leds i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4F3A78;
}

.leds i:first-child {
  background: #B9A3E3;
  box-shadow: 0 0 10px #B9A3E3;
  animation: blink 2.4s infinite;
}

@keyframes blink {
  50% {
    opacity: .35;
  }
}

.screen {
  background: #1A1130;
  border: 1px solid #4A3672;
  border-radius: 14px;
  padding: 14px;
  overflow: hidden;
}

.wave {
  width: 100%;
  height: 70px;
}

.wave path {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.wave .w1 {
  stroke: var(--accent);
  stroke-dasharray: 6 0;
  animation: wave 6s linear infinite;
}

.wave .w2 {
  stroke: #8C6FC6;
  opacity: .7;
  animation: wave 9s linear infinite reverse;
}

@keyframes wave {
  to {
    transform: translateX(-200px);
  }
}

.eq {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 110px;
  margin-top: 12px;
  padding-top: 6px;
  border-top: 1px dashed #4A3672;
}

.eq span {
  flex: 1;
  background: linear-gradient(to top,var(--primary),#8C6FC6);
  border-radius: 4px 4px 2px 2px;
  height: 30%;
  animation: eq 1.6s ease-in-out infinite alternate;
  transform-origin: bottom;
}

.eq span:nth-child(3n) {
  background: linear-gradient(to top,#8E73C4,var(--accent));
}

.eq span:nth-child(1) {
  animation-delay: -.2s;
  height: 55%;
}

.eq span:nth-child(2) {
  animation-delay: -.9s;
  height: 72%;
}

.eq span:nth-child(3) {
  animation-delay: -.4s;
  height: 88%;
}

.eq span:nth-child(4) {
  animation-delay: -1.2s;
  height: 64%;
}

.eq span:nth-child(5) {
  animation-delay: -.6s;
  height: 46%;
}

.eq span:nth-child(6) {
  animation-delay: -1.4s;
  height: 38%;
}

.eq span:nth-child(7) {
  animation-delay: -.1s;
  height: 50%;
}

.eq span:nth-child(8) {
  animation-delay: -.7s;
  height: 62%;
}

.eq span:nth-child(9) {
  animation-delay: -1s;
  height: 74%;
}

.eq span:nth-child(10) {
  animation-delay: -.3s;
  height: 58%;
}

.eq span:nth-child(11) {
  animation-delay: -1.3s;
  height: 44%;
}

.eq span:nth-child(12) {
  animation-delay: -.5s;
  height: 66%;
}

.eq span:nth-child(13) {
  animation-delay: -.8s;
  height: 80%;
}

.eq span:nth-child(14) {
  animation-delay: -.15s;
  height: 52%;
}

@keyframes eq {
  0% {
    transform: scaleY(.35);
  }
  60% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(.6);
  }
}

.eq-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: .66rem;
  color: #9C8EBB;
  margin-top: 6px;
}

.knobs {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 10px;
  margin-top: 16px;
}

.knob {
  text-align: center;
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #B3A6CC;
}

.knob i {
  display: block;
  width: 46px;
  height: 46px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,#5A3F80,#2A1C47);
  border: 2px solid #4F3A78;
  position: relative;
  animation: turn 7s ease-in-out infinite alternate;
}

.knob i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  width: 3px;
  height: 13px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--accent);
}

.knob:nth-child(2) i {
  animation-duration: 9s;
  animation-delay: -2s;
}

.knob:nth-child(3) i {
  animation-duration: 6s;
  animation-delay: -4s;
}

.knob:nth-child(4) i {
  animation-duration: 8s;
  animation-delay: -1s;
}

@keyframes turn {
  from {
    transform: rotate(-120deg);
  }
  to {
    transform: rotate(120deg);
  }
}

.console-cap {
  font-size: .72rem;
  color: #9C8EBB;
  margin: 14px 0 0;
  text-align: right;
}

/* Ticker */
.ticker {
  border-block: 1px solid var(--border-soft);
  background: var(--surface);
  overflow: hidden;
  padding-block: 14px;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.ticker-track > div {
  display: flex;
  gap: 42px;
  padding-right: 42px;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--heading);
  white-space: nowrap;
  font-size: .95rem;
}

.ticker span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}


/* ---------- 07 Features (signal chain cards) ---------- */
.chain {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
  position: relative;
}

.chain::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 34px;
  height: 2px;
  background: repeating-linear-gradient(90deg,var(--primary) 0 10px,transparent 10px 18px);
  background-size: 36px 2px;
  animation: wire 1.4s linear infinite;
  opacity: .35;
  z-index: 0;
}

@keyframes wire {
  to {
    background-position: 36px 0;
  }
}

.module {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  transition: transform .3s var(--ease),border-color .3s,box-shadow .3s;
}

.module:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-2);
}

.module.wide {
  grid-column: span 2;
  background: linear-gradient(135deg,var(--primary-soft),var(--surface) 60%);
}

.module.dark {
  background: var(--secondary);
  border-color: var(--secondary);
}

.module.dark h3, .module.dark p {
  color: var(--on-dark);
}

.module-n {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--mono);
  font-size: .74rem;
  color: #9A93AB;
}

.module .ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  margin-bottom: 14px;
}

.module.dark .ico {
  background: var(--accent);
  color: var(--secondary);
}

.module .ico svg {
  width: 24px;
  height: 24px;
}

.module h3 {
  margin-bottom: 8px;
}

.module p {
  margin: 0;
  font-size: .95rem;
}

.module ul {
  margin: 10px 0 0;
  font-size: .9rem;
}


/* ---------- 07b Download band ---------- */
.dl-band {
  background: var(--secondary);
  color: var(--on-dark);
  border-radius: var(--radius-l);
  padding: clamp(26px,5vw,52px);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(24px,5vw,56px);
  position: relative;
  overflow: hidden;
}

.dl-band::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 40px solid rgba(185,163,227,.10);
}

.dl-band h2 {
  color: #fff;
}

.dl-band p {
  color: #CFC5E2;
}

.dl-band a:not(.btn) {
  color: var(--accent);
}

.spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #4A3672;
  border: 1px solid #4A3672;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
  position: relative;
}

.spec div {
  background: #24183E;
  padding: 14px 16px;
}

.spec dt {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #A99CC4;
  margin-bottom: 4px;
}

.spec dd {
  margin: 0;
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.4;
}

.pkg-note {
  font-size: .86rem;
  margin-top: 18px;
  color: #BDB1D3;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface);
  margin: 0 0 1.2em;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
  min-width: 560px;
}

th, td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}

thead th {
  background: #F3F0F8;
  color: var(--heading);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .02em;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #FBFAFD;
}

caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  color: var(--heading);
  padding: 14px 16px 0;
}


/* ---------- Stepper ---------- */
.stepper {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 18px;
  counter-reset: st;
  position: relative;
}

.stepper::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 24px;
  height: 3px;
  background: var(--border-soft);
  border-radius: 2px;
}

.stepper-wrap {
  position: relative;
}

.stepper-wrap .bar {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  top: 24px;
  height: 3px;
  background: linear-gradient(90deg,var(--primary),var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--ease);
  border-radius: 2px;
}

.stepper-wrap.in .bar {
  transform: scaleX(1);
}

.stepper li {
  counter-increment: st;
  position: relative;
  margin: 0;
}

.stepper li::before {
  content: counter(st);
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--primary);
  color: var(--primary);
  font-weight: 800;
  font-size: 1.1rem;
  position: relative;
  z-index: 2;
  margin-bottom: 16px;
  transition: background .3s,color .3s;
}

.stepper li:hover::before {
  background: var(--primary);
  color: #fff;
}

.stepper h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.stepper p {
  font-size: .92rem;
  margin: 0;
}


/* ---------- Editorial split (what it does) ---------- */
.editorial {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(24px,5vw,64px);
}

.dropcap::first-letter {
  float: left;
  font-size: 4.2em;
  line-height: .9;
  font-weight: 800;
  color: var(--primary);
  margin: .06em .12em 0 0;
}

.usecases {
  border-left: 3px solid var(--accent);
  padding-left: clamp(16px,3vw,28px);
}

.usecase {
  padding: 16px 0;
  border-bottom: 1px dashed var(--border);
}

.usecase:last-child {
  border-bottom: 0;
}

.usecase h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.usecase p {
  margin: 0;
  font-size: .93rem;
}


/* ---------- 08 Install / terminal ---------- */
.install-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(24px,4vw,48px);
  align-items: start;
}

.terminal {
  background: #1C1232;
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  color: #E2DBEE;
  font-family: var(--mono);
  font-size: .85rem;
}

.terminal-bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  background: #2A1C47;
}

.terminal-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #E7E3DE;
}

.terminal-bar i:nth-child(2) {
  background: #B9A3E3;
}

.terminal-bar i:nth-child(3) {
  background: #7A5CB0;
}

.terminal-bar b {
  margin-left: 10px;
  font-weight: 400;
  color: #A99CC4;
  font-size: .78rem;
}

.terminal pre {
  background: none;
  margin: 0;
  border-radius: 0;
  padding: 18px;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal .c {
  color: #9184AD;
}

.terminal .g {
  color: #B9A3E3;
}

.terminal .y {
  color: var(--accent);
}

.caret {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}

.install-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: ins;
}

.install-steps li {
  counter-increment: ins;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
  margin: 0;
}

.install-steps li::before {
  content: counter(ins,decimal-leading-zero);
  font-family: var(--mono);
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
  padding-top: 2px;
}

.install-steps h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.install-steps p {
  margin: 0;
  font-size: .94rem;
}


/* ---------- 09 Tables, pills, pros & cons ---------- */
.pill {
  display: inline-block;
  font-size: .76rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.pill.ok {
  background: var(--success-soft);
  color: var(--success);
}

.pill.warn {
  background: var(--warning-soft);
  color: var(--warning);
}

.pill.no {
  background: var(--danger-soft);
  color: var(--danger);
}

.pill.info {
  background: var(--primary-soft);
  color: var(--primary-hover);
}


/* ---------- Pros & cons ledger ---------- */
.ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--surface);
}

.ledger > div {
  padding: clamp(20px,4vw,34px);
}

.ledger > div + div {
  border-left: 1px solid var(--border-soft);
  background: #FBFAFD;
}

.ledger h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ledger h3 .sym {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.ledger .plus .sym {
  background: var(--success-soft);
  color: var(--success);
}

.ledger .minus .sym {
  background: var(--warning-soft);
  color: var(--warning);
}

.ledger ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ledger li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-soft);
  font-size: .95rem;
}

.ledger li:last-child {
  border-bottom: 0;
}

.ledger li b {
  color: var(--heading);
}


/* ---------- 10 Troubleshooting, FAQ, final CTA ---------- */
.fixes {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 14px;
}

.fix {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  transition: border-color .2s;
}

.fix[open] {
  border-color: var(--primary);
}

.fix summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 20px;
  font-weight: 600;
  color: var(--heading);
  position: relative;
}

.fix summary::-webkit-details-marker {
  display: none;
}

.fix summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  transition: transform .3s var(--ease);
}

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

.fix .fix-body {
  padding: 0 20px 18px;
  font-size: .94rem;
}

.fix .fix-body p {
  margin-bottom: .6em;
}

.tip-strip {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--accent-soft);
  border: 1px solid #D9CCEF;
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: .95rem;
}

.tip-strip svg {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--primary);
}

.tip-strip p {
  margin: 0;
}


/* ---------- Perspectives ---------- */
.perspectives {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
}

.persp {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  position: relative;
}

.persp:first-child {
  background: var(--primary);
  border-color: var(--primary);
}

.persp:first-child h3, .persp:first-child p, .persp:first-child .tag {
  color: #fff;
}

.persp .tag {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
  display: block;
}

.persp p {
  margin: 0;
  font-size: .94rem;
}


/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(24px,5vw,64px);
  align-items: start;
}

.faq-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  font-weight: 600;
  color: var(--heading);
  font-size: 1.02rem;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -8px;
  border-right: 2.5px solid var(--primary);
  border-bottom: 2.5px solid var(--primary);
  transform: rotate(45deg);
  transition: transform .3s var(--ease);
}

.faq-list details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}

.faq-list .ans {
  padding: 0 0 20px;
  font-size: .96rem;
}

.faq-list .ans p:last-child {
  margin: 0;
}


/* ---------- Final CTA ---------- */
.final {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: linear-gradient(120deg,var(--primary) 0%,#2A1C47 100%);
  color: #fff;
  padding: clamp(32px,6vw,64px);
  text-align: center;
}

.final h2 {
  color: #fff;
}

.final p {
  color: #E4DCF3;
  max-width: 60ch;
  margin-inline: auto;
}

.final .wave-bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  opacity: .25;
}

.final .wave-bg path {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  animation: wave 10s linear infinite;
}

.final .inner {
  position: relative;
}


/* ---------- 11 Footer ---------- */
.site-footer {
  background: var(--secondary);
  color: #C9BEDD;
  margin-top: clamp(40px,6vw,72px);
  font-size: .93rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(24px,4vw,48px);
  padding-block: clamp(44px,6vw,72px) 32px;
}

.site-footer h2 {
  color: #fff;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin: 0 0 10px;
}

.site-footer a {
  color: #E6DFF1;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-brand .brand-word {
  color: #fff;
}

.footer-brand .brand-word b {
  color: var(--accent);
}

.footer-brand p {
  margin: 16px 0 0;
  max-width: 44ch;
}

.footer-note {
  border-top: 1px solid #4A3672;
  padding-block: 18px;
  font-size: .86rem;
  color: #BDB1D3;
}

.footer-bottom {
  border-top: 1px solid #4A3672;
  padding-block: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: .86rem;
}

.eq-mini {
  display: inline-flex;
  gap: 3px;
  align-items: flex-end;
  height: 16px;
  margin-left: 8px;
}

.eq-mini i {
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  animation: eq 1.2s ease-in-out infinite alternate;
  transform-origin: bottom;
  height: 100%;
}

.eq-mini i:nth-child(2) {
  animation-delay: -.4s;
}

.eq-mini i:nth-child(3) {
  animation-delay: -.8s;
}

.eq-mini i:nth-child(4) {
  animation-delay: -.2s;
}


/* ---------- 12 Inner pages & guides ---------- */
.page-hero {
  padding-block: clamp(36px,6vw,64px) clamp(26px,4vw,40px);
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg,var(--surface),var(--bg));
}

.page-hero h1 {
  font-size: var(--page-h1-desktop);
  font-weight: 800;
  letter-spacing: -.02em;
  max-width: 24ch;
}

.page-hero p {
  max-width: 66ch;
  font-size: 1.04rem;
  margin: 0;
}

.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0 0 18px;
  font-size: .85rem;
}

.crumbs li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.crumbs li + li::before {
  content: "/";
  color: #9A93AB;
}

.crumbs a {
  text-decoration: none;
  color: var(--body);
}

.crumbs a:hover {
  color: var(--primary);
}

.crumbs [aria-current] {
  color: var(--heading);
  font-weight: 500;
}

.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 28px;
  margin-top: 1.8em;
}

.prose h3 {
  margin-top: 1.4em;
}

.prose > :first-child {
  margin-top: 0;
}

.prose table {
  min-width: 520px;
}

.callout {
  border-left: 4px solid var(--primary);
  background: var(--primary-soft);
  padding: 16px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 1.3em;
}

.callout.warn {
  border-color: var(--warning);
  background: var(--warning-soft);
}

.callout p:last-child {
  margin: 0;
}

.layout-2 {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(24px,5vw,64px);
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  font-size: .88rem;
}

.toc h2 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 12px;
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--border-soft);
}

.toc li {
  margin: 0;
}

.toc a {
  display: block;
  padding: 6px 0 6px 14px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  text-decoration: none;
  color: var(--body);
  line-height: 1.45;
}

.toc a:hover, .toc a.active {
  color: var(--primary);
  border-left-color: var(--primary);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: .86rem;
  margin-top: 16px;
  color: var(--body);
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cover {
  margin: 28px 0 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--surface);
}

.cover img {
  width: 100%;
  aspect-ratio: 21/8;
  object-fit: cover;
}

.cover figcaption {
  font-size: .78rem;
  padding: 8px 14px;
  color: var(--body);
  border-top: 1px solid var(--border-soft);
}

.cta-box {
  margin: 40px 0 0;
  padding: 26px;
  border-radius: var(--radius-l);
  background: var(--secondary);
  color: var(--on-dark);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}

.cta-box img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.cta-box h2 {
  color: #fff;
  font-size: 1.2rem;
  margin: 0 0 4px;
}

.cta-box p {
  margin: 0;
  font-size: .92rem;
  color: #C9BEDD;
}

.related {
  margin-top: 56px;
}

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

.rcard {
  display: block;
  text-decoration: none;
  color: var(--heading);
  border: 1px solid var(--border-soft);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease),box-shadow .3s;
}

.rcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  color: var(--heading);
}

.rcard img {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
}

.rcard span {
  display: block;
  padding: 14px 16px;
  font-weight: 600;
  line-height: 1.4;
  font-size: .96rem;
}

/* Guides archive */
.g-feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--surface);
  text-decoration: none;
  color: var(--body);
  margin-bottom: 28px;
  transition: box-shadow .3s;
}

.g-feature:hover {
  box-shadow: var(--shadow-2);
  color: var(--body);
}

.g-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g-feature .g-txt {
  padding: clamp(22px,4vw,40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.g-feature h2 {
  font-size: clamp(1.3rem,2.2vw,1.8rem);
}

.g-list {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 18px;
}

.g-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: var(--body);
  transition: transform .3s var(--ease),border-color .3s;
}

.g-item:hover {
  transform: translateX(4px);
  border-color: var(--primary);
  color: var(--body);
}

.g-item img {
  border-radius: 10px;
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.g-item h2 {
  font-size: 1.02rem;
  margin: 0 0 4px;
}

.g-item p {
  margin: 0;
  font-size: .86rem;
  line-height: 1.55;
}

.g-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
  display: block;
}

.contact-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  border-radius: var(--radius-l);
  padding: 24px;
  margin: 0 0 1.4em;
}

.contact-card .ico {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
}

.contact-card .ico svg {
  width: 26px;
  height: 26px;
}

.contact-card p {
  margin: 0;
}

.sitemap-cols {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
}

.err {
  text-align: center;
  padding-block: clamp(60px,10vw,120px);
}

.err .code {
  font-size: clamp(4rem,14vw,9rem);
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  letter-spacing: -.04em;
}

.err .cta-row {
  justify-content: center;
}

.err .eq {
  max-width: 260px;
  margin: 24px auto;
  height: 60px;
}


/* ---------- 13 Scroll animations (only when JavaScript runs) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease),transform .8s var(--ease);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.js .reveal-l {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .8s var(--ease),transform .8s var(--ease);
}

.js .reveal-l.in {
  opacity: 1;
  transform: none;
}

.js .stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease),transform .6s var(--ease);
}

.js .stagger.in > * {
  opacity: 1;
  transform: none;
}

.js .stagger.in > *:nth-child(2) {
  transition-delay: .08s;
}

.js .stagger.in > *:nth-child(3) {
  transition-delay: .16s;
}

.js .stagger.in > *:nth-child(4) {
  transition-delay: .24s;
}

.js .stagger.in > *:nth-child(5) {
  transition-delay: .32s;
}

.js .stagger.in > *:nth-child(6) {
  transition-delay: .4s;
}

.js .stagger.in > *:nth-child(7) {
  transition-delay: .48s;
}

.js .stagger.in > *:nth-child(8) {
  transition-delay: .56s;
}

.js .stagger.in > *:nth-child(9) {
  transition-delay: .64s;
}

.js .stagger.in > *:nth-child(10) {
  transition-delay: .72s;
}


/* ---------- 14 Tablet / mobile rules ---------- */
@media (max-width:1024px) {
  .chain {
    grid-template-columns: repeat(2,1fr);
  }
  .chain::before {
    display: none;
  }
  .stepper {
    grid-template-columns: repeat(3,1fr);
  }
  .stepper::before, .stepper-wrap .bar {
    display: none;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .perspectives {
    grid-template-columns: 1fr 1fr;
  }
  .perspectives .persp:first-child {
    grid-column: span 2;
  }
}

@media (max-width:900px) {
  .hero h1 {
    font-size: var(--hero-h1-tablet);
  }
  .nav-desktop {
    display: none;
  }
  .nav-mobile {
    display: block;
  }
  .hero-grid,
  .split-head,
  .dl-band,
  .editorial,
  .install-grid,
  .faq-grid,
  .layout-2,
  .g-feature {
    grid-template-columns: 1fr;
  }
  .console {
    transform: none;
  }
  .faq-aside, .toc {
    position: static;
  }
  .toc {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 16px;
    background: var(--surface);
  }
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sitemap-cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:640px) {
  :root {
    --header-h: 64px;
    --gutter: 16px;
  }
  .hero h1 {
    font-size: var(--hero-h1-mobile);
  }
  .page-hero h1 {
    font-size: var(--page-h1-mobile);
  }
  h2, .prose h2 {
    font-size: var(--h2-mobile);
  }
  .chain,
  .fixes,
  .ledger,
  .g-list,
  .related-grid,
  .sitemap-cols,
  .perspectives {
    grid-template-columns: 1fr;
  }
  .perspectives .persp:first-child {
    grid-column: auto;
  }
  .module.wide {
    grid-column: auto;
  }
  .ledger > div + div {
    border-left: 0;
    border-top: 1px solid var(--border-soft);
  }
  .stepper {
    grid-template-columns: 1fr;
  }
  .stepper li {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 14px;
  }
  .stepper li::before {
    margin: 0;
  }
  .spec {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .cta-box {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .g-item {
    grid-template-columns: 1fr;
  }
  .btn {
    width: 100%;
  }
  .cta-row .btn {
    width: 100%;
  }
  .hero h1 .hl {
    white-space: normal;
  }
  .brand-word {
    font-size: 1.05rem;
  }
  .knob i {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after {
    animation-duration: .001ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .001ms!important;
    scroll-behavior: auto!important;
  }
  .js .reveal, .js .reveal-l, .js .stagger > * {
    opacity: 1;
    transform: none;
  }
  .console {
    transform: none;
  }
}

@media print {
  .site-header, .site-footer, .ticker, .console {
    display: none;
  }
}