/* ============================================================
   apps-torrent · Dark Purple + Pink
   bg #12111A · sidebar #200310 · accent #FF6B9C
   ============================================================ */

:root {
  --bg:         #12111A;
  --bg-2:       #18111f;
  --sidebar:    #200310;
  --sb-brd:     rgba(232,180,216,0.07);
  --card:       #1e1228;
  --card-2:     #2a1535;
  --brd:        rgba(232,180,216,0.07);
  --brd-2:      rgba(232,180,216,0.13);
  --acc:        #FF6B9C;
  --acc-2:      #ff8fb5;
  --acc-s:      rgba(255,107,156,0.15);
  --acc-glow:   rgba(255,107,156,0.30);
  --text:       #f0dcea;
  --soft:       #c490b8;
  --muted:      #7a4d70;
  --green:      #22c55e;
  --green-s:    rgba(34,197,94,0.14);
  --blue:       #60a5fa;
  --blue-s:     rgba(96,165,250,0.14);
  --purple:     #E8B4D8;
  --purple-s:   rgba(232,180,216,0.14);
  --sb-w:       258px;
  --top-h:      58px;
  --rad:        12px;
  --rad-sm:     8px;
  --rad-lg:     18px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --disp: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  --sh:    0 2px 16px rgba(0,0,0,.45);
  --sh-lg: 0 12px 48px rgba(0,0,0,.65);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 700px 500px at 80% -10%, rgba(255,107,53,.07) 0%, transparent 65%),
    radial-gradient(ellipse 500px 400px at -5% 50%, rgba(96,165,250,.05) 0%, transparent 65%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; padding: 0; }
input { font: inherit; color: inherit; border: none; background: none; outline: none; width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 9999; padding: 8px 16px; background: var(--acc); color: #fff; border-radius: var(--rad-sm); }

/* ── LAYOUT ── */
.layout { display: flex; min-height: 100vh; }

/* ══════════════════════════════════
   SIDEBAR
══════════════════════════════════ */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sb-w);
  background: var(--sidebar);
  border-right: 1px solid var(--sb-brd);
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 3px; }

.sb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 14px 14px;
  flex-shrink: 0;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon {
  width: 34px; height: 34px;
  background: #0d0008;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}
.brand:hover .brand-icon { background: #1a000f; }
.brand-name { font-size: 15.5px; font-weight: 400; letter-spacing: -.3px; color: #888; }
.brand-name strong { font-weight: 700; color: #fff; }

.sb-close {
  display: none;
  width: 28px; height: 28px;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  color: var(--soft);
  transition: background .15s, color .15s;
}
.sb-close:hover { background: var(--brd); color: var(--text); }

/* Sidebar search */
.sb-search {
  margin: 0 10px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--brd);
  border-radius: var(--rad-sm);
  padding: 7px 10px;
  transition: border-color .15s, background .15s;
  flex-shrink: 0;
}
.sb-search:focus-within {
  border-color: rgba(255,107,53,.45);
  background: var(--acc-s);
}
.sb-search svg { color: var(--muted); flex-shrink: 0; }
.sb-search-input { font-size: 13px; color: var(--text); }
.sb-search-input::placeholder { color: var(--muted); }

/* Sidebar nav items */
.sb-nav { flex: 1; padding: 4px 8px 24px; }

.sn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7.5px 10px;
  border-radius: var(--rad-sm);
  font-size: 13.5px;
  color: var(--soft);
  transition: background .15s, color .15s;
  position: relative;
  margin-bottom: 1px;
}
.sn:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.sn.active {
  background: var(--acc-s);
  color: var(--acc);
  font-weight: 500;
}
.sn.active::before {
  content: '';
  position: absolute;
  left: 0; top: 7px; bottom: 7px;
  width: 2.5px;
  background: var(--acc);
  border-radius: 2px;
}
.sn-icon { width: 15px; height: 15px; flex-shrink: 0; opacity: .75; }
.sn.active .sn-icon { opacity: 1; }
.sn-count {
  margin-left: auto;
  font-size: 10.5px;
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 1px 7px;
  color: var(--muted);
  font-weight: 500;
}

.sn-divider { height: 1px; background: var(--brd); margin: 8px 4px; }
.sn-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 10px 3px;
}
.sn-os { gap: 8px; }
.sn-os-icon { width: 16px; height: 16px; border-radius: 3px; object-fit: cover; flex-shrink: 0; }
.sn-new-tag {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  background: var(--acc-s);
  color: var(--acc);
  border-radius: 20px;
  padding: 1px 7px;
}

/* Arch chips */
.sn-chips { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px 10px 8px; }
.sn-chip {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  color: var(--soft);
  border: 1px solid var(--brd);
  transition: background .15s, color .15s, border-color .15s;
}
.sn-chip:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.sn-chip.active { background: var(--acc-s); color: var(--acc); border-color: rgba(255,107,53,.3); }

/* ══════════════════════════════════
   MAIN WRAP
══════════════════════════════════ */
.main-wrap {
  flex: 1;
  margin-left: var(--sb-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ── TOPBAR ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--top-h);
  background: rgba(8,11,20,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--brd);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4.5px;
  width: 34px; height: 34px;
  border-radius: var(--rad-sm);
  flex-shrink: 0;
  transition: background .15s;
}
.hamburger:hover { background: var(--brd); }
.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--soft);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.tb-search {
  flex: 1;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--brd);
  border-radius: 10px;
  padding: 8px 14px;
  transition: border-color .15s, background .15s;
}
.tb-search:focus-within { border-color: rgba(255,107,53,.45); background: var(--acc-s); }
.tb-search svg { color: var(--muted); flex-shrink: 0; }
.tb-search input { font-size: 14px; }
.tb-search input::placeholder { color: var(--muted); }
.tb-kbd {
  font-size: 11px; padding: 2px 6px; border-radius: 5px;
  background: rgba(255,255,255,0.06); color: var(--muted); flex-shrink: 0;
}

