/* =====================================================================
   Secondary pages — shared stylesheet
   Provides page-level layout + typography rhythm for Tutorials, About,
   Features, Contact, Terms, Privacy, Cookies.

   Uses the same tokens + font stack as the homepage (tokens.css +
   home.css are loaded first). Only this file's additions are new:
   page hero, numbered section list (legal), responsive card grids.

   Desktop AND mobile handled from this single file via media queries
   so we don't need separate desktop/mobile HTML files per page.
   ===================================================================== */

/* Baseline — match homepage background + text color exactly. */
body.secondary-page {
  background: var(--bg-0);
  color: var(--ink-1);
  min-height: 100vh;
}

/* ── Mobile drawer baseline ──
   `home-mobile.css` (which only loads on mobile.html) carries the full
   drawer layout. Secondary pages reuse the drawer markup for nav
   parity but never load that stylesheet, so we set a minimal hidden
   baseline here. At mobile widths we show it via `.open`, matching
   the home-mobile behaviour. */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg-0);
  padding: 64px 28px 32px;
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.25s ease, visibility 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.drawer.open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}
.drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink-1);
  font-size: 22px;
  line-height: 1;
  border-radius: 999px;
  cursor: pointer;
}
.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drawer-links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-1);
  font-family: Horizon, var(--ff-display, sans-serif);
  font-size: 26px;
  text-transform: uppercase;
  color: var(--ink-1);
  text-decoration: none;
  letter-spacing: 0;
}
.drawer-links a .num {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-4);
}
.drawer-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.drawer-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-top: 24px;
}
.drawer-meta .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--acid);
  margin-right: 6px;
  box-shadow: 0 0 6px rgba(200, 252, 11, 0.6);
}

