/*!
 * MemcardRex.com stylesheet
 * Plain CSS, no framework. Sections are numbered; search "==== 08" to jump to a section.
 * All font sizes are fixed px; smaller sizes for tablet/phone live in section 35.
 *
 * Contents
 *   01. Fonts
 *   02. Design tokens
 *   03. Base and typography
 *   04. Layout helpers
 *   05. Buttons and links
 *   06. Header and navigation
 *   07. Reading progress bar
 *   08. Hero
 *   09. Hero visual (editor, console, result card)
 *   10. Syntax highlighting
 *   11. Trust band
 *   12. Section scaffolding
 *   13. About / editorial
 *   14. Code blocks
 *   15. Features bento
 *   16. How it works pipeline
 *   17. Requirements, tables and notes
 *   18. Download band
 *   19. Installation steps
 *   20. Tabs
 *   21. Status chips
 *   22. Pros and cons
 *   23. Use cases
 *   24. Gallery
 *   25. Accordions (troubleshooting and FAQ)
 *   26. Security
 *   27. Community themes
 *   28. Blog cards
 *   29. Call to action band
 *   30. Inner page hero and breadcrumbs
 *   31. Documents, table of contents
 *   32. Article pages
 *   33. Link hub and contact
 *   34. Footer
 *   34b. MemcardRex hero app, reviews, reveal
 *   35. Responsive (largest to smallest breakpoint)
 *   36. Accessibility (reduced motion) and print
 */

/* ==== 01. Fonts =================================================== */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-400-normal.woff2) format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-500-normal.woff2) format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-600-normal.woff2) format("woff2");
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/poppins-latin-600-normal.woff2) format("woff2");
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/poppins-latin-700-normal.woff2) format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2");
}

/* ==== 02. Design tokens =========================================== */
:root {
  --primary: #C2410C;
  --primary-d: #9A3412;
  --primary-50: #FFF1E8;
  --navy: #1E2230;
  --accent: #0F9F8F;
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --elev: #F0F2F5;
  --text: #15171C;
  --text-2: #5F6673;
  --muted: #9097A3;
  --border: #E3E5EA;
  --success: #16A34A;
  --warning: #D97706;
  --code-bg: #161A22;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --sh-1: 0 1px 2px rgba(16,24,40,.05);
  --sh-2: 0 1px 3px rgba(16,24,40,.06),0 8px 24px -6px rgba(21,26,45,.10);
  --sh-3: 0 24px 60px -18px rgba(21,26,45,.35);
  --font-h: Poppins,"Segoe UI",system-ui,-apple-system,sans-serif;
  --font-b: Inter,"Segoe UI",system-ui,-apple-system,Roboto,sans-serif;
  --font-m: "JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --wrap: 1240px;
  --read: 760px;
  --header-h: 72px;
}

/* ==== 03. Base and typography ===================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  font-family: var(--font-b);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
svg[aria-hidden="true"] {
  width: 20px;
  height: 20px;
  flex: none;
}
a {
  color: var(--primary-d);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--primary);
}
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-h);
  color: var(--text);
  line-height: 1.18;
  margin: 0 0 .5em;
  letter-spacing: -.018em;
  font-weight: 700;
}
/* H1 SIZE: every H1 on the site (hero, pages, articles) uses this one value.
   Change it here only. Tablet/phone sizes are in section 35. */
h1 {
  font-size: 36px;
}
h2 {
  font-size: 40px;
}
h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.01em;
}
h4 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}
p {
  margin: 0 0 1.1em;
}
code,
kbd,
pre {
  font-family: var(--font-m);
  font-size: 15px;
}
:not(pre)>code {
  background: var(--elev);
  border: 1px solid var(--border);
  padding: .1em .4em;
  border-radius: 6px;
  font-size: 15px;
  color: #9A3412;
  word-break: break-word;
}

/* ==== 04. Layout helpers ========================================== */
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 200;
}
.skip:focus {
  left: 12px;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.lead {
  font-size: 19px;
  color: #3F4659;
  line-height: 1.65;
}
.muted {
  color: var(--text-2);
}
.small {
  font-size: 14px;
}

/* ==== 05. Buttons and links ======================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease,background-color .15s ease,box-shadow .15s ease,border-color .15s ease;
  white-space: nowrap;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(232,89,12,.7),inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover {
  background: var(--primary-d);
  color: #fff;
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--sh-1);
}
.btn-ghost:hover {
  border-color: #C9CEDB;
  color: var(--text);
  transform: translateY(-1px);
}
.btn-light {
  background: #fff;
  color: var(--navy);
}
.btn-light:hover {
  background: #FFEDD5;
  color: var(--navy);
}
.btn-outline-light {
  border-color: rgba(255,255,255,.28);
  color: #fff;
}
.btn-outline-light:hover {
  border-color: #fff;
  color: #fff;
}
.btn:active {
  transform: translateY(0) scale(.98);
}
.text-link {
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.text-link:hover {
  text-decoration: underline;
}

/* ==== 06. Header and navigation =================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,246,248,.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s,box-shadow .2s,background-color .2s;
}
.site-header.scrolled {
  background: rgba(255,255,255,.94);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px -16px rgba(21,26,45,.35);
}
.hdr {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
  transition: height .2s;
}
.scrolled .hdr {
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.02em;
  flex: none;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}
.brand:hover {
  color: var(--text);
}
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 0;
}
.nav a {
  color: #3F4659;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  transition: background-color .15s,color .15s;
}
.nav a:hover {
  background: var(--elev);
  color: var(--text);
}
.nav a[aria-current="page"] {
  color: var(--primary-d);
  background: var(--primary-50);
}
.menu-btn {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
  transition: transform .2s,background-color .2s;
}
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-btn span::before {
  top: -6px;
}
.menu-btn span::after {
  top: 6px;
}
.menu-open .menu-btn span {
  background: transparent;
}
.menu-open .menu-btn span::before {
  transform: translateY(6px) rotate(45deg);
}
.menu-open .menu-btn span::after {
  transform: translateY(-6px) rotate(-45deg);
}
.menu {
  display: flex;
  align-items: center;
  margin-left: auto;
}

/* ==== 07. Reading progress bar ==================================== */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg,var(--primary),#FB923C);
  z-index: 120;
}