.tb-right { display: flex; align-items: center; gap: 7px; margin-left: auto; flex-shrink: 0; }
.tb-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 7px var(--green);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.tb-upd { font-size: 12.5px; color: var(--soft); white-space: nowrap; }

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 40px 56px;
}
.hero-glow {
  position: absolute;
  top: -100px; right: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255,107,53,.16) 0%, transparent 68%);
  pointer-events: none;
}
.hero-glow::after {
  content: '';
  position: absolute;
  top: 200px; left: -300px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(96,165,250,.09) 0%, transparent 68%);
}
.hero-content { position: relative; max-width: 700px; }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--acc);
  background: var(--acc-s);
  border: 1px solid rgba(255,107,53,.22);
  border-radius: 20px;
  padding: 4px 13px;
  margin-bottom: 22px;
}
.hero-pill-dot {
  width: 6px; height: 6px;
  background: var(--acc);
  border-radius: 50%;
  animation: blink 2.4s ease-in-out infinite;
}
.hero-h1 {
  font-family: var(--disp);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 700;
  line-height: 1.11;
  letter-spacing: -.03em;
  margin-bottom: 18px;
  color: var(--text);
}
.hero-acc {
  background: linear-gradient(135deg, var(--acc) 0%, #ffaa44 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-p { font-size: 16px; color: var(--soft); max-width: 520px; margin-bottom: 30px; }

.hero-form {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--brd-2);
  border-radius: var(--rad);
  padding: 6px 6px 6px 16px;
  max-width: 560px;
  margin-bottom: 40px;
  transition: border-color .15s;
}
.hero-form:focus-within { border-color: rgba(255,107,53,.5); }
.hf-icon { color: var(--muted); flex-shrink: 0; }
.hero-form input { flex: 1; font-size: 15px; padding: 4px 12px; color: var(--text); }
.hero-form input::placeholder { color: var(--muted); }
.hf-btn {
  background: var(--acc);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 8px;
  flex-shrink: 0;
  transition: background .15s, transform .1s;
  border: none;
  cursor: pointer;
}
.hf-btn:hover { background: var(--acc-2); }
.hf-btn:active { transform: scale(.97); }

.hero-stats { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.hs-item { display: flex; flex-direction: column; }
.hs-n {
  font-family: var(--disp);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1.1;
}
.hs-l { font-size: 12px; color: var(--soft); margin-top: 2px; }
.hs-sep { width: 1px; height: 36px; background: var(--brd); margin: 0 24px; }

/* ══════════════════════════════════
   SECTIONS
══════════════════════════════════ */
.section { padding: 48px 40px 0; }
.faq-section { padding-bottom: 16px; }

.section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--disp);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
}
.sh-icon { color: var(--acc); flex-shrink: 0; }
.see-all {
  font-size: 13px;
  color: var(--acc);
  font-weight: 500;
  opacity: .8;
  transition: opacity .15s;
}
.see-all:hover { opacity: 1; }