/* Hide burger on desktop (only relevant when viewport < 760). */
.burger { display: none; }
@media (max-width: 760px) {
  .burger {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    width: 40px; height: 40px;
    background: transparent;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .burger i {
    width: 16px; height: 1.5px;
    background: var(--ink-1);
    display: block;
  }
  /* On small screens hide desktop links + CTAs; drawer is how you get around. */
  .nav-links,
  .nav-cta .btn { display: none; }
}

/* Page header — tall top pad so the sticky nav pill clears, centered
   eyebrow + display title + subtitle. Uses the same mono eyebrow
   treatment as homepage section heads. */
.page-header {
  padding: 140px 24px 64px;
  text-align: center;
}
.page-header .eyebrow {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--acid);
  margin: 0 0 18px;
}
.page-header h1 {
  font-family: Horizon, var(--ff-display, Impact, sans-serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink-1);
  margin: 0 0 20px;
  text-wrap: balance;
}
.page-header h1 .dot { color: var(--acid); }
.page-header h1 .accent { color: var(--acid); }
.page-header .sub {
  font-family: var(--ff-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 auto;
  text-wrap: balance;
}
.page-header .meta {
  margin-top: 16px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* Body container — sets a readable max-width for prose + grid
   layouts. Tight on legal pages, wider on feature-list pages. */
.page-body {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 96px;
}
.page-body--narrow { max-width: 760px; }
.page-body--prose { max-width: 720px; }

/* ── Panel — the dark surface-elevated card used across legal +
      contact + response boxes. Same border/background as pricing
      cards on the homepage. */
.panel {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 28px;
}
.panel + .panel { margin-top: 20px; }
.panel-eyebrow {
  display: block;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0 0 10px;
}
.panel h3 {
  font-family: Horizon, var(--ff-display, sans-serif);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink-1);
  margin: 0 0 14px;
  line-height: 1.15;
}
.panel p {
  font-family: var(--ff-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 12px;
}
.panel p:last-child { margin-bottom: 0; }
.panel a { color: var(--acid); text-decoration: none; }
.panel a:hover { text-decoration: underline; }

/* Two-column panel grid — used on contact + about + features. */
.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.panel-grid--three { grid-template-columns: repeat(3, 1fr); }
.panel-grid--four { grid-template-columns: repeat(4, 1fr); }
.panel--wide { grid-column: 1 / -1; }

/* ── Numbered legal section list (Terms, Privacy, Cookies) ── */
.legal-sections {
  counter-reset: legal;
  list-style: none;
  padding: 0;
  margin: 0;
}
.legal-sections > li {
  counter-increment: legal;
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-1);
}
.legal-sections > li:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.legal-sections > li h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: Horizon, var(--ff-display, sans-serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink-1);
  margin: 0 0 14px;
  line-height: 1.15;
}
.legal-sections > li h2::before {
  content: counter(legal, decimal-leading-zero);
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--acid);
  letter-spacing: 0.2em;
}
.legal-sections p,
.legal-sections ul {
  font-family: var(--ff-sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.legal-sections p:last-child { margin-bottom: 0; }
.legal-sections strong { color: var(--ink-1); font-weight: 600; }
.legal-sections a { color: var(--acid); text-decoration: none; }
.legal-sections a:hover { text-decoration: underline; }
.legal-sections ul { padding-left: 22px; }
.legal-sections ul li { margin-bottom: 6px; }

/* ── Generic button reused from homepage tokens ──
   (Homepage defines .btn classes — we just use them as-is.) */

/* ── Feature card grid (Features page / Tutorials page) ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feat-card {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 24px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.feat-card:hover { border-color: var(--line-3, rgba(255,255,255,0.14)); }
.feat-card .num {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--acid);
  margin: 0 0 12px;
  text-transform: uppercase;
}
.feat-card h3 {
  font-family: Horizon, var(--ff-display, sans-serif);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink-1);
  margin: 0 0 10px;
  line-height: 1.2;
}
.feat-card p {
  font-family: var(--ff-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0 0 14px;
}
.feat-card .meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding-top: 12px;
  border-top: 1px solid var(--line-1);
}

/* Section heads inside body — for Features where we have
   "01 · Design Tools" etc. */
.section-head {
  text-align: center;
  padding: 64px 0 36px;
}
.section-head .n {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--acid);
  margin: 0 0 14px;
  text-transform: uppercase;
}
.section-head h2 {
  font-family: Horizon, var(--ff-display, sans-serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink-1);
  margin: 0 0 12px;
  line-height: 1;
}
.section-head h2 .dot { color: var(--acid); }
.section-head p {
  font-family: var(--ff-sans);
  font-size: 14px;
  color: var(--ink-3);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ── Left-aligned page header (About) ── */
.page-header--left { text-align: left; padding-left: 0; padding-right: 0; }
.page-header--left h1 { margin-left: 0; }
.page-header--left .sub { margin-left: 0; max-width: 640px; }

/* ── Stat chips (About hero + similar) ── */
.stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.stat-chips .chip {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 14px 18px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.stat-chips .chip.big {
  font-family: Horizon, var(--ff-display, sans-serif);
  font-size: 24px;
  letter-spacing: 0;
  color: var(--ink-1);
  text-transform: none;
  line-height: 1;
  padding: 12px 18px;
}

/* ── Mission quote block ── */
.mission {
  border-top: 1px solid var(--line-1);
  border-bottom: 1px solid var(--line-1);
  padding: 72px 0;
  margin: 0 0 64px;
  text-align: center;
}
.mission .eyebrow {
  display: block;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acid);
  margin: 0 0 18px;
}
.mission blockquote {
  margin: 0 auto;
  max-width: 860px;
  font-family: Horizon, var(--ff-display, sans-serif);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink-1);
  text-wrap: balance;
}
.mission blockquote .accent { color: var(--acid); }

/* ── Stats marquee ── */
.stats-strip {
  border-top: 1px solid var(--line-1);
  border-bottom: 1px solid var(--line-1);
  overflow: hidden;
  padding: 18px 0;
  margin: 56px 0;
}
.stats-strip .track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: stats-marquee 28s linear infinite;
  width: max-content;
}
.stats-strip .item {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-1);
}
.stats-strip .item .sep { color: var(--acid); }
@keyframes stats-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Team avatar ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.team-card {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 28px;
  transition: border-color 0.18s ease;
}
.team-card:hover { border-color: var(--line-3, rgba(255,255,255,0.14)); }
.team-card .avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--bg-0);
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Horizon, var(--ff-display, sans-serif);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  margin: 0 0 18px;
}
.team-card h3 {
  font-family: Horizon, var(--ff-display, sans-serif);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink-1);
  margin: 0 0 4px;
}
.team-card .role {
  display: block;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acid);
  margin: 0 0 12px;
}
.team-card p {
  font-family: var(--ff-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0;
}

/* ── CTA strip (bottom of tutorials / features) ── */
.cta-strip {
  margin-top: 64px;
  padding: 36px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-strip h3 {
  font-family: Horizon, var(--ff-display, sans-serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink-1);
  margin: 0 0 6px;
  line-height: 1.15;
}
.cta-strip p {
  font-family: var(--ff-sans);
  font-size: 13px;
  color: var(--ink-3);
  margin: 0;
  max-width: 52ch;
}

/* ── Output badges row (Features hero) ── */
.badges-row {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.badges-row .badge {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── Category divider (Features) ── */
.cat-rule {
  height: 1px;
  margin: 14px 0 28px;
  background: linear-gradient(90deg, var(--acid) 0%, var(--line-2) 40%, transparent 100%);
  opacity: 0.7;
}
.cat-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 48px;
}
.cat-head h2 {
  font-family: Horizon, var(--ff-display, sans-serif);
  font-weight: 400;
  font-size: clamp(24px, 3.2vw, 36px);
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink-1);
  margin: 0 0 6px;
  line-height: 1;
}
.cat-head .n { color: var(--acid); }
.cat-head .tag {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}
.cat-head .meta {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* ── Tool card (Features DESIGN_TOOLS + generic) ── */
.tool-card {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.tool-card:hover {
  border-color: rgba(200, 252, 11, 0.35);
  transform: translateY(-1px);
}
.tool-card .icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-0);
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--acid);
}
.tool-card h3 {
  font-family: Horizon, var(--ff-display, sans-serif);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink-1);
  margin: 0;
  line-height: 1.2;
}
.tool-card p {
  font-family: var(--ff-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0;
}
.tool-card .launch {
  margin-top: auto;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acid);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.tool-card:hover .launch { opacity: 1; }

/* ── Preview card (Features VIS_TOOLS) ── */
.preview-card {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease;
}
.preview-card:hover { border-color: rgba(200, 252, 11, 0.35); }
.preview-card .thumb {
  height: 180px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--line-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.preview-card .thumb.tall { height: 240px; }
.preview-card .thumb .pair {
  display: flex;
  gap: 28px;
}
.preview-card .thumb .pair .box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.preview-card .thumb .pair .ph {
  width: 72px;
  height: 100px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
}
.preview-card .body { padding: 18px; }
.preview-card .body h3 {
  font-family: Horizon, var(--ff-display, sans-serif);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink-1);
  margin: 0 0 6px;
}
.preview-card .body .tag {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.preview-card--ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  min-height: 180px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* ── Spec block (Tech Pack spotlight) ── */
.spec-block {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 20px;
}
.spec-block .panel-inner {
  background: var(--bg-0);
  border: 1px solid var(--line-1);
  border-radius: 8px;
  padding: 16px;
}
.spec-block .panel-inner + .panel-inner { margin-top: 14px; }
.spec-block .panel-eyebrow {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
  display: block;
  margin: 0 0 12px;
}
.spec-block .row {
  display: flex;
  justify-content: space-between;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 0;
}
.spec-block .row .k { color: var(--ink-4); }
.spec-block .row .v { color: var(--ink-1); }
.spec-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
}
.spec-list li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acid);
}
.spec-list li::before { content: "▸"; color: var(--acid); }

