/* =============================================================
   PhpStorm.org — "Black Tile & Shards" design  (seed PS-2611-SHARD)
   1. Fonts   2. Settings (edit colors/sizes here)   3. Base
   4. Header  5. Buttons  6. Homepage sections  7. Inner pages
   8. Footer  9. Animations  10. Responsive  11. Reduced motion
   ============================================================= */

/* ---------- 1. Fonts (self-hosted Poppins, OFL licence) ---------- */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-display: swap; src: url("../fonts/poppins-800.woff2") format("woff2"); }

/* ---------- 2. Settings you can edit ---------- */
:root {
  /* Brand colors (no blue) — taken from the PhpStorm logo: black tile + magenta/violet shards */
  --ink: #16101A;            /* black tiles, headings, dark sections */
  --ink-2: #241A2B;
  --magenta: #FF318C;        /* decorative shards */
  --magenta-dark: #C8105F;   /* buttons, links, accents (readable on white) */
  --violet: #B345F1;         /* decorative shards */
  --violet-dark: #8A1FC7;
  --sun: #FFC72C;            /* highlight accent */
  --grad: linear-gradient(135deg, var(--magenta), var(--violet));
  --ok: #1F7A45;   --ok-soft: #E4F5EA;     /* success */
  --warn: #8A5300; --warn-soft: #FFF2CF;   /* warning */
  --fail: #B42318; --fail-soft: #FDE8E6;   /* error */

  /* Neutrals */
  --text: #3D3343;
  --muted: #6B5F72;
  --bg: #FBF8FC;             /* page background */
  --band: #F4EEF6;           /* alternate sections */
  --surface: #FFFFFF;
  --border: #E5DCE8;

  /* Type */
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --hero-h1-size: 3.4rem;    /* hero H1 on desktop */
  --hero-h1-mobile: 2.05rem; /* hero H1 on phones */
  --h2-size: 2.35rem;
  --body-size: 1rem;

  /* Layout */
  --container: 1140px;
  --header-h: 74px;
  --hard: 8px 8px 0 var(--ink);   /* hard offset shadow used on tiles */
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 18px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: var(--body-size); line-height: 1.72; color: var(--text); background: var(--bg); overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--magenta-dark); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
h1, h2, h3 { overflow-wrap: break-word; font-family: var(--font); color: var(--ink); line-height: 1.15; margin: 0 0 .55em; letter-spacing: -.02em; }
h2 { font-size: var(--h2-size); font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: .86em; }
code { background: var(--band); padding: 2px 6px; }
:focus-visible { outline: 3px solid var(--magenta-dark); outline-offset: 3px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 880px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- 4. Header: logo left, menu right ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 252, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 2px solid var(--ink); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.28rem; letter-spacing: -.03em; flex-shrink: 0; }
.logo img { width: 40px; height: 40px; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.logo:hover img { transform: rotate(-8deg) scale(1.08); }
.logo:hover { color: var(--ink); }
.logo span { display: inline-flex; align-items: flex-end; }
.caret { display: inline-block; width: 12px; height: 3px; margin: 0 0 6px 3px; background: currentColor; animation: blink 1.1s steps(1) infinite; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a { position: relative; display: block; padding: 9px 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav a[aria-current="page"]::after { display: none; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 2px solid var(--ink); background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle .bars { display: grid; gap: 5px; }
.menu-toggle i { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] { background: var(--ink); }
.menu-toggle[aria-expanded="true"] i { background: #fff; }
.menu-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 24px; font: 700 .98rem/1.2 var(--font); text-decoration: none; border: 2px solid var(--ink); cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s; text-align: center; overflow: hidden; isolation: isolate; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-big { padding: 16px 28px; font-size: 1.04rem; }
.btn-block { width: 100%; }
.btn-main { background: var(--magenta-dark); color: #fff; box-shadow: 5px 5px 0 var(--ink); }
.btn-main::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); transform: translateX(-101%); transition: transform .35s ease; }
.btn-main:hover { color: #fff; transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn-main:hover::before { transform: none; }
.btn-main:hover svg { animation: nudge .7s ease infinite; }
.btn-main:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-line svg { transition: transform .2s; }
.btn-line:hover svg { transform: translateX(4px); }
.hero-tile .btn-line, .cta-tile .btn-line { color: #fff; border-color: #fff; }
.hero-tile .btn-line:hover { background: #fff; color: var(--ink); }
.hero-tile .btn-main, .cta-tile .btn-main { border-color: #fff; box-shadow: 5px 5px 0 var(--sun); }
.hero-tile .btn-main:hover, .cta-tile .btn-main:hover { box-shadow: 7px 7px 0 var(--sun); }

/* ---------- 6. Homepage ---------- */
.section { padding: 100px 0; position: relative; }
.band { background: var(--band); }
.kicker { display: flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--magenta-dark); margin-bottom: 14px; }
.kicker::before { content: ""; width: 22px; height: 22px; background: var(--grad); clip-path: polygon(20% 0, 100% 15%, 85% 100%, 0 70%); }
.split-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px 60px; align-items: end; margin-bottom: 52px; padding-bottom: 26px; border-bottom: 2px solid var(--ink); }
.split-head h2 { margin: 0; }
.split-head p { margin: 0; color: var(--muted); }
.split-head.stacked { grid-template-columns: minmax(0, 1fr); }
.note-text { max-width: 880px; margin: 28px 0 0; color: var(--muted); font-size: .95rem; }

/* 6.1 Hero — black tile + floating shards + editor */
.hero { position: relative; padding: 64px 0 110px; overflow: hidden;
  background-image: linear-gradient(rgba(22, 16, 26, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(22, 16, 26, .05) 1px, transparent 1px);
  background-size: 48px 48px; }
.hero-shards i, .cta-shards i, .footer .shards i { position: absolute; display: block; background: var(--grad); }
.hero-shards .s1 { right: -80px; top: 30px; width: 520px; height: 470px; clip-path: polygon(18% 0, 100% 8%, 92% 78%, 40% 100%, 0 46%); animation: drift 14s ease-in-out infinite; }
.hero-shards .s2 { right: 300px; bottom: -60px; width: 300px; height: 280px; background: linear-gradient(200deg, var(--violet), var(--magenta)); clip-path: polygon(30% 0, 100% 30%, 80% 100%, 0 70%); opacity: .85; animation: drift 18s ease-in-out infinite reverse; }
.hero-shards .s3 { left: 38%; top: -40px; width: 120px; height: 120px; background: var(--sun); clip-path: polygon(50% 0, 100% 40%, 70% 100%, 0 80%); opacity: .9; animation: spin 26s linear infinite; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; }
.hero-tile { position: relative; z-index: 1; background: var(--ink); color: #D9D0DE; padding: 56px 120px 84px 56px; box-shadow: 14px 14px 0 var(--magenta-dark); }
.hero-chip { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: #fff; border: 1px solid rgba(255, 255, 255, .25); padding: 6px 14px; margin-bottom: 22px; }
.hero-chip .dot { width: 8px; height: 8px; background: var(--sun); animation: pulse 2s ease infinite; }
.hero h1 { font-size: var(--hero-h1-size); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; color: #fff; margin-bottom: 26px; }
.h1-a { display: inline-block; background: linear-gradient(90deg, #FF6FB0, #D99BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h1-b { display: inline; }
.js .h1-a, .js .h1-b { display: inline-block; animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.js .h1-b { animation-delay: .15s; }
.lead { font-size: 1.02rem; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.tile-caret { position: absolute; left: 56px; bottom: 36px; width: 84px; height: 10px; background: #fff; animation: blink 1.1s steps(1) infinite; }
.hero-side { position: relative; z-index: 2; margin-left: -70px; padding-top: 70px; }
.hero-facts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 26px 0 0; padding: 0; border: 2px solid var(--ink); background: var(--surface); }
.hero-facts li { padding: 12px 14px; min-width: 0; }
.hero-facts li + li { border-left: 2px solid var(--ink); }
.hero-facts b { display: block; color: var(--ink); font-size: .98rem; line-height: 1.3; }
.hero-facts span { font-size: .76rem; color: var(--muted); line-height: 1.35; display: block; }

/* editor illustration */
.editor { margin: 0; background: var(--surface); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.editor figcaption { font-size: .72rem; color: var(--muted); padding: 8px 14px 10px; border-top: 1px solid var(--border); }
.ed-tabs { display: flex; gap: 0; background: var(--band); border-bottom: 2px solid var(--ink); font-size: .74rem; overflow: hidden; }
.ed-tabs span { padding: 8px 14px; white-space: nowrap; border-right: 1px solid var(--border); color: var(--muted); }
.ed-tabs .on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: inset 0 -3px 0 var(--magenta-dark); }
.ed-tabs .dim { opacity: .7; }
.ed-body { position: relative; padding: 14px 0 18px; min-height: 250px; }
.ed-code { list-style: none; counter-reset: ln; margin: 0; padding: 0; font-family: var(--mono); font-size: .8rem; line-height: 1.85; color: var(--ink); overflow: hidden; }
.ed-code li { white-space: pre; min-height: 1.85em; }
.ed-code li { counter-increment: ln; padding-right: 12px; }
.ed-code li::before { content: counter(ln); display: inline-block; width: 38px; padding-right: 12px; text-align: right; color: #A89CAE; }
.ed-code b { font-weight: 400; }
.ed-code .k { color: #B0136A; font-weight: 600; }
.ed-code .t { color: #7A23B5; }
.ed-code .f { color: #8A5300; }
.ed-code .s { color: #1F7A45; }
.ed-code li:nth-child(5) { background: rgba(255, 199, 44, .16); }
.fix-slot { position: relative; display: inline-block; }
.squiggle { position: absolute; left: -96px; bottom: -2px; width: 96px; height: 5px; background: linear-gradient(135deg, transparent 45%, #D99200 45% 55%, transparent 55%) 0 0 / 6px 5px, linear-gradient(45deg, transparent 45%, #D99200 45% 55%, transparent 55%) 3px 0 / 6px 5px; }
.fixed { display: inline-block; overflow: hidden; vertical-align: bottom; }
.ed-pop { position: absolute; left: 60px; top: 150px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 9px 12px; background: var(--ink); color: #fff; font-size: .74rem; box-shadow: 5px 5px 0 var(--sun); max-width: calc(100% - 76px); }
.pop-ico { width: 18px; height: 18px; display: grid; place-items: center; background: var(--sun); color: var(--ink); font-weight: 800; }
.ed-pop kbd { background: rgba(255, 255, 255, .15); padding: 1px 6px; }
.ed-pop em { font-style: normal; color: var(--sun); }
.ed-ok { position: absolute; right: 14px; bottom: 10px; display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; color: var(--ok); background: var(--ok-soft); padding: 4px 10px; }
.ed-ok svg { width: 14px; height: 14px; }
.ed-status { display: flex; gap: 14px; justify-content: flex-end; padding: 6px 14px; font-size: .7rem; color: var(--muted); background: var(--band); border-top: 1px solid var(--border); }
.ed-status .ok { color: var(--ok); font-weight: 600; }
/* editor states (JS loops them; without JS the fixed state shows) */
.no-js .squiggle, .no-js .ed-pop { display: none; }
.js .editor .fixed { max-width: 0; transition: max-width .6s ease; }
.js .editor .squiggle { opacity: 0; transition: opacity .3s; }
.js .editor .ed-pop { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.js .editor .ed-ok { opacity: 0; transform: scale(.9); transition: opacity .3s, transform .3s; }
.js .editor.st-warn .squiggle, .js .editor.st-pop .squiggle { opacity: 1; }
.js .editor.st-pop .ed-pop { opacity: 1; transform: none; }
.js .editor.st-fixed .fixed { max-width: 90px; }
.js .editor.st-fixed .ed-ok { opacity: 1; transform: none; }
.js .editor.st-fixed .ed-code li:nth-child(5) { background: rgba(31, 122, 69, .1); }

/* 6.2 Features — bento of tiles */
.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 18px; }
.tile { --mx: 50%; --my: 50%; position: relative; padding: 26px 24px; background: var(--surface); border: 2px solid var(--ink); transition: transform .25s ease, box-shadow .25s ease; overflow: hidden; }
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 49, 140, .13), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.tile:hover { transform: translate(-4px, -4px); box-shadow: var(--hard); }
.tile:hover::before { opacity: 1; }
.tile > svg { width: 34px; height: 34px; color: var(--magenta-dark); margin-bottom: 18px; }
.tile h3 { font-size: 1.05rem; }
.tile p { margin: 0; font-size: .93rem; }
.tile.wide { grid-column: span 2; }
.tile.big { grid-column: span 2; grid-row: span 2; background: var(--ink); color: #D9D0DE; display: flex; flex-direction: column; justify-content: flex-end; padding: 36px 34px; min-height: 360px; }
.tile.big::after { content: ""; position: absolute; right: -40px; top: -40px; width: 230px; height: 210px; background: var(--grad); clip-path: polygon(18% 0, 100% 8%, 92% 78%, 40% 100%, 0 46%); animation: drift 12s ease-in-out infinite; }
.tile.big > * { position: relative; z-index: 1; }
.tile.big > svg { color: #fff; width: 44px; height: 44px; }
.tile.big h3 { color: #fff; font-size: 1.6rem; position: relative; }
.tile.big p { font-size: 1rem; position: relative; }
.tile.big::before { background: radial-gradient(300px circle at var(--mx) var(--my), rgba(179, 69, 241, .25), transparent 70%); }
.tile.big:hover { box-shadow: 8px 8px 0 var(--magenta-dark); }
.tile:nth-child(4) { background: var(--grad); border-color: var(--ink); }
.tile:nth-child(4) h3, .tile:nth-child(4) p, .tile:nth-child(4) > svg { color: #fff; }
.tile:nth-child(9) { background: #FFF6D9; }

/* 6.3 Download — PHP array spec */
.dl { background: var(--band); }
.dl-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.dl-copy h2 { margin-bottom: 18px; }
.dl-copy .btn { margin-top: 6px; }
.dl-note { display: flex; gap: 12px; align-items: flex-start; margin: 26px 0 12px; font-size: .92rem; padding: 14px 16px; background: var(--surface); border: 2px solid var(--ink); border-left: 8px solid var(--magenta-dark); }
.dl-note svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--magenta-dark); }
.dl-alt { font-size: .9rem; color: var(--muted); margin: 0; }
.spec { margin: 0; background: var(--ink); color: #D9D0DE; border: 2px solid var(--ink); box-shadow: 12px 12px 0 var(--violet-dark); }
.spec-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: #0E0A11; font-family: var(--mono); font-size: .78rem; color: #fff; }
.spec-dots { display: flex; gap: 6px; }
.spec-dots i { width: 10px; height: 10px; background: var(--magenta); }
.spec-dots i:nth-child(2) { background: var(--violet); }
.spec-dots i:nth-child(3) { background: var(--sun); }
.spec-code { list-style: none; counter-reset: ln; margin: 0; padding: 16px 0 18px; font-family: var(--mono); font-size: .82rem; line-height: 1.95; overflow-x: auto; }
.spec-code li { counter-increment: ln; white-space: nowrap; padding-right: 16px; }
.spec-code li::before { content: counter(ln); display: inline-block; width: 40px; padding-right: 14px; text-align: right; color: #6E6176; }
.spec-code li:not(:first-child):not(:last-child) { padding-left: 2ch; }
.spec-code .var { color: #E3B3FF; }
.spec-code .key { color: var(--sun); }
.spec-code .op { color: #9D90A6; }
.spec-code .val { color: #FF8CC0; }
.spec-code .cmt { color: #8F8398; font-style: italic; }
.spec figcaption { padding: 12px 18px; font-size: .78rem; color: #BFB3C6; border-top: 1px solid rgba(255, 255, 255, .12); }
.js .spec .spec-code li { opacity: 0; transform: translateX(-10px); transition: opacity .35s, transform .35s; transition-delay: calc(var(--i, 0) * 70ms + 120ms); }
.js .spec.show .spec-code li { opacity: 1; transform: none; }
.js .spec .spec-code li:first-child, .js .spec .spec-code li:last-child { opacity: 1; transform: none; }

/* 6.4 How to download — breakpoint gutter */
.howto { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 56px; align-items: start; }
.howto-head { position: sticky; top: calc(var(--header-h) + 30px); }
.howto-head p { color: var(--muted); }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--surface); border: 2px solid var(--ink); color: var(--text) !important; font-size: .92rem; }
.callout svg { width: 24px; height: 24px; color: var(--ok); flex-shrink: 0; }
.bp-list { list-style: none; margin: 0; padding: 0; border: 2px solid var(--ink); background: var(--surface); }
.bp-step { position: relative; display: grid; grid-template-columns: 52px 30px minmax(0, 1fr); align-items: start; padding: 22px 22px 22px 0; border-bottom: 1px solid var(--border); transition: background .35s; }
.bp-step:last-child { border-bottom: 0; }
.bp-step::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 82px; background: var(--band); z-index: 0; }
.ln { position: relative; z-index: 1; text-align: right; padding-right: 10px; font-family: var(--mono); font-size: .8rem; color: #A89CAE; line-height: 1.9; }
.bp { position: relative; z-index: 1; width: 16px; height: 16px; margin: 6px 0 0 2px; border: 2px solid var(--magenta-dark); border-radius: 50%; transition: background .3s, transform .3s; }
.bp-step > div { padding-left: 16px; }
.bp-step h3 { margin-bottom: 4px; }
.bp-step p { margin: 0; font-size: .94rem; }
.bp-step.passed .bp { background: var(--magenta-dark); }
.bp-step.cur { background: #FFF6D9; }
.bp-step.cur .bp { background: var(--magenta-dark); transform: scale(1.25); box-shadow: 0 0 0 5px rgba(200, 16, 95, .18); }
.bp-step.cur .ln { color: var(--ink); font-weight: 700; }
.no-js .bp-step .bp { background: var(--magenta-dark); }

/* 6.5 What it does — dark ink section + marquee */
.ink { background: var(--ink); color: #D9D0DE; padding-bottom: 0; overflow: hidden; }
.ink h2, .ink h3 { color: #fff; }
.ink a { color: #FF8CC0; }
.ink a:hover { color: #fff; }
.ink .kicker { color: var(--sun); }
.wid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: start; padding-bottom: 90px; }
.big-quote { font-size: 1.9rem; font-weight: 800; line-height: 1.2; letter-spacing: -.025em; color: #fff; margin: 8px 0 22px; }
.big-quote::first-line { background: linear-gradient(90deg, #FF6FB0, #D99BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.uses { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.uses li { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 18px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.uses li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.u-no { font-size: 3.4rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--magenta); }
.uses h3 { margin-bottom: 6px; }
.uses p { margin: 0; font-size: .95rem; }
.ticker { display: flex; overflow: hidden; background: linear-gradient(135deg, var(--magenta-dark), var(--violet-dark)); border-top: 2px solid var(--ink); }
.ticker ul { list-style: none; display: flex; flex-shrink: 0; margin: 0; padding: 18px 0; animation: marquee 40s linear infinite; }
.ticker li { padding: 0 22px; font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; color: #fff; white-space: nowrap; }
.ticker li::after { content: "/"; margin-left: 44px; color: rgba(255, 255, 255, .45); }
.ticker:hover ul { animation-play-state: paused; }

/* 6.6 Install — OS strip + first-run grid */
.os-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--ink); margin-bottom: 40px; background: var(--surface); }
.os { padding: 24px 24px 20px; min-width: 0; }
.os + .os { border-left: 2px solid var(--ink); }
.os h3 { display: flex; align-items: center; gap: 10px; }
.os h3::before { content: ""; width: 14px; height: 14px; background: var(--magenta-dark); }
.os:nth-child(2) h3::before { background: var(--violet-dark); }
.os:nth-child(3) h3::before { background: var(--sun); }
.os p { margin: 0; font-size: .93rem; }
.first-run { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.first-run li { position: relative; padding: 26px 26px 26px 0; border-top: 2px solid var(--ink); min-width: 0; }
.first-run li:nth-child(n+4) { border-top-style: dashed; border-top-width: 1px; border-top-color: var(--muted); }
.fr-no { display: block; font-size: 2.6rem; font-weight: 800; line-height: 1; margin-bottom: 12px; color: transparent; -webkit-text-stroke: 1.5px var(--ink); transition: color .3s; }
.first-run li:hover .fr-no { color: var(--magenta-dark); -webkit-text-stroke-color: var(--magenta-dark); }
.first-run h3 { margin-bottom: 6px; }
.first-run p { margin: 0; font-size: .93rem; }
.after-steps { margin: 30px 0 0; padding: 16px 20px; background: var(--band); border-left: 6px solid var(--violet-dark); font-size: .95rem; }

/* 6.7 Compatibility — test runner */
.runner { background: var(--surface); border: 2px solid var(--ink); box-shadow: var(--hard); }
.runner-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 12px 18px; background: var(--ink); color: #fff; font-size: .86rem; font-weight: 600; }
.runner-bar > span:first-child { display: flex; align-items: center; gap: 8px; }
.runner-bar svg { width: 18px; height: 18px; color: #7EE2A5; }
.runner-sum b { font-weight: 600; }
.runner-sum .p { color: #7EE2A5; }
.runner-sum .m { color: var(--sun); }
.runner-sum .f { color: #FF9C93; }
.runner-progress { height: 6px; background: var(--fail-soft); }
.runner-progress i { display: block; height: 100%; width: calc(var(--w) * 100%); background: var(--ok); }
.js .runner .runner-progress i { width: 0; transition: width 1.4s cubic-bezier(.2, .8, .2, 1) .3s; }
.js .runner.show .runner-progress i { width: calc(var(--w) * 100%); }
.table-wrap { overflow-x: auto; background: var(--surface); }
.runner .table-wrap { border: 0; }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 600px; }
.data th, .data td { padding: 13px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.data thead th { background: var(--band); color: var(--ink); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; border-bottom: 2px solid var(--ink); }
.data tbody th { color: var(--ink); font-weight: 600; }
.data tbody tr:last-child > * { border-bottom: 0; }
.data tbody tr { transition: background .2s; }
.data tbody tr:hover { background: #FFF6FA; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; border: 1.5px solid currentColor; }
.pill::before { font-weight: 800; }
.pill.ok { color: var(--ok); background: var(--ok-soft); }
.pill.ok::before { content: "✓"; }
.pill.maybe { color: var(--warn); background: var(--warn-soft); }
.pill.maybe::before { content: "?"; }
.pill.no { color: var(--fail); background: var(--fail-soft); }
.pill.no::before { content: "✕"; }
.hw { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 34px 0 0; padding: 0; }
.hw li { padding: 18px 20px; border-left: 2px solid var(--ink); min-width: 0; }
.hw b { display: block; font-size: 1.7rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.2; }
.hw span { font-size: .86rem; color: var(--muted); }

/* 6.8 Pros and cons — diff view */
.diff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 2px solid var(--ink); background: var(--surface); }
.diff-col + .diff-col { border-left: 2px solid var(--ink); }
.diff-h { margin: 0; padding: 10px 18px; font-family: var(--mono); font-size: .8rem; background: var(--band); border-bottom: 2px solid var(--ink); color: var(--violet-dark); }
.diff ul { list-style: none; margin: 0; padding: 0; }
.diff li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 4px; padding: 13px 18px 13px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.diff li:last-child { border-bottom: 0; }
.add li { background: linear-gradient(90deg, var(--ok-soft), transparent 70%); }
.del li { background: linear-gradient(90deg, var(--fail-soft), transparent 70%); }
.sign { text-align: center; font-family: var(--mono); font-weight: 800; font-size: 1.1rem; line-height: 1.5; }
.add .sign { color: var(--ok); }
.del .sign { color: var(--fail); }

/* 6.9 Comparison */
.compare th.me, .compare td.me { background: #FFF0F7; color: var(--ink); font-weight: 600; }
.compare thead th.me { background: var(--ink); color: #fff; box-shadow: inset 0 -5px 0 var(--magenta); }
.compare tbody th { position: sticky; left: 0; background: var(--surface); z-index: 1; }
#compare .table-wrap { border: 2px solid var(--ink); box-shadow: var(--hard); }

/* 6.10 Troubleshooting — inspections */
.insp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.insp { background: var(--surface); border: 2px solid var(--ink); border-left-width: 8px; }
.insp.err { border-left-color: var(--fail); }
.insp.warn { border-left-color: #D99200; }
.insp.weak { border-left-color: var(--violet-dark); }
.insp summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 600; color: var(--ink); }
.insp summary::-webkit-details-marker { display: none; }
.insp summary::after { content: "+"; margin-left: auto; flex-shrink: 0; font-family: var(--mono); font-size: 1.3rem; line-height: 1; transition: transform .3s; }
.insp[open] summary::after { transform: rotate(45deg); }
.sev { flex-shrink: 0; white-space: nowrap; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; }
.err .sev { background: var(--fail-soft); color: var(--fail); }
.warn .sev { background: var(--warn-soft); color: var(--warn); }
.weak .sev { background: #F1E6FA; color: var(--violet-dark); }
.iq { min-width: 0; flex: 1 1 0; }
.insp > div { padding: 0 18px 16px; animation: drop .3s ease; }
.insp p { margin: 0 0 8px; font-size: .93rem; }
.qf { padding: 10px 12px; background: var(--ok-soft); border-left: 3px solid var(--ok); }
.best { margin-top: 30px; padding: 24px 28px; background: var(--ink); color: #D9D0DE; }
.best h3 { display: flex; gap: 10px; align-items: center; color: #fff; }
.best h3 svg { width: 22px; height: 22px; color: #7EE2A5; }
.best ul { margin: 0; padding-left: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 36px; }
.best a { color: #FF8CC0; }

/* 6.11 Editorial perspectives — commit log */
.log { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; }
.log::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 3px; background: var(--grad); }
.commit { position: relative; padding: 0 0 34px; }
.commit:last-child { padding-bottom: 0; }
.node { position: absolute; left: -32px; top: 6px; width: 18px; height: 18px; background: var(--surface); border: 3px solid var(--ink); transform: rotate(45deg); transition: background .3s; }
.commit:hover .node { background: var(--magenta-dark); }
.commit code { display: inline-block; font-size: .76rem; background: var(--ink); color: var(--sun); padding: 3px 10px; margin-bottom: 8px; }
.commit h3 { font-size: 1.2rem; margin-bottom: 4px; }
.commit p { margin: 0; max-width: 700px; }

/* 6.12 FAQ — code folds */
.faq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 2px solid var(--ink); background: var(--surface); }
.faq-group { padding: 22px 22px 10px; min-width: 0; }
.faq-group + .faq-group { border-left: 2px solid var(--ink); }
.faq-group > h3 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--magenta-dark); padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.fold { border-bottom: 1px solid var(--border); }
.fold:last-child { border-bottom: 0; }
.fold summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 6px; padding: 14px 0; font-weight: 600; color: var(--ink); font-size: .95rem; line-height: 1.45; }
.fold summary::-webkit-details-marker { display: none; }
.brace::before { content: "{…}"; font-family: var(--mono); font-size: .8rem; font-weight: 700; color: var(--magenta-dark); background: #FFF0F7; padding: 1px 4px; }
.fold[open] .brace::before { content: "{ }"; background: var(--magenta-dark); color: #fff; }
.fold > div { padding: 0 0 14px 44px; font-size: .93rem; animation: drop .3s ease; }
.fold > div p { margin: 0; }

/* 6.13 Final CTA */
.cta { position: relative; padding: 110px 0 120px; overflow: hidden; background-image: linear-gradient(rgba(22, 16, 26, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(22, 16, 26, .05) 1px, transparent 1px); background-size: 48px 48px; }
.cta-shards .s1 { left: -60px; top: 20px; width: 380px; height: 340px; clip-path: polygon(18% 0, 100% 8%, 92% 78%, 40% 100%, 0 46%); animation: drift 15s ease-in-out infinite; }
.cta-shards .s2 { right: -40px; bottom: 0; width: 420px; height: 380px; background: linear-gradient(200deg, var(--violet), var(--magenta)); clip-path: polygon(30% 0, 100% 30%, 80% 100%, 0 70%); animation: drift 19s ease-in-out infinite reverse; }
.cta-shards .s3 { right: 22%; top: 30px; width: 90px; height: 90px; background: var(--sun); clip-path: polygon(50% 0, 100% 40%, 70% 100%, 0 80%); animation: spin 22s linear infinite; }
.cta-tile { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; background: var(--ink); color: #D9D0DE; padding: 60px 56px 86px; text-align: center; box-shadow: 14px 14px 0 var(--magenta-dark); }
.cta-tile h2 { color: #fff; font-size: 2.5rem; }
.cta-tile p { max-width: 560px; margin: 0 auto 28px; }
.cta-tile .small { font-size: .82rem; margin: 22px auto 0; color: #BFB3C6; }
.cta-tile .tile-caret { left: 50%; margin-left: -42px; }
.js .cta-tile.reveal { clip-path: none; opacity: 0; transform: scale(.94); transition: opacity .7s, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .cta-tile.reveal.show { opacity: 1; transform: none; }

/* ---------- 7. Inner pages ---------- */
.page-top { position: relative; padding: 60px 0 52px; background: var(--ink); color: #D9D0DE; overflow: hidden; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 40px 40px; }
.page-top::after { content: ""; position: absolute; right: -60px; top: -40px; width: 300px; height: 280px; background: var(--grad); clip-path: polygon(18% 0, 100% 8%, 92% 78%, 40% 100%, 0 46%); opacity: .9; animation: drift 14s ease-in-out infinite; }
.page-top .container { position: relative; z-index: 1; }
.page-top h1 { font-size: 2.7rem; font-weight: 800; max-width: 860px; color: #fff; letter-spacing: -.03em; }
.page-top > .container > p { max-width: 720px; font-size: 1.04rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: .85rem; font-family: var(--mono); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--magenta); }
.crumbs a { color: #BFB3C6; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: var(--sun); }
.page-top .label { display: inline-block; background: var(--magenta-dark); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; margin-bottom: 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .86rem; color: #BFB3C6; }
.meta span + span::before { content: "//"; margin-right: 10px; color: var(--magenta); font-family: var(--mono); }
.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.guide-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 2px solid var(--ink); transition: transform .25s, box-shadow .25s; }
.guide-card:hover { transform: translate(-4px, -4px); box-shadow: var(--hard); }
.guide-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 2px solid var(--ink); }
.guide-card .body { padding: 18px 20px 22px; }
.guide-card .cat { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--magenta-dark); }
.guide-card h2, .guide-card h3 { font-size: 1.06rem; margin: 6px 0 8px; }
.guide-card h2 a, .guide-card h3 a { color: var(--ink); text-decoration: none; }
.guide-card h2 a::after, .guide-card h3 a::after { content: ""; position: absolute; inset: 0; }
.guide-card p { font-size: .9rem; margin: 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
.content { max-width: 780px; }
.content h2 { font-size: 1.6rem; margin-top: 1.8em; padding-top: .2em; }
.content h2::before { content: "#"; margin-right: 8px; color: var(--magenta-dark); }
.content h3 { margin-top: 1.4em; }
.content ul, .content ol { padding-left: 22px; }
.content li { margin-bottom: 6px; }
.content li::marker { color: var(--magenta-dark); }
.content .table-wrap { margin: 20px 0; border: 2px solid var(--ink); }
.cover { margin: 0 0 30px; border: 2px solid var(--ink); box-shadow: var(--hard); }
.toc { position: sticky; top: calc(var(--header-h) + 24px); background: var(--surface); border: 2px solid var(--ink); padding: 20px; }
.toc h2 { font-size: 1rem; }
.toc ol { margin: 0 0 18px; padding-left: 20px; font-size: .88rem; }
.toc li { margin-bottom: 6px; }
.toc li::marker { color: var(--magenta-dark); font-weight: 700; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--magenta-dark); }
.toc .btn { width: 100%; }
.toc .btn-main, .toc .btn-main:hover { color: #fff; }
.end-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 44px; padding: 28px; background: var(--ink); color: #D9D0DE; box-shadow: 10px 10px 0 var(--magenta-dark); }
.end-cta h2 { color: #fff; margin: 0 0 4px; font-size: 1.4rem; padding: 0; }
.end-cta h2::before { display: none; }
.end-cta p { margin: 0; font-size: .9rem; }
.end-cta .btn-main { border-color: #fff; box-shadow: 5px 5px 0 var(--sun); }
.related { margin-top: 80px; }
.cols, .map-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.map-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols > div { background: var(--surface); border: 2px solid var(--ink); padding: 18px 20px; }
.cols h3 { margin-top: 0; }
.mail-link { display: inline-flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 700; max-width: 100%; }
.mail-link span { min-width: 0; overflow-wrap: anywhere; }
.mail-link svg { width: 24px; height: 24px; flex-shrink: 0; }
.error-page { padding: 90px 0 110px; text-align: center; }
.error-page .big { font-size: 7rem; font-weight: 800; line-height: 1; margin: 0 0 10px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; animation: glitch 3s steps(1) infinite; }
.err-line code { font-size: .95rem; }
.error-page .row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ---------- 8. Footer ---------- */
.footer { position: relative; background: #0E0A11; color: #BFB3C6; overflow: hidden; }
.footer .shards .s1 { right: -80px; top: -60px; width: 300px; height: 260px; clip-path: polygon(18% 0, 100% 8%, 92% 78%, 40% 100%, 0 46%); opacity: .35; animation: drift 16s ease-in-out infinite; }
.footer .shards .s2, .footer .shards .s3 { display: none; }
.footer-top { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: 50px; padding-top: 70px; padding-bottom: 36px; }
.footer .logo { color: #fff; margin-bottom: 18px; }
.footer .logo:hover { color: #fff; }
.footer-brand p { font-size: .93rem; margin: 0; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer h2 { display: flex; align-items: center; gap: 8px; color: #fff; font-size: .9rem; letter-spacing: .02em; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.footer h2 span { font-family: var(--mono); font-size: .72rem; color: var(--magenta); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer a { color: #D9D0DE; text-decoration: none; font-size: .9rem; transition: color .2s; }
.footer-links a { background: linear-gradient(var(--magenta), var(--magenta)) 0 100% / 0 2px no-repeat; transition: background-size .3s, color .2s; padding-bottom: 2px; }
.footer-links a:hover { color: #fff; background-size: 100% 2px; }
.footer-note { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin: 0; padding: 14px 18px; font-size: .88rem; color: #EDE6F0; border: 1px solid rgba(255, 255, 255, .15); border-left: 4px solid var(--magenta); }
.fn-tag { font-family: var(--mono); color: var(--sun); font-size: .8rem; }
.footer-word { margin: 26px 0 -0.16em; text-align: center; font-size: clamp(3.6rem, 17vw, 13.5rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .16);
  background: linear-gradient(100deg, transparent 35%, rgba(255, 49, 140, .55) 48%, rgba(179, 69, 241, .55) 52%, transparent 65%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; animation: shimmer 7s linear infinite; user-select: none; }
.footer-bottom { position: relative; background: #000; color: #A89CAE; text-align: center; padding: 16px 24px; font-size: .88rem; border-top: 2px solid var(--magenta-dark); }
.footer-bottom a { color: #fff; font-weight: 600; }
.footer-bottom a:hover { color: var(--sun); }

/* ---------- 9. Animations ---------- */
.js .reveal { clip-path: inset(0 0 100% 0); opacity: 0; transition: clip-path .7s cubic-bezier(.2, .8, .2, 1), opacity .5s ease; transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.show { clip-path: inset(-40px -40px -40px -60px); opacity: 1; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(-18px, 14px) rotate(6deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .5; } }
@keyframes rise { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
@keyframes glitch { 0%, 92%, 100% { transform: none; } 94% { transform: translate(-4px, 2px) skewX(-6deg); } 96% { transform: translate(4px, -2px) skewX(6deg); } }

/* ---------- 10. Responsive ---------- */
@media (max-width: 1080px) {
  .nav a { padding: 9px 9px; font-size: .88rem; }
  .nav a::after { left: 9px; right: 9px; }
}
@media (max-width: 960px) {
  :root { --h2-size: 1.95rem; --hero-h1-size: 2.7rem; }
  .menu-toggle { display: inline-flex; }
  .header-row { position: relative; }
  .js .nav { position: absolute; left: 50%; width: 100vw; transform: translateX(-50%); top: calc(100% + 2px); background: var(--bg); border-bottom: 2px solid var(--ink); max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .35s ease, visibility .35s; }
  .js .nav.open { max-height: 80vh; overflow-y: auto; visibility: visible; }
  .js .nav ul { flex-direction: column; padding: 10px 24px 20px; gap: 2px; max-width: var(--container); margin: 0 auto; }
  .js .nav a { padding: 12px 14px; font-size: 1rem; }
  .js .nav a::after { left: 14px; right: auto; width: 40px; }
  .no-js .menu-toggle { display: none; }
  .no-js .header-row { flex-wrap: wrap; padding-bottom: 8px; }
  .no-js .nav { width: 100%; }
  .no-js .nav ul { flex-wrap: wrap; }
  .hero-grid, .dl-grid, .howto, .wid, .article-layout, .footer-top { grid-template-columns: minmax(0, 1fr); }
  .hero-tile { padding-right: 56px; }
  .hero-side { margin: 0 0 0 40px; padding-top: 0; margin-top: -30px; }
  .split-head { grid-template-columns: minmax(0, 1fr); }
  .howto-head { position: static; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .first-run { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .first-run li:nth-child(n+3) { border-top-style: dashed; border-top-width: 1px; border-top-color: var(--muted); }
  .hw { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-group + .faq-group { border-left: 0; border-top: 2px solid var(--ink); }
  .toc { position: static; order: -1; }
  .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .best ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --h2-size: 1.65rem; --header-h: 64px; }
  .container { padding: 0 16px; }
  .section { padding: 70px 0; }
  .hero { padding: 26px 0 70px; }
  .hero-tile { padding: 34px 22px 64px; box-shadow: 8px 8px 0 var(--magenta-dark); }
  .tile-caret { left: 22px; bottom: 26px; width: 60px; height: 8px; }
  .hero h1 { font-size: var(--hero-h1-mobile); }
  .hero-actions .btn { width: 100%; }
  .hero-side { margin: -16px 0 0 12px; }
  .hero-shards .s1 { width: 300px; height: 280px; top: auto; bottom: 120px; }
  .hero-shards .s2 { display: none; }
  .ed-code { font-size: .7rem; }
  .ed-code li::before { width: 28px; padding-right: 8px; }
  .squiggle { left: -80px; width: 80px; }
  .ed-pop { left: 16px; top: 140px; max-width: calc(100% - 32px); }
  .ed-tabs span:nth-child(3) { display: none; }
  .hero-facts { grid-template-columns: minmax(0, 1fr); }
  .hero-facts li + li { border-left: 0; border-top: 2px solid var(--ink); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile.wide, .tile.big { grid-column: auto; grid-row: auto; }
  .tile.big { min-height: 0; padding: 30px 24px; }
  .tile.big::after { width: 110px; height: 100px; right: -20px; top: -20px; }
  .tile.big h3 { font-size: 1.3rem; }
  .spec-code { font-size: .74rem; }
  .bp-step { grid-template-columns: 36px 26px minmax(0, 1fr); padding-right: 14px; }
  .bp-step::before { width: 62px; }
  .bp-step > div { padding-left: 10px; }
  .big-quote { font-size: 1.45rem; }
  .uses li { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; }
  .u-no { font-size: 2.4rem; }
  .ticker li { font-size: 1.05rem; }
  .os-row { grid-template-columns: minmax(0, 1fr); }
  .os + .os { border-left: 0; border-top: 2px solid var(--ink); }
  .first-run { grid-template-columns: minmax(0, 1fr); }
  .first-run li { padding-right: 0; }
  .first-run li:nth-child(n+2) { border-top-style: dashed; border-top-width: 1px; border-top-color: var(--muted); }
  .hw { grid-template-columns: minmax(0, 1fr); }
  .hw b { font-size: 1.4rem; }
  .diff { grid-template-columns: minmax(0, 1fr); }
  .diff-col + .diff-col { border-left: 0; border-top: 2px solid var(--ink); }
  .insp-grid { grid-template-columns: minmax(0, 1fr); }
  .insp summary { gap: 10px; align-items: flex-start; }
  .faq-group { padding: 18px 16px 6px; }
  .fold > div { padding-left: 0; }
  .cta { padding: 70px 0 80px; }
  .cta-tile { padding: 40px 20px 64px; box-shadow: 8px 8px 0 var(--magenta-dark); }
  .cta-tile h2 { font-size: 1.75rem; }
  .cta-tile .btn { width: 100%; }
  .page-top h1 { font-size: 1.9rem; }
  .page-top::after { width: 160px; height: 150px; opacity: .6; }
  .content h2 { font-size: 1.36rem; }
  .guides, .cols, .map-cols, .footer-links { grid-template-columns: minmax(0, 1fr); }
  .end-cta .btn { width: 100%; }
  .error-page .big { font-size: 5rem; }
}

/* ---------- 11. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .reveal { clip-path: none; opacity: 1; }
  .js .h1-a, .js .h1-b { animation: none; }
  .ticker ul { animation: none; }
}