/* ══════════════════════════════════
   FEATURED CARD
══════════════════════════════════ */
.feat-card {
  background: var(--card);
  border: 1px solid var(--brd);
  border-radius: var(--rad-lg);
  padding: 28px 32px;
  display: flex;
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: border-color .2s;
}
.feat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--acc) 0%, var(--acc-2) 60%, transparent 100%);
}
.feat-card:hover { border-color: rgba(255,107,53,.3); }

.fc-main { display: flex; gap: 24px; align-items: flex-start; flex: 1; min-width: 0; }
.fc-icon { width: 96px; height: 96px; border-radius: 22px; flex-shrink: 0; box-shadow: 0 8px 28px rgba(0,0,0,.4); }
.fc-body { flex: 1; min-width: 0; }
.fc-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--acc);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.fc-name { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; color: var(--text); }
.fc-desc { font-size: 14px; color: var(--soft); line-height: 1.6; margin-bottom: 14px; max-width: 440px; }
.fc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }

.tag {
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255,255,255,0.07);
  color: var(--soft);
}
.tag-green { background: var(--green-s); color: var(--green); }
.tag-blue  { background: var(--blue-s);  color: var(--blue);  }

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--acc);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 9px;
  transition: background .15s, transform .1s;
}
.dl-btn:hover { background: var(--acc-2); }
.dl-btn:active { transform: scale(.97); }