/* ── Tutorials page: filter tabs + search + tutorial cards ── */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 36px;
  max-width: 960px;
}
.filter-tabs .tab {
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 9px 14px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.filter-tabs .tab:hover {
  border-color: rgba(200, 252, 11, 0.45);
  color: var(--ink-1);
}
.filter-tabs .tab.is-active {
  border-color: var(--acid);
  background: rgba(200, 252, 11, 0.08);
  color: var(--acid);
}

.search-bar {
  display: flex;
  align-items: center;
  max-width: 480px;
  margin: 28px auto 0;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px 6px 4px 18px;
}
.search-bar input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 8px;
  font-family: var(--ff-sans);
  font-size: 13px;
  color: var(--ink-1);
  outline: none;
}
.search-bar input::placeholder { color: var(--ink-4); }
.search-bar .btn {
  background: var(--acid);
  color: #0a0a0a;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}

.featured-tut {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 48px;
}
.featured-tut .ft-copy { padding: 32px; display: flex; flex-direction: column; }
.featured-tut .ft-badge {
  display: inline-block;
  align-self: flex-start;
  border: 1px solid rgba(200, 252, 11, 0.35);
  background: rgba(200, 252, 11, 0.08);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acid);
  margin: 0 0 18px;
}
.featured-tut h2 {
  font-family: Horizon, var(--ff-display, sans-serif);
  font-weight: 400;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--ink-1);
  margin: 0 0 14px;
}
.featured-tut p {
  font-family: var(--ff-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0 0 18px;
}
.featured-tut .meta {
  display: flex;
  gap: 8px;
  margin: 0 0 20px;
}
.featured-tut .meta .chip {
  border: 1px solid var(--line-2);
  background: var(--bg-0);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.featured-tut .watch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acid);
  text-decoration: none;
}
.featured-tut .ft-preview {
  background: var(--bg-1);
  border-left: 1px solid var(--line-1);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}