/* ==== 08. Hero ==================================================== */
.hero {
  position: relative;
  padding: 72px 0 64px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(21,26,45,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(21,26,45,.045) 1px,transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 78% 40%,#000 20%,transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 78% 40%,#000 20%,transparent 75%);
  pointer-events: none;
}
.hero-grid>* {
  min-width: 0;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,5fr) minmax(0,6fr);
  gap: 56px;
  align-items: center;
}
.hero h1 {
  line-height: 1.15;
  margin-bottom: 22px;
}
.hero .lead {
  max-width: 560px;
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #3F4659;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: var(--r-sm);
  line-height: 1.4;
}
.chip b {
  font-weight: 600;
  color: var(--text);
}
.chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ==== 09. Hero visual (editor, console, result card) ============== */
.stage {
  position: relative;
  min-height: 520px;
}
.stage::before {
  content: "";
  position: absolute;
  inset: 8% 4% 6% 10%;
  background: radial-gradient(closest-side,rgba(232,89,12,.38),rgba(232,89,12,0));
  filter: blur(20px);
  z-index: 0;
}
.win {
  position: relative;
  background: #0F1422;
  border: 1px solid #262D4A;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  overflow: hidden;
  color: #E6E9F2;
  z-index: 1;
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  background: #171D33;
  border-bottom: 1px solid #262D4A;
  font-family: var(--font-m);
  font-size: 12px;
  color: #8C95B3;
}
.win-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #FF5F57;
  flex: none;
}
.win-bar i:nth-child(2) {
  background: #FEBC2E;
}
.win-bar i:nth-child(3) {
  background: #28C840;
}
.win-bar span {
  margin-left: 10px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.win-bar .tab {
  margin-left: auto;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #22294A;
  color: #B7BEE0;
}
.editor {
  width: 88%;
  margin-left: 12%;
}
.editor-body {
  display: grid;
  grid-template-columns: 132px minmax(0,1fr);
  min-height: 300px;
}
.files {
  background: #121829;
  border-right: 1px solid #222944;
  padding: 16px 0;
  font-family: var(--font-m);
  font-size: 12px;
  color: #9AA3BF;
}
.files div {
  padding: 5px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.files div.on {
  background: rgba(232,89,12,.22);
  color: #fff;
  box-shadow: inset 2px 0 0 var(--primary);
}
.files .ind {
  padding-left: 30px;
}
.files svg {
  width: 13px;
  height: 13px;
  flex: none;
}
.editor pre {
  margin: 0;
  padding: 18px 16px 22px;
  font-size: 12px;
  line-height: 1.75;
  overflow: hidden;
}
.ln {
  display: inline-block;
  width: 22px;
  color: #48506E;
  user-select: none;
}
.console {
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 64%;
  border-radius: var(--r-lg);
  z-index: 2;
}
.console .win-bar {
  height: 36px;
}
.console pre {
  margin: 0;
  padding: 14px 16px 16px;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
}
.console .l {
  display: block;
  opacity: 1;
}
.result {
  position: absolute;
  right: 0;
  bottom: 36px;
  z-index: 3;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-2);
  padding: 14px 16px;
  width: 250px;
  font-size: 13px;
}
.result .row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.result .av {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg,#F97316,#9A3412);
  flex: none;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-family: var(--font-h);
  font-size: 13px;
}
.result strong {
  display: block;
  font-size: 13px;
}
.result .mc {
  font-family: var(--font-m);
  font-size: 12px;
  color: #15803D;
}
.result .meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
  color: var(--text-2);
  font-size: 12px;
}
@media (prefers-reduced-motion: no-preference) {
  .console .l {
    opacity: 0;
    animation: ln .35s ease forwards;
  }

  .console .l:nth-child(1) {
    animation-delay: .25s;
  }

  .console .l:nth-child(2) {
    animation-delay: .55s;
  }

  .console .l:nth-child(3) {
    animation-delay: .85s;
  }

  .console .l:nth-child(4) {
    animation-delay: 1.15s;
  }

  .console .l:nth-child(5) {
    animation-delay: 1.45s;
  }

  .console .l:nth-child(6) {
    animation-delay: 1.75s;
  }

  .result {
    opacity: 0;
    animation: pop .45s cubic-bezier(.2,.8,.2,1) 2.1s forwards;
  }

  @keyframes ln {
    from {
      opacity: 0;
      transform: translateY(4px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes pop {
    from {
      opacity: 0;
      transform: translateY(10px) scale(.97);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ==== 10. Syntax highlighting ===================================== */
.k {
  color: #FED7AA;
}
.k2 {
  color: #A5B4FC;
}
.s {
  color: #9BE7A8;
}
.e {
  color: #FDBA74;
}
.v {
  color: #7DD3FC;
}
.n {
  color: #F9A8D4;
}
.c {
  color: #6B7593;
  font-style: italic;
}
.ok {
  color: #4ADE80;
}
.dim {
  color: #6B7593;
}
.w {
  color: #F3F4F6;
}

/* ==== 11. Trust band ============================================== */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.trust ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5,1fr);
}
.trust li {
  padding: 22px 22px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.trust li:first-child {
  border-left: 0;
  padding-left: 0;
}
.trust .t-k {
  font-size: 13px;
  color: var(--text-2);
}
.trust .t-v {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}
.trust a {
  text-decoration: none;
}

/* ==== 12. Section scaffolding ===================================== */
.sec {
  padding: 96px 0;
}
.sec-tight {
  padding: 72px 0;
}
.sec-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sec-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.sec-head p {
  color: var(--text-2);
  font-size: 17px;
  margin: 0;
}
.sec-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.split-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.split-head .sec-head {
  margin-bottom: 0;
}

/* ==== 13. About / editorial ======================================= */
.editorial {
  display: grid;
  grid-template-columns: minmax(0,4fr) minmax(0,7fr);
  gap: 72px;
}
.editorial-aside {
  position: sticky;
  top: 110px;
  align-self: start;
}
.editorial-aside h2 {
  font-size: 48px;
}
.editorial-aside p {
  color: var(--text-2);
}
.prose h3 {
  margin-top: 2em;
}
.prose h3:first-child {
  margin-top: 0;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 1.2em;
}
.prose li {
  margin-bottom: .45em;
}
.expert {
  position: relative;
  margin: 36px 0;
  padding: 28px 30px 26px 30px;
  background: var(--navy);
  color: #D7DBEA;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.expert::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(closest-side,rgba(232,89,12,.55),transparent);
  pointer-events: none;
}
.expert h4 {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.expert h4 svg {
  width: 20px;
  height: 20px;
  color: #FDBA74;
}
.expert p {
  margin: 0;
  position: relative;
}
.vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}
.vs .code {
  margin: 0;
}

/* ==== 14. Code blocks ============================================= */
.code {
  margin: 1.6em 0;
  background: var(--code-bg);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid #232A44;
  box-shadow: var(--sh-1);
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 8px 0 16px;
  height: 44px;
  background: #171D33;
  border-bottom: 1px solid #232A44;
  font-family: var(--font-m);
  font-size: 12px;
  color: #8C95B3;
}
.code-head .lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.code-head .lang::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.code-head .lang.java::before {
  background: #F59E0B;
}
.code-head .lang.sh::before {
  background: #FDBA74;
}
.copy {
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 600;
  color: #C9CEE0;
  background: transparent;
  border: 1px solid #333B5C;
  border-radius: 8px;
  min-height: 32px;
  min-width: 44px;
  padding: 0 12px;
  cursor: pointer;
  transition: background-color .15s,color .15s,border-color .15s;
}
.copy:hover {
  background: #232A48;
  color: #fff;
}
.copy.done {
  color: #4ADE80;
  border-color: #1F5135;
}
.code pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  color: #E6E9F2;
  font-size: 14px;
  line-height: 1.72;
  tab-size: 4;
}

/* ==== 15. Features bento ========================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(12,1fr);
  gap: 16px;
}
.f {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 26px 24px;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease,box-shadow .2s ease,border-color .2s;
}
.f:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
  border-color: #D5D9E4;
}
.f .ic {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--primary-50);
  color: var(--primary-d);
  margin-bottom: 18px;
  transition: transform .25s;
}
.f:hover .ic {
  transform: rotate(-6deg);
}
.f .ic svg {
  width: 22px;
  height: 22px;
}
.f h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.f p {
  color: var(--text-2);
  font-size: 15px;
  margin-bottom: 14px;
}
.f .gain {
  margin-top: auto;
  font-size: 14px;
  color: #15803D;
  font-weight: 500;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding-top: 12px;
  border-top: 1px solid var(--elev);
}
.f .gain svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 3px;
}
.f.big {
  grid-column: span 7;
  grid-row: span 2;
  background: var(--navy);
  border-color: var(--navy);
  color: #C9CEE0;
}
.f.big h3 {
  color: #fff;
  font-size: 24px;
}
.f.big p {
  color: #AEB5CC;
  font-size: 16px;
}
.f.big .ic {
  background: rgba(232,89,12,.25);
  color: #FED7AA;
}
.f.big .gain {
  color: #86EFAC;
  border-color: #262D4A;
}
.f.big .code {
  margin: 8px 0 18px;
  border-color: #262D4A;
}
.f.wide {
  grid-column: span 5;
}
.f.tint {
  background: linear-gradient(180deg,#FFFBF7,#FFF4EC);
  border-color: #FED7AA;
}

/* ==== 16. How it works pipeline =================================== */
.pipe {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 0;
  position: relative;
  counter-reset: pipe;
}
.pipe::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 27px;
  height: 2px;
  background: repeating-linear-gradient(90deg,#FDBA8C 0 8px,transparent 8px 14px);
}
.pipe li {
  position: relative;
  padding: 0 12px;
  text-align: center;
  counter-increment: pipe;
}
.pipe .node {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--sh-2);
  display: grid;
  place-items: center;
  color: var(--primary-d);
  position: relative;
}
.pipe .node svg {
  width: 24px;
  height: 24px;
}
.pipe .node::after {
  content: counter(pipe);
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font: 600 12px/22px var(--font-b);
}
.pipe li:last-child .node {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.pipe h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.pipe p {
  font-size: 14px;
  color: var(--text-2);
  margin: 0;
}
.pipe code {
  font-size: 12px;
}

/* ==== 17. Requirements, tables and notes ========================== */
.req {
  display: grid;
  grid-template-columns: minmax(0,7fr) minmax(0,5fr);
  gap: 32px;
  align-items: start;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th,
td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
thead th {
  background: var(--elev);
  font-family: var(--font-b);
  font-weight: 600;
  font-size: 14px;
  color: #3F4659;
  white-space: nowrap;
}
tbody tr:last-child td,
tbody tr:last-child th {
  border-bottom: 0;
}
tbody th {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
td small {
  display: block;
  color: var(--text-2);
  margin-top: 2px;
}
.note {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #78350F;
  font-size: 15px;
}
.note svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
}
.note p {
  margin: 0;
}
.note.info {
  background: #F0F9FF;
  border-color: #BAE6FD;
  color: #0C4A6E;
}
.note.ok {
  background: #F0FDF4;
  border-color: #BBF7D0;
  color: #14532D;
}
.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
}
.side-card h3 {
  font-size: 18px;
}
.side-card + .side-card,
.side-card + .note {
  margin-top: 16px;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ticks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #DCFCE7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316A34A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.ticks.x li::before {
  background: #FEE2E2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DC2626' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ==== 18. Download band =========================================== */
.dl {
  background: var(--navy);
  color: #C9CEE0;
  position: relative;
  overflow: hidden;
}
.dl::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  right: -200px;
  top: -260px;
  background: radial-gradient(closest-side,rgba(232,89,12,.5),transparent);
  pointer-events: none;
}
.dl h2,
.dl h3 {
  color: #fff;
}
.dl-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,5fr) minmax(0,6fr);
  gap: 56px;
  align-items: start;
}
.dl-grid .lead {
  color: #AEB5CC;
}
.specs {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #2A3150;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(255,255,255,.02);
}
.specs div {
  padding: 16px 20px;
  border-bottom: 1px solid #2A3150;
  border-right: 1px solid #2A3150;
}
.specs div:nth-child(2n) {
  border-right: 0;
}
.specs div:nth-last-child(-n+2) {
  border-bottom: 0;
}
.specs dt {
  font-size: 13px;
  color: #8C95B3;
  margin-bottom: 3px;
}
.specs dd {
  margin: 0;
  color: #F3F4F6;
  font-weight: 600;
  font-size: 16px;
}
.specs dd a {
  color: #FED7AA;
}
.specs .live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.specs .live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(34,197,94,.18);
}
.dl-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 20px;
}
.dl .fine {
  font-size: 14px;
  color: #8C95B3;
  margin: 0;
}