.fc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  flex-shrink: 0;
  min-width: 200px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--brd);
  border-radius: var(--rad);
  padding: 20px;
}
.fc-stat { display: flex; flex-direction: column; }
.fc-sn { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -.02em; line-height: 1.2; }
.fc-stars { font-size: 12px; color: #f59e0b; margin: 2px 0; }
.fc-sl { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ══════════════════════════════════
   APP GRID + CARDS
══════════════════════════════════ */
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.app-card {
  background: var(--card);
  border: 1px solid var(--brd);
  border-radius: var(--rad);
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.app-card:hover {
  border-color: rgba(255,107,53,.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 0 1px rgba(255,107,53,.12);
}
.app-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,107,53,.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.app-card:hover::after { opacity: 1; }

.ac-head {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 4px 0 2px;
}
.ac-icon {
  width: 64px; height: 64px;
  border-radius: 15px;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  object-fit: cover;
}

.ac-badge {
  position: absolute;
  top: 0; left: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
}
.ac-badge-new     { background: var(--acc-s);    color: var(--acc);    border: 1px solid rgba(255,107,53,.25); }
.ac-badge-hot     { background: rgba(239,68,68,.14);  color: #f87171; border: 1px solid rgba(239,68,68,.25); }
.ac-badge-silicon { background: var(--purple-s); color: var(--purple); border: 1px solid rgba(192,132,252,.25); }

.ac-body { display: flex; flex-direction: column; gap: 5px; }
.ac-name { font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: -.01em; line-height: 1.3; }
.ac-ver  { font-size: 12px; color: var(--muted); }
.ac-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.ac-chip {
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 5px;
}
.chip-green  { background: var(--green-s);  color: var(--green);  }
.chip-blue   { background: var(--blue-s);   color: var(--blue);   }
.chip-purple { background: var(--purple-s); color: var(--purple); }
.chip-gray   { background: rgba(255,255,255,0.07); color: var(--soft); }

.ac-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--brd);
}
.ac-stars { font-size: 12px; color: #f59e0b; letter-spacing: .05em; }
.ac-size  { font-size: 11.5px; color: var(--muted); }

/* ══════════════════════════════════
   macOS GRID
══════════════════════════════════ */
.os-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.os-card {
  background: var(--card);
  border: 1px solid var(--brd);
  border-radius: var(--rad);
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color .2s, background .2s;
  position: relative;
}
.os-card:hover { border-color: var(--brd-2); background: var(--card-2); }
.os-img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.os-info { min-width: 0; }
.os-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os-ver  { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.os-new  {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--acc-s);
  color: var(--acc);
  border-radius: 4px;
  padding: 1px 5px;
  margin-top: 4px;
}

/* ══════════════════════════════════
   FAQ
══════════════════════════════════ */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--brd);
  border-radius: var(--rad);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: rgba(255,107,53,.3); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  gap: 12px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--acc);
  flex-shrink: 0;
  line-height: 1;
  transition: transform .2s;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 20px 16px; }
.faq-a p { font-size: 14px; color: var(--soft); line-height: 1.7; }

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.footer {
  margin-top: 64px;
  border-top: 1px solid var(--brd);
  background: rgba(6,9,16,.8);
}
.footer-inner {
  display: flex;
  gap: 48px;
  padding: 48px 40px 36px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 260px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.footer-brand .brand-name { font-size: 17px; font-weight: 400; }
.footer-tagline { font-size: 13px; color: var(--soft); margin-top: 10px; line-height: 1.6; }
.footer-note    { font-size: 12px; color: var(--muted); margin-top: 6px; }

.footer-nav { display: flex; gap: 40px; flex-wrap: wrap; }
.fn-col { display: flex; flex-direction: column; gap: 8px; }
.fn-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.fn-col a { font-size: 13px; color: var(--soft); transition: color .15s; }
.fn-col a:hover { color: var(--acc); }

.footer-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 40px;
  border-top: 1px solid var(--brd);
  font-size: 12.5px;
  color: var(--muted);
}

/* Overlay */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 190;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.overlay.show { display: block; }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 1100px) {
  .app-grid { grid-template-columns: repeat(3, 1fr); }
  .os-grid  { grid-template-columns: repeat(4, 1fr); }
  .fc-stats { display: none; }
}

@media (max-width: 860px) {
  :root { --sb-w: 240px; }
  .topbar { padding: 0 18px; }
  .section { padding: 36px 20px 0; }
  .hero { padding: 48px 20px 40px; }
  .feat-card { padding: 22px 20px; }
  .footer-inner { padding: 36px 20px 28px; gap: 32px; }
  .footer-copy  { padding: 14px 20px; }
  .app-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .os-grid  { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sb-close { display: flex; }
  .main-wrap { margin-left: 0; }
  .hamburger { display: flex; }
  .tb-right { display: none; }
  .tb-search { max-width: none; }
  .tb-kbd { display: none; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .os-grid  { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 20px; }
  .hs-sep { display: none; }
  .fc-main { flex-direction: column; align-items: center; text-align: center; }
  .fc-tags { justify-content: center; }
  .hero-form { flex-direction: column; gap: 8px; padding: 12px; }
  .hf-btn { width: 100%; justify-content: center; }
  .footer-nav { gap: 24px; }
}

@media (max-width: 420px) {
  .app-grid { grid-template-columns: 1fr; }
  .os-grid  { grid-template-columns: repeat(2, 1fr); }
  .hero-h1  { font-size: 28px; }
  .hero { padding: 36px 16px 32px; }
  .section  { padding: 28px 16px 0; }
  .feat-card { padding: 18px 16px; }
}

/* ── LONGREAD ── */
.lr {
  /* fill the section, internal grids handle proportions */
  width: 100%;
}
.lr-header {
  margin-bottom: 32px;
}
.lr-h2 {
  font-family: var(--disp);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 14px;
}
.lr-lead {
  font-size: 15px;
  line-height: 1.7;
  color: var(--soft);
  border-left: 3px solid var(--acc);
  padding-left: 14px;
}
.lr-toc {
  background: var(--card);
  border: 1px solid var(--brd);
  border-radius: var(--rad);
  padding: 18px 20px;
  margin-bottom: 36px;
}
.lr-toc-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.lr-toc-list {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lr-toc-list a {
  font-size: 13.5px;
  color: var(--soft);
  text-decoration: none;
  transition: color .15s;
}
.lr-toc-list a:hover { color: var(--acc); }
.lr-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.lr-h3 {
  font-family: var(--disp);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-top: 36px;
  margin-bottom: 12px;
  scroll-margin-top: 80px;
}
.lr-h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--acc);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 22px;
  margin-bottom: 10px;
}
.lr-body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--soft);
  margin-bottom: 14px;
}
.lr-body strong { color: var(--text); font-weight: 600; }
.lr-body em { color: var(--acc-2); font-style: normal; }
.lr-list {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lr-list li {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--soft);
  padding-left: 20px;
  position: relative;
}
.lr-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--acc);
  font-weight: 700;
}
.lr-callout {
  background: var(--acc-s);
  border: 1px solid var(--acc-glow);
  border-radius: var(--rad-sm);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--soft);
  margin: 20px 0 8px;
}
.lr-callout strong { color: var(--acc); }