.featured-tut .play-btn {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(200, 252, 11, 0.35);
  background: rgba(200, 252, 11, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--acid);
  font-size: 20px;
}
.featured-tut .ft-preview span {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.tut-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tut-card {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease;
}
.tut-card:hover { border-color: rgba(200, 252, 11, 0.35); }
.tut-card .thumb {
  position: relative;
  height: 160px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--line-1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tut-card .thumb .play {
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  transition: all 0.18s ease;
}
.tut-card:hover .thumb .play {
  color: var(--acid);
  border-color: rgba(200, 252, 11, 0.45);
}
.tut-card .thumb .dur {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(0,0,0,0.6);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.78);
}
.tut-card .body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tut-card .level {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.tut-card .level .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--acid); }
.tut-card .level.lvl-inter .dot { background: #facc15; }
.tut-card .level.lvl-adv .dot { background: #f87171; }
.tut-card h3 {
  font-family: Horizon, var(--ff-display, sans-serif);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink-1);
  margin: 2px 0 0;
  line-height: 1.2;
}
.tut-card p {
  font-family: var(--ff-sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
  margin: 0;
}
.tut-card .watch {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acid);
  text-decoration: none;
}

/* ── Sub-panel (card within card, Cookies section 2) ── */
.sub-panel {
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 10px;
}
.sub-panel:last-child { margin-bottom: 0; }
.sub-panel h3 {
  font-family: Horizon, var(--ff-display, sans-serif);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink-1);
  margin: 0 0 6px;
}
.sub-panel p {
  font-family: var(--ff-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0;
}

/* ── Responsive ── */
/* Tablet: 760–1040 px */
@media (max-width: 1040px) {
  .page-header { padding: 120px 24px 56px; }
  .page-body { padding: 0 24px 80px; }
  .card-grid,
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-grid--four { grid-template-columns: repeat(2, 1fr); }
  .panel-grid--three { grid-template-columns: repeat(2, 1fr); }
  .tut-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-tut { grid-template-columns: 1fr; }
  .featured-tut .ft-preview { border-left: 0; border-top: 1px solid var(--line-1); min-height: 220px; }
  .cat-head { padding-top: 36px; }
}
@media (max-width: 760px) {
  .page-header { padding: 100px 18px 44px; }
  .page-header h1 { font-size: clamp(32px, 9vw, 44px); }
  .page-header .sub { font-size: 14px; }
  .page-body { padding: 0 18px 64px; }
  .panel { padding: 20px; }
  .panel h3 { font-size: 17px; }
  .panel-grid,
  .panel-grid--three,
  .panel-grid--four,
  .card-grid,
  .team-grid,
  .tut-grid { grid-template-columns: 1fr; gap: 14px; }
  .legal-sections > li { margin-bottom: 28px; padding-bottom: 24px; }
  .legal-sections > li h2 { font-size: 18px; gap: 10px; }
  .legal-sections p,
  .legal-sections ul { font-size: 13px; }
  .section-head { padding: 40px 0 24px; }
  .mission { padding: 52px 0; margin-bottom: 48px; }
  .mission blockquote { font-size: clamp(22px, 6vw, 30px); }
  .cat-head { padding-top: 28px; }
  .cat-head h2 { font-size: 24px; }
  .cta-strip { padding: 24px; gap: 16px; }
  .cta-strip h3 { font-size: 18px; }
  .featured-tut .ft-copy { padding: 24px; }
  .featured-tut h2 { font-size: 22px; }
  .filter-tabs { gap: 6px; margin-bottom: 24px; }
  .filter-tabs .tab { padding: 7px 10px; font-size: 9px; letter-spacing: 0.16em; }
  .search-bar { max-width: 100%; margin-top: 20px; }
  .team-card { padding: 24px; }
  .preview-card .thumb { height: 160px; }
}