/* ==== 19. Installation steps ====================================== */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: st;
  position: relative;
}
.steps>li {
  position: relative;
  padding: 0 0 34px 72px;
  counter-increment: st;
}
.steps>li::before {
  content: counter(st);
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--sh-1);
  display: grid;
  place-items: center;
  font: 700 16px/44px var(--font-h);
  text-align: center;
  color: var(--primary-d);
}
.steps>li::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 52px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.steps>li:last-child::after {
  display: none;
}
.steps>li:last-child::before {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.steps h3 {
  font-size: 18px;
  margin: 8px 0 6px;
}
.steps p {
  color: #3F4659;
}
.steps .code {
  margin: 14px 0;
}
.install-grid {
  display: grid;
  grid-template-columns: minmax(0,7fr) minmax(0,4fr);
  gap: 56px;
  align-items: start;
}
.install-grid aside {
  position: sticky;
  top: 100px;
}

/* ==== 20. Tabs ==================================================== */
.tabs {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
}
.tablist {
  display: flex;
  gap: 4px;
  padding: 8px;
  background: var(--elev);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.tablist button {
  flex: 1;
  min-height: 46px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  font: 600 15px var(--font-b);
  color: var(--text-2);
  cursor: pointer;
  padding: 0 18px;
  white-space: nowrap;
  transition: background-color .15s,color .15s,box-shadow .15s;
}
.tablist button[aria-selected="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--sh-2);
}
.tablist button:hover {
  color: var(--text);
}
.tabpanel {
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.tabpanel[hidden] {
  display: none;
}
.tabpanel .code {
  margin: 0;
}
.tabpanel h3 {
  font-size: 18px;
  margin: 0 0 8px;
}
.tabpanel p {
  color: #3F4659;
  font-size: 16px;
}
.ex {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (prefers-reduced-motion: no-preference) {
  .tabpanel:not([hidden]) {
    animation: fade .25s ease;
  }

  @keyframes fade {
    from {
      opacity: 0;
      transform: translateY(4px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ==== 21. Status chips ============================================ */
.st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.st::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.st-ok {
  background: #DCFCE7;
  color: #15803D;
}
.st-part {
  background: #FEF3C7;
  color: #B45309;
}
.st-addon {
  background: var(--primary-50);
  color: var(--primary-d);
}
.st-na {
  background: #F2F4F7;
  color: #475467;
}
.st-doc {
  background: #E0F2FE;
  color: #0369A1;
}
.st-no {
  background: #FEE2E2;
  color: #B91C1C;
}

/* ==== 22. Pros and cons =========================================== */
.pc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.pc>div {
  padding: 32px;
}
.pc>div+div {
  border-left: 1px solid var(--border);
  background: #FCFCFE;
}
.pc h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pc h3 svg {
  width: 22px;
  height: 22px;
  color: var(--success);
}
.pc>div+div h3 svg {
  color: var(--warning);
}
.pc .ticks li {
  margin-bottom: 16px;
}
.pc .ticks b {
  display: block;
  color: var(--text);
}
.pc .ticks span {
  color: var(--text-2);
  font-size: 15px;
}

/* ==== 23. Use cases =============================================== */
.uses {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.use {
  padding: 30px 28px 30px 0;
  border-bottom: 1px solid var(--border);
}
.use:nth-child(3n+2),
.use:nth-child(3n) {
  padding-left: 28px;
  border-left: 1px solid var(--border);
}
.use h3 {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.use h3 svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}
.use p {
  color: var(--text-2);
  font-size: 15px;
  margin-bottom: 10px;
}
.use blockquote {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--elev);
  font-size: 14px;
  color: #3F4659;
}
.use blockquote b {
  color: var(--text);
}

/* ==== 24. Gallery ================================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
}
.gallery figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.gallery figure:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery figure:first-child img {
  flex: 1;
  min-height: 0;
  aspect-ratio: auto;
  height: 100%;
}
.gallery figure:last-child {
  grid-column: span 2;
}
.gallery img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #1A2036;
}
.gallery figcaption {
  padding: 12px 14px 14px;
  font-size: 14px;
  color: var(--text-2);
  margin-top: auto;
}
.gallery figcaption b {
  display: block;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 2px;
}

/* ==== 25. Accordions (troubleshooting and FAQ) ==================== */
.acc {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  margin-bottom: 10px;
  transition: border-color .2s,box-shadow .2s;
}
.acc[open] {
  border-color: #FCD0B4;
  box-shadow: var(--sh-2);
}
.acc summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 54px 18px 20px;
  font-weight: 600;
  position: relative;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.acc summary::-webkit-details-marker {
  display: none;
}
.acc summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s;
}
.acc[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.acc .acc-body {
  padding: 0 20px 20px;
  color: #3F4659;
}
.acc .acc-body p:last-child {
  margin-bottom: 0;
}
.fix {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px 14px;
  font-size: 15px;
}
.fix dt {
  font-weight: 600;
  color: var(--text-2);
  font-size: 13px;
  padding-top: 2px;
}
.fix dd {
  margin: 0 0 8px;
}
.faq-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  align-items: start;
}
.faq-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  margin: 36px 0 14px;
}
.faq-cat svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}
.faq-cat:first-child {
  margin-top: 0;
}

/* ==== 26. Security ================================================ */
.sec-split {
  display: grid;
  grid-template-columns: minmax(0,5fr) minmax(0,6fr);
  gap: 56px;
  align-items: start;
}
.shield {
  background: linear-gradient(160deg,#1E2230,#2B3042);
  color: #C9CEE0;
  border-radius: var(--r-xl);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.shield h3 {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.shield h3 svg {
  width: 22px;
  height: 22px;
  color: #FDBA74;
}
.shield ol {
  padding-left: 1.2em;
  margin: 0;
}
.shield li {
  margin-bottom: 10px;
}
.shield li::marker {
  color: #FDBA74;
  font-weight: 700;
}

/* ==== 27. Community themes ======================================== */
.themes {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}
.theme {
  padding: 24px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
}
.theme h3 {
  font-size: 17px;
}
.theme p {
  color: var(--text-2);
  font-size: 15px;
  margin: 0;
}
.theme .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.tag-up {
  background: #DCFCE7;
  color: #15803D;
}
.tag-mix {
  background: #FEF3C7;
  color: #B45309;
}

/* ==== 28. Blog cards ============================================== */
.posts {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .2s ease,box-shadow .2s ease;
  position: relative;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
}
.post-card .thumb {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #1A2036;
}
.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.post-card:hover .thumb img {
  transform: scale(1.03);
}
.post-card .body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cat {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-d);
  background: var(--primary-50);
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 12px;
  text-decoration: none;
}
.post-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.post-card h3 a {
  color: var(--text);
  text-decoration: none;
}
.post-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.post-card .cat {
  position: relative;
  z-index: 1;
}
.post-card p {
  color: var(--text-2);
  font-size: 15px;
  margin-bottom: 16px;
}
.post-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  gap: 10px;
}
.post-meta .go {
  color: var(--primary-d);
  font-weight: 600;
}
.post-card.lead-card {
  grid-column: span 2;
  flex-direction: row;
}
.post-card.lead-card .thumb {
  flex: 0 0 58%;
  aspect-ratio: auto;
}
.post-card.lead-card .thumb img {
  height: 100%;
}
.post-card.lead-card h3 {
  font-size: 23px;
}
.post-card.lead-card .body {
  padding: 28px;
}

/* ==== 29. Call to action band ===================================== */
.cta {
  border-radius: var(--r-xl);
  padding: 56px;
  background: radial-gradient(120% 140% at 100% 0%,#F97316 0%,#C2410C 45%,#7C2D12 100%);
  color: #FFF1E8;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(90deg,transparent 30%,#000);
  mask-image: linear-gradient(90deg,transparent 30%,#000);
  pointer-events: none;
}
.cta h2 {
  color: #fff;
  margin-bottom: 12px;
}
.cta p {
  margin: 0;
  color: #FFE4D2;
}
.cta .acts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

/* ==== 30. Inner page hero and breadcrumbs ========================= */
.page-hero {
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg,#fff,var(--bg));
}
.page-hero h1 {
  margin: 12px 0 14px;
  max-width: 860px;
}
.page-hero .lead {
  max-width: 760px;
  margin: 0;
}
.crumbs {
  font-size: 14px;
  color: var(--text-2);
}
.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.crumbs li+li::before {
  content: "/";
  margin-right: 6px;
  color: var(--muted);
}
.crumbs a {
  color: var(--text-2);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--primary-d);
  text-decoration: underline;
}

/* ==== 31. Documents, table of contents ============================ */
.page-body {
  padding: 56px 0 88px;
}
.doc {
  display: grid;
  grid-template-columns: minmax(0,1fr) 270px;
  gap: 56px;
  align-items: start;
}
.doc.single {
  grid-template-columns: minmax(0,var(--read));
  justify-content: center;
}
.content {
  max-width: var(--read);
  min-width: 0;
  overflow-wrap: break-word;
}
.content h2 {
  margin-top: 2em;
  padding-top: .2em;
}
.content h2:first-child {
  margin-top: 0;
}
.content h3 {
  margin-top: 1.6em;
}
.content ul,
.content ol {
  padding-left: 1.3em;
  margin: 0 0 1.2em;
}
.content li {
  margin-bottom: .45em;
}
.content .table-wrap {
  margin: 1.6em 0;
}
.content figure {
  margin: 2em 0;
}
.content figure img {
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #1A2036;
}
.content figcaption {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 10px;
}
.content .note {
  margin: 1.6em 0;
}
.toc {
  position: sticky;
  top: 96px;
  font-size: 15px;
}
.toc-box {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 18px 18px 12px;
}
.toc h2 {
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  margin: 0 0 10px;
  letter-spacing: 0;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  color: #3F4659;
  text-decoration: none;
  border-left: 2px solid transparent;
  line-height: 1.4;
}
.toc a:hover {
  background: var(--elev);
}
.toc a.on {
  color: var(--primary-d);
  background: var(--primary-50);
  border-left-color: var(--primary);
}
.toc .side-card {
  margin-top: 16px;
  padding: 20px;
}
.toc .side-card p {
  font-size: 14px;
  color: var(--text-2);
}
.toc .side-card .btn {
  width: 100%;
  min-height: 44px;
  font-size: 14px;
}

/* ==== 32. Article pages =========================================== */
.art-hero {
  padding: 44px 0 0;
}
.art-hero .wrap {
  max-width: 980px;
}
.art-hero h1 {
  margin: 14px 0 16px;
}
.art-hero .lead {
  margin-bottom: 22px;
}
.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  font-size: 14px;
  color: var(--text-2);
  padding-bottom: 26px;
}
.byline .who {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.byline .who img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #fff;
}
.byline .who small {
  display: block;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.2;
}
.feat {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.feat img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow: var(--sh-2);
  background: #1A2036;
}
.related {
  padding: 72px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.pn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}
.pn a {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  transition: border-color .2s,box-shadow .2s;
}
.pn a:hover {
  border-color: #FDBA8C;
  box-shadow: var(--sh-2);
}
.pn small {
  display: block;
  color: var(--text-2);
  font-size: 13px;
  margin-bottom: 4px;
}
.pn b {
  font-family: var(--font-h);
  font-weight: 600;
}
.pn .next {
  text-align: right;
}
.mini-faq {
  margin-top: 2.4em;
}

/* ==== 33. Link hub and contact ==================================== */
.hub {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  margin: 1.6em 0;
}
.hub a {
  display: block;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s,transform .2s;
}
.hub a:hover {
  border-color: #FDBA8C;
  transform: translateY(-2px);
}
.hub b {
  display: block;
  font-family: var(--font-h);
  font-weight: 600;
  margin-bottom: 4px;
}
.hub span {
  font-size: 14px;
  color: var(--text-2);
}
.mail {
  font-family: var(--font-m);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  background: var(--elev);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: var(--r-sm);
  display: inline-block;
  user-select: all;
}

/* ==== 34. Footer ================================================== */
.site-footer {
  background: var(--navy);
  color: #AEB5CC;
  padding: 72px 0 0;
  margin-top: 0;
  font-size: 15px;
}
.ft-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(5,1fr);
  gap: 32px;
}
.ft-brand .brand {
  color: #fff;
}
.ft-brand .brand img {
  border-color: #fff;
}
.ft-brand p {
  margin: 16px 0 20px;
  color: #AEB5CC;
  max-width: 330px;
}
.site-footer h2 {
  font-family: var(--font-b);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: 0;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li {
  margin-bottom: 6px;
}
.site-footer a {
  color: #AEB5CC;
  text-decoration: none;
  display: inline-block;
  padding: 3px 0;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.updates {
  margin-top: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 28px;
  border: 1px solid #2A3150;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.03);
  flex-wrap: wrap;
}
.updates h2 {
  font-family: var(--font-h);
  font-size: 18px;
  margin: 0 0 4px;
}
.updates p {
  margin: 0;
}
.updates .btn {
  min-height: 46px;
}
.ft-bottom {
  margin-top: 40px;
  padding: 22px 0 30px;
  border-top: 1px solid #262D4A;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #8C95B3;
}
.ft-bottom p {
  margin: 0;
  max-width: 760px;
}

/* ==== 34b. MemcardRex hero app, reviews, specs, reveal ============= */
.app {
  position: relative;
  z-index: 1;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--sh-3);
  overflow: hidden;
}
.app-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: #F4F5F8;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-m);
  font-size: 12px;
  color: #6B7280;
}
.app-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #FF5F57;
}
.app-bar i:nth-child(2) {
  background: #FEBC2E;
}
.app-bar i:nth-child(3) {
  background: #28C840;
}
.app-bar span {
  margin-left: auto;
  margin-right: auto;
}
.app-menu {
  display: flex;
  gap: 20px;
  padding: 8px 16px;
  font-size: 13px;
  color: #3F4659;
  border-bottom: 1px solid var(--elev);
}
.app-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 12px 0;
}
.app-tabs b {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px 8px 0 0;
  background: var(--elev);
  color: #3F4659;
}
.app-tabs b.on {
  background: #FFFFFF;
  color: var(--text);
  box-shadow: inset 0 2px 0 var(--primary), 0 0 0 1px var(--border);
}
.app table {
  font-size: 13px;
}
.app th,
.app td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--elev);
  white-space: nowrap;
}
.app thead th {
  font-size: 12px;
  background: #F7F8FA;
}
.app td img {
  width: 24px;
  height: 24px;
  image-rendering: pixelated;
  border-radius: 4px;
}
.app tr.sel td {
  background: #FFF1E8;
}
.app .mono {
  font-family: var(--font-m);
  font-size: 12px;
  color: #5F6673;
}
.app-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #FAFBFC;
  font-size: 12px;
  color: var(--text-2);
}
.blocks {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 4px;
  flex: 1;
  max-width: 330px;
}
.blocks span {
  aspect-ratio: 1;
  border-radius: 3px;
  border: 1px solid #C9CED8;
}
.blocks .b1 { background: #F97316; border-color: #F97316; }
.blocks .b2 { background: #22C55E; border-color: #22C55E; }
.blocks .b3 { background: #3B82F6; border-color: #3B82F6; }
.blocks .b4 { background: #EAB308; border-color: #EAB308; }
.blocks .b5 { background: #EC4899; border-color: #EC4899; }
.blocks .b6 { background: #14B8A6; border-color: #14B8A6; }
.toast {
  position: absolute;
  right: -10px;
  bottom: -26px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--navy);
  color: #E6E9F2;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--sh-3);
  font-size: 13px;
}
.toast b {
  display: block;
  color: #FFFFFF;
  font-size: 14px;
}
.toast svg {
  width: 22px;
  height: 22px;
  color: #4ADE80;
}
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review p {
  margin: 0;
  color: #3F4659;
  font-size: 15px;
}
.review .who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--elev);
}
.review .who img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  image-rendering: pixelated;
}
.review .who b {
  display: block;
  font-size: 15px;
}
.review .who span {
  font-size: 13px;
  color: var(--text-2);
}
.review .tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--primary-50);
  color: var(--primary-d);
}
.stage {
  min-height: 0;
}
.app.mini {
  margin: 6px 0 18px;
  box-shadow: none;
  border-color: #343C5E;
}
.app.mini td {
  color: #15171C;
}
.label-note {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 16px;
}
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
.skeleton {
  background: linear-gradient(90deg, #ECEEF2 25%, #F5F6F8 50%, #ECEEF2 75%);
  background-size: 200% 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .skeleton {
    animation: shimmer 1.4s linear infinite;
  }

  @keyframes shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
  }
}
@media (max-width: 900px) {
  .reviews {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .reviews {
    grid-template-columns: 1fr;
  }

  .app .hide-sm {
    display: none;
  }

  .toast {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 14px;
  }

  .blocks {
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}


/* ==== 35. Responsive (largest to smallest breakpoint) ============= */
@media (max-width: 1100px) {
  h2 {
    font-size: 36px;
  }

  .editorial-aside h2 {
    font-size: 40px;
  }

  .hero-grid,
  .dl-grid,
  .req,
  .sec-split,
  .install-grid {
    grid-template-columns: minmax(0,1fr);
  }

  .editorial {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .editorial-aside,
  .install-grid aside {
    position: static;
  }

  .stage {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
  }

  .ft-grid {
    grid-template-columns: repeat(3,1fr);
  }

  .ft-brand {
    grid-column: 1/-1;
  }

  .doc {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    order: -1;
  }

  .toc .side-card {
    display: none;
  }

  .gallery {
    grid-template-columns: repeat(2,1fr);
  }

  .gallery figure:last-child {
    grid-column: auto;
  }

  .cta {
    grid-template-columns: 1fr;
    padding: 40px;
  }

  .cta .acts {
    justify-content: flex-start;
  }
}
@media (max-width: 1040px) {
  .menu-btn {
    display: inline-flex;
  }

  .menu {
    display: none;
  }

  .menu-open .menu {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 18px 20px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 30px -24px rgba(21,26,45,.35);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  .menu-open .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .menu-open .nav a {
    padding: 12px 14px;
    font-size: 16px;
  }
}
@media (max-width: 900px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 32px;
  }

  .editorial-aside h2 {
    font-size: 34px;
  }

  .lead {
    font-size: 18px;
  }

  .trust ul {
    grid-template-columns: repeat(2,1fr);
  }

  .trust li {
    border-left: 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
  }

  .trust li:nth-child(2n) {
    padding-left: 18px;
    border-left: 1px solid var(--border);
  }

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

  .bento .f,
  .bento .f.big,
  .bento .f.wide {
    grid-column: span 12;
  }

  .bento .f {
    grid-column: span 6;
  }

  .bento .f.big {
    grid-row: auto;
  }

  .pipe {
    grid-template-columns: repeat(3,1fr);
    row-gap: 36px;
  }

  .pipe::before {
    display: none;
  }

  .tabpanel {
    grid-template-columns: 1fr;
  }

  .uses {
    grid-template-columns: 1fr 1fr;
  }

  .use,
  .use:nth-child(3n+2),
  .use:nth-child(3n) {
    padding: 26px 22px 26px 0;
    border-left: 0;
  }

  .use:nth-child(2n) {
    padding-left: 22px;
    border-left: 1px solid var(--border);
  }

  .themes,
  .posts,
  .hub {
    grid-template-columns: 1fr 1fr;
  }

  .post-card.lead-card {
    grid-column: span 2;
    flex-direction: column;
  }

  .post-card.lead-card .thumb {
    flex: none;
  }

  .pc {
    grid-template-columns: 1fr;
  }

  .pc>div+div {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .faq-cols {
    grid-template-columns: 1fr;
  }

  .vs {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  h1 {
    font-size: 28px;
  }

  body {
    font-size: 16px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 19px;
  }

  .editorial-aside h2 {
    font-size: 30px;
  }

  .lead {
    font-size: 17px;
  }

  :not(pre)>code {
    font-size: 14px;
  }

  .wrap {
    padding: 0 18px;
  }

  .sec {
    padding: 68px 0;
  }

  .sec-tight {
    padding: 52px 0;
  }

  .hero {
    padding: 44px 0 48px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .stage {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .editor {
    width: 100%;
    margin: 0;
  }

  .editor-body {
    grid-template-columns: 1fr;
  }

  .files {
    display: none;
  }

  .console,
  .result {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
  }

  .console pre {
    font-size: 12px;
  }

  .bento .f {
    grid-column: span 12;
  }

  .pipe {
    grid-template-columns: 1fr 1fr;
  }

  .uses,
  .themes,
  .posts,
  .hub {
    grid-template-columns: minmax(0,1fr);
  }

  .use,
  .use:nth-child(2n) {
    padding: 24px 0;
    border-left: 0;
  }

  .post-card.lead-card {
    grid-column: auto;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery figure:first-child {
    grid-column: auto;
    grid-row: auto;
  }

  .specs {
    grid-template-columns: 1fr;
  }

  .specs div {
    border-right: 0;
  }

  .specs div:nth-last-child(2) {
    border-bottom: 1px solid #2A3150;
  }

  .dl-actions .btn,
  .cta .btn {
    flex: 1 1 100%;
  }

  .ft-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tabpanel {
    padding: 20px;
  }

  .steps>li {
    padding-left: 60px;
  }

  .fix {
    grid-template-columns: 1fr;
  }

  .fix dt {
    padding-top: 0;
  }

  .pn {
    grid-template-columns: 1fr;
  }

  .pn .next {
    text-align: left;
  }

  .cta {
    padding: 30px 22px;
  }

  .shield {
    padding: 26px;
  }

  .pc>div {
    padding: 24px;
  }

  th,
  td {
    padding: 12px 14px;
  }

  .code pre {
    font-size: 13px;
    padding: 16px;
  }
}
@media (max-width: 380px) {
  .ft-grid {
    grid-template-columns: 1fr;
  }

  .pipe {
    grid-template-columns: 1fr;
  }

  .brand {
    font-size: 17px;
  }
}

/* ==== 36. Accessibility (reduced motion) and print ================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
    scroll-behavior: auto!important;
  }
}
@media print {
  .site-header,
  .site-footer,
  .toc,
  .progress {
    display: none;
  }
}