/* ── LONGREAD v2: varied block types ── */

/* spotlight intro — 2-column on desktop */
.lr-spotlight {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  padding: 32px 36px;
  margin-bottom: 30px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,107,156,0.14), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(232,180,216,0.10), transparent 50%),
    linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--brd-2);
  border-radius: var(--rad-lg);
  overflow: hidden;
}
.lr-spotlight::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--acc), var(--purple) 60%, transparent);
}
.lr-spot-text {
  min-width: 0;
}
.lr-spot-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--acc);
  padding: 5px 11px;
  border: 1px solid var(--acc-glow);
  border-radius: 999px;
  background: var(--acc-s);
  margin-bottom: 16px;
}
.lr-spotlight .lr-h2 {
  margin-bottom: 14px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
}
.lr-spotlight .lr-lead {
  border: none;
  padding: 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--soft);
  margin-bottom: 0;
  max-width: 65ch;
}
.lr-spot-stats {
  align-self: stretch;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 22px;
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--brd);
  border-radius: var(--rad);
}
.lr-spot-stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--brd-2);
  border-radius: var(--rad-sm);
}
.lr-spot-stats strong {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  font-family: var(--disp);
  line-height: 1.1;
}
.lr-spot-stats span,
.lr-spot-stats > div > :not(strong) {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* main body uses a grid: content + sticky TOC on the right */
.lr-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: start;
}
.lr-grid > .lr-body {
  min-width: 0;
}
.lr-grid > .lr-toc {
  position: sticky;
  top: 80px;
  margin-bottom: 0;
  align-self: start;
}
.lr-toc-list { padding-left: 16px; }
/* prose paragraphs cap for readability */
.lr-body p { max-width: 70ch; }

/* platform cards (Mac / Windows / iOS) */
.lr-platform {
  position: relative;
  margin: 26px 0;
  border: 1px solid var(--brd-2);
  border-radius: var(--rad-lg);
  background: var(--card);
  overflow: hidden;
}
.lr-platform::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--p-color, var(--acc));
}
.lr-platform--mac { --p-color: #FF6B9C; --p-bg: rgba(255,107,156,0.10); }
.lr-platform--win { --p-color: #60a5fa; --p-bg: rgba(96,165,250,0.10); }
.lr-platform--ios { --p-color: #E8B4D8; --p-bg: rgba(232,180,216,0.10); }

.lr-platform-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px 16px;
  background: var(--p-bg);
  border-bottom: 1px solid var(--brd);
}
.lr-platform-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  color: var(--p-color);
  flex-shrink: 0;
}
.lr-platform-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--p-color);
  margin-bottom: 3px;
}
.lr-platform-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  font-family: var(--disp);
  line-height: 1.3;
  margin: 0;
}
.lr-platform-body { padding: 18px 24px 22px; }
.lr-platform-body > :first-child { margin-top: 0; }
.lr-platform-body > p:last-child { margin-bottom: 0; }
.lr-platform-body .lr-h4 { color: var(--p-color); }

/* numbered steps */
.lr-steps {
  list-style: none;
  padding: 0;
  margin: 14px 0 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lr-steps > li {
  display: flex;
  gap: 12px;
  padding: 14px 14px;
  background: var(--bg-2);
  border: 1px solid var(--brd);
  border-radius: var(--rad-sm);
  font-size: 14px;
  line-height: 1.55;
  color: var(--soft);
  transition: border-color .2s;
}
.lr-steps > li:hover { border-color: var(--p-color, var(--acc)); }
.lr-step-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--p-color, var(--acc));
  color: var(--bg);
  font-family: var(--disp);
  font-size: 12px;
  font-weight: 700;
}

/* safety callout block (richer than the simple lr-callout) */
.lr-callout-block {
  display: flex;
  gap: 16px;
  padding: 22px;
  margin: 26px 0;
  background:
    linear-gradient(180deg, rgba(34,197,94,0.07), transparent 70%),
    var(--card);
  border: 1px solid rgba(34,197,94,0.30);
  border-radius: var(--rad-lg);
  border-left: 3px solid var(--green);
}
.lr-cb-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-s);
  color: var(--green);
}
.lr-cb-title {
  font-family: var(--disp);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  scroll-margin-top: 80px;
}
.lr-cb-content p { margin-bottom: 10px; }
.lr-cb-content p:last-child { margin-bottom: 0; }
.lr-checks {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lr-checks li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--soft);
}
.lr-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-s);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* comparison block (textual but visually distinct) */
.lr-compare-block {
  position: relative;
  padding: 22px 24px;
  margin: 26px 0;
  background: var(--card);
  border: 1px dashed var(--brd-2);
  border-radius: var(--rad-lg);
}
.lr-compare-block::before {
  content: "≠";
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 32px;
  font-weight: 700;
  color: var(--acc);
  opacity: .4;
  line-height: 1;
}
.lr-h3-alt {
  font-family: var(--disp);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-right: 36px;
  scroll-margin-top: 80px;
}
.lr-compare-block p { margin-bottom: 12px; }
.lr-compare-block p:last-child { margin-bottom: 0; }

/* variants chip cluster */
.lr-variants {
  margin: 26px 0;
  padding: 20px 22px;
  background: var(--bg-2);
  border: 1px solid var(--brd);
  border-radius: var(--rad-lg);
}
.lr-variants-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.lr-variants-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lr-variants-chips span {
  display: inline-block;
  padding: 6px 12px;
  background: var(--card);
  border: 1px solid var(--brd-2);
  border-radius: 999px;
  font-size: 13px;
  color: var(--soft);
  font-family: var(--disp);
  transition: color .2s, border-color .2s;
}
.lr-variants-chips span:hover {
  color: var(--acc);
  border-color: var(--acc-glow);
}

/* concluding card */
.lr-conclude {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  margin: 26px 0 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,107,156,0.10), transparent 60%),
    var(--card);
  border: 1px solid var(--brd-2);
  border-radius: var(--rad-lg);
}
.lr-conclude-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--acc-s);
  color: var(--acc);
}
.lr-conclude p:last-child { margin-bottom: 0; }

@media (max-width: 1000px) {
  .lr-spotlight { grid-template-columns: 1fr; gap: 22px; padding: 26px 22px; }
  .lr-grid { grid-template-columns: 1fr; gap: 22px; }
  .lr-grid > .lr-toc { position: static; }
}

@media (max-width: 700px) {
  .lr-h2 { font-size: 18px; }
  .lr-h3 { font-size: 16px; }
  .lr-spotlight { padding: 22px 18px 20px; }
  .lr-spot-stats { padding: 14px; }
  .lr-spot-stats strong { font-size: 22px; }
  .lr-platform-head { padding: 16px 18px 14px; }
  .lr-platform-body { padding: 14px 18px 18px; }
  .lr-platform-title { font-size: 15px; }
  .lr-steps { grid-template-columns: 1fr; }
  .lr-callout-block,
  .lr-conclude { flex-direction: column; padding: 18px; }
  .lr-compare-block { padding: 18px; }
}
