/*
Theme Name: IJP Apps
Theme URI: https://ijp.app
Author: Apps by IJP
Description: Custom theme for Apps by IJP — pixel-spectrum redesign (v.2026). Dark themed, brand-driven, with an "app" custom post type and Yoast-ready SEO.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: ijp-apps
*/

/* ====================================================================
   IJP APPS · Portfolio
   Design system grounded in the brand mark — pixel-mosaic play triangle
   with a blue → purple → magenta → amber spectrum dispersing right.
   ==================================================================== */

:root {
  /* Ink scale */
  --ink-0: #050314;
  --ink-1: #0a0820;
  --ink-2: #110d2a;
  --ink-3: #1a1538;

  /* Spectrum (from the logo, left to right) */
  --blue:    #2b6dff;
  --blue-2:  #4f87ff;
  --cyan:    #00d8ff;
  --purple:  #6e3aff;
  --magenta: #ff2eb1;
  --orange:  #ff8a3a;
  --amber:   #ffc83a;
  --mint:    #74ffe0;

  /* Type */
  --paper:        rgba(255,255,255,.96);
  --paper-soft:   rgba(255,255,255,.70);
  --paper-mute:   rgba(255,255,255,.48);
  --line:         rgba(255,255,255,.08);
  --line-strong:  rgba(255,255,255,.18);
  --line-weak:    rgba(255,255,255,.05);

  /* Surfaces */
  --glass:        rgba(255,255,255,.03);
  --glass-strong: rgba(255,255,255,.06);

  /* Spectrum gradients */
  --spectrum: linear-gradient(90deg, var(--blue) 0%, var(--purple) 28%, var(--magenta) 56%, var(--orange) 82%, var(--amber) 100%);
  --spectrum-radial: radial-gradient(circle at 20% 50%, var(--blue) 0%, var(--purple) 30%, var(--magenta) 60%, var(--orange) 85%, var(--amber) 100%);

  /* Type stacks */
  --font-display: "Bricolage Grotesque", -apple-system, system-ui, sans-serif;
  --font-body:    "Manrope", -apple-system, system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  background: #050314;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
  overflow-x: hidden;
}

/* Dither shader sits behind everything */
.site-shader {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #050314;
  pointer-events: none;
}
.site-shader canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: .82;
}

/* Subtle ink veil — keeps text contrast high without killing the shader */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 10%,  rgba(5, 3, 20, 0) 0%, rgba(5, 3, 20, .35) 60%, rgba(5, 3, 20, .65) 100%),
    linear-gradient(180deg, rgba(5, 3, 20, .25) 0%, rgba(5, 3, 20, .15) 25%, rgba(5, 3, 20, .45) 100%);
}

::selection { background: var(--magenta); color: white; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Shell ──────────────────────────────────────────────────────────── */
.shell { width: min(1320px, calc(100% - 48px)); margin-inline: auto; }
.shell-narrow { width: min(960px, calc(100% - 48px)); margin-inline: auto; }

/* ── Spectrum bar (recurring brand element) ─────────────────────────── */
.spectrum-bar {
  height: 3px;
  background: var(--spectrum);
  border: 0;
  margin: 0;
  display: block;
}
.spectrum-bar.thin { height: 1.5px; }

/* ── Pixel triangle micro-mark ──────────────────────────────────────── */
.brand-mark {
  width: 32px; height: 32px;
  background: url("brand-mark.png") center/contain no-repeat;
  flex: 0 0 auto;
}
.brand-mark.lg { width: 56px; height: 56px; }

/* ── Top nav ────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(5, 3, 20, .72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 28px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 800; font-size: 17px; letter-spacing: -.01em;
}
.nav-brand .pill {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  padding: 4px 8px; border-radius: 999px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  color: var(--paper-soft);
  margin-left: 6px;
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--paper-soft);
  padding: 8px 14px; border-radius: 10px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--paper); background: var(--glass-strong); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: white;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line-strong);
  transition: background .15s, border-color .15s;
}
.nav-cta:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); }
.nav-cta .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--mint); box-shadow: 0 0 8px var(--mint); }

/* ── Eyebrow / labels ───────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--paper-soft);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow .tick { width: 6px; height: 6px; border-radius: 999px; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.eyebrow .num { color: var(--mint); }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 120px) 0 clamp(50px, 7vw, 96px);
  overflow: visible;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(64px, 11vw, 168px);
  line-height: .84;
  letter-spacing: -.045em;
  margin: 20px 0 28px;
  text-wrap: balance;
  font-variation-settings: "wdth" 90;
}
.hero-headline .spectrum-text {
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.hero-headline .italic {
  font-style: italic;
  font-weight: 600;
  font-variation-settings: "wdth" 100;
  color: var(--paper-mute);
}
.hero-lead {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.45;
  color: var(--paper-soft);
  max-width: 540px;
  margin: 0 0 32px;
}

.hero-cta-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: clamp(36px, 6vw, 64px);
}
.btn {
  --btn-bg: rgba(255,255,255,.06);
  --btn-fg: var(--paper);
  --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 22px;
  border-radius: 999px;
  font-size: 15px; font-weight: 650;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  cursor: pointer;
  transition: transform .12s, background .15s, border-color .15s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  --btn-bg: white;
  --btn-fg: var(--ink-0);
  --btn-bd: white;
  font-weight: 700;
  box-shadow: 0 18px 50px rgba(255,255,255,.14);
}
.btn.primary:hover { background: var(--paper); box-shadow: 0 22px 60px rgba(255,255,255,.18); }
.btn.spectrum {
  --btn-bg: var(--spectrum);
  --btn-fg: white;
  --btn-bd: transparent;
  font-weight: 700;
  background-image: var(--spectrum);
  box-shadow: 0 16px 44px rgba(110, 58, 255, .35), 0 0 32px rgba(255, 46, 177, .18);
}
.btn .arrow {
  width: 18px; height: 18px;
  transition: transform .2s;
}
.btn:hover .arrow { transform: translateX(3px); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.hero-stat {
  padding: 0 18px;
  border-right: 1px solid var(--line);
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child  { border-right: 0; padding-right: 0; }
.hero-stat .value {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 700; letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat .value.spectrum-text {
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stat .label {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--paper-mute);
}

/* Hero pixel-mosaic stage (right column) */
.hero-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 620px;
  margin-left: auto;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero-stage canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero-stage .logo-img {
  position: relative; z-index: 2;
  width: 76%; height: 76%;
  object-fit: contain;
  filter: drop-shadow(0 30px 80px rgba(43, 109, 255, .55))
          drop-shadow(0 0 60px rgba(255, 46, 177, .32));
  animation: floaty 8s ease-in-out infinite;
}
.hero-stage .ring {
  position: absolute; inset: 4%;
  border-radius: 50%;
  background:
    conic-gradient(from 220deg, transparent 0deg, rgba(43,109,255,.55) 60deg, rgba(110,58,255,.55) 130deg, rgba(255,46,177,.55) 200deg, rgba(255,200,58,.45) 280deg, transparent 360deg);
  filter: blur(40px);
  opacity: .65;
  z-index: 1;
  animation: spin 22s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(-1deg); }
}

/* ── Sections common ────────────────────────────────────────────────── */
.section {
  padding: clamp(72px, 9vw, 130px) 0;
  position: relative;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.2vw, 78px);
  line-height: .92;
  letter-spacing: -.035em;
  font-weight: 750;
  margin: 16px 0 0;
  max-width: 18ch;
  text-wrap: balance;
  font-variation-settings: "wdth" 95;
}
.section-title .italic { font-style: italic; font-weight: 550; color: var(--paper-mute); }
.section-sub {
  font-size: 17px;
  color: var(--paper-soft);
  max-width: 380px;
  margin: 0;
}

/* ── Built For strip ────────────────────────────────────────────────── */
.builtfor {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: linear-gradient(90deg, rgba(43, 109, 255, .04), rgba(255, 46, 177, .03), rgba(255, 200, 58, .03));
}
.builtfor-row {
  display: flex; align-items: center; gap: clamp(20px, 3vw, 44px);
  flex-wrap: wrap;
}
.builtfor-label {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--paper-mute);
  white-space: nowrap;
}
.builtfor-list {
  display: flex; gap: clamp(14px, 2vw, 28px);
  align-items: center; flex-wrap: wrap;
  flex: 1;
}
.builtfor-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--paper);
  letter-spacing: -.01em;
}
.builtfor-item .dot {
  width: 6px; height: 6px; border-radius: 1px;
  background: var(--mint);
}
.builtfor-item:nth-child(1) .dot { background: var(--blue); }
.builtfor-item:nth-child(2) .dot { background: var(--purple); }
.builtfor-item:nth-child(3) .dot { background: var(--magenta); }
.builtfor-item:nth-child(4) .dot { background: var(--orange); }
.builtfor-item:nth-child(5) .dot { background: var(--amber); }

/* ── Featured bento ─────────────────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 290px;
  gap: 16px;
}
.bento-card {
  position: relative;
  background: linear-gradient(150deg, rgba(10, 8, 32, .82), rgba(5, 3, 20, .88));
  backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s, box-shadow .25s;
  isolation: isolate;
}
.bento-card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(155deg, var(--spectrum-color, var(--blue)), transparent 50%);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: .25;
  pointer-events: none;
}
.bento-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.bento-card:hover::before { opacity: .55; }

.bento-card .pixel-corner {
  position: absolute;
  top: 0; right: 0;
  width: 96px; height: 96px;
  opacity: .42;
  background:
    radial-gradient(2px 2px at 12px 8px, var(--spectrum-color, var(--blue)) 100%, transparent),
    radial-gradient(2px 2px at 28px 4px, var(--spectrum-color, var(--blue)) 100%, transparent),
    radial-gradient(2px 2px at 44px 16px, var(--spectrum-color, var(--blue)) 100%, transparent),
    radial-gradient(2px 2px at 64px 6px, var(--spectrum-color, var(--blue)) 100%, transparent),
    radial-gradient(2px 2px at 22px 24px, var(--spectrum-color, var(--blue)) 100%, transparent),
    radial-gradient(2px 2px at 56px 30px, var(--spectrum-color, var(--blue)) 100%, transparent),
    radial-gradient(2px 2px at 80px 40px, var(--spectrum-color, var(--blue)) 100%, transparent),
    radial-gradient(2px 2px at 38px 48px, var(--spectrum-color, var(--blue)) 100%, transparent);
}

/* Featured hero card (4col x 2row) */
.bento-card.feat-lg {
  grid-column: span 4; grid-row: span 2;
  padding: 0;
  background:
    radial-gradient(circle at 80% 100%, rgba(43,109,255,.18), transparent 55%),
    linear-gradient(160deg, rgba(17, 13, 42, .88), rgba(10, 8, 32, .88) 50%, rgba(5, 3, 20, .92));
  backdrop-filter: blur(14px) saturate(1.1);
  --spectrum-color: var(--blue);
}
.bento-card.feat-sm { grid-column: span 2; grid-row: span 1; }
.bento-card.feat-md { grid-column: span 2; grid-row: span 2; }

.feat-lg-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  align-items: stretch;
}
.feat-lg-copy {
  padding: clamp(28px, 3vw, 44px);
  display: flex; flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.feat-lg-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 56px);
  line-height: .94;
  letter-spacing: -.03em;
  font-weight: 750;
  margin: 14px 0 0;
  text-wrap: balance;
}
.feat-lg-desc {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--paper-soft);
  margin: 14px 0 0;
  max-width: 38ch;
}
.feat-lg-meta {
  display: flex; align-items: center; gap: 14px;
  margin-top: 22px;
}
.feat-lg-meta .app-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--ink-0);
  border: 1px solid var(--line);
}
.feat-lg-meta .pkg {
  font-family: var(--font-mono);
  font-size: 11.5px; color: var(--paper-mute);
}
.feat-lg-stage {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 70% 30%, rgba(255,46,177,.18), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(43,109,255,.20), transparent 50%);
  border-left: 1px solid var(--line);
}
.feat-lg-stage img {
  max-height: 96%;
  max-width: 60%;
  object-fit: contain;
  filter: drop-shadow(0 26px 50px rgba(0,0,0,.55))
          drop-shadow(0 0 40px rgba(43,109,255,.22));
  border-radius: 28px;
}

.bento-card .tag-row {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.bento-card .feat-tag {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 6px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  color: var(--paper-soft);
}

/* Featured small cards */
.feat-sm-top {
  display: flex; align-items: flex-start; gap: 14px;
}
.feat-sm-top .app-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  flex: 0 0 auto;
}
.feat-sm h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -.02em;
  margin: 0 0 4px;
  line-height: 1.12;
}
.feat-sm .pkg {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--paper-mute);
  word-break: break-all;
}
.feat-sm p {
  font-size: 14.5px;
  color: var(--paper-soft);
  margin: 14px 0 auto;
}
.feat-sm .tag-row { margin-top: 14px; }

/* Featured medium card with phone screenshot */
.feat-md {
  --spectrum-color: var(--magenta);
}
.feat-md .phone-frame {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 360px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink-0);
  position: relative;
  margin: 14px 0;
  display: grid; place-items: center;
  border: 1px solid var(--line-weak);
}
.feat-md .phone-frame img {
  max-height: 100%;
  max-width: 84%;
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(0,0,0,.55);
}
.feat-md h3 {
  font-family: var(--font-display);
  font-size: 24px; letter-spacing: -.02em;
  font-weight: 700; margin: 0;
}
.feat-md .pkg { font-family: var(--font-mono); font-size: 11px; color: var(--paper-mute); margin-top: 2px; }
.feat-md .desc { font-size: 14px; color: var(--paper-soft); margin: 10px 0 0; }

/* ── Phone strip (marquee of screenshots) ───────────────────────────── */
.strip {
  padding: 60px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  background: rgba(5, 3, 20, .35);
  backdrop-filter: blur(8px);
}
.strip::before, .strip::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 120px;
  z-index: 2; pointer-events: none;
}
.strip::before { left: 0;  background: linear-gradient(90deg, rgba(5, 3, 20, .9), transparent); }
.strip::after  { right: 0; background: linear-gradient(-90deg, rgba(5, 3, 20, .9), transparent); }

.strip-track {
  display: flex; gap: 22px; align-items: center;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.strip-loop { display: flex; gap: 22px; align-items: center; }
.strip-shot {
  flex: 0 0 auto;
  height: 360px; width: auto;
  border-radius: 30px;
  object-fit: contain;
  filter: drop-shadow(0 20px 36px rgba(0,0,0,.45));
}
.strip-shot:nth-child(odd) { transform: translateY(-12px); }
.strip-shot:nth-child(even) { transform: translateY(12px); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; }
}

/* ── Catalog ────────────────────────────────────────────────────────── */
.catalog-controls {
  display: flex; gap: 12px; flex-wrap: wrap;
  align-items: center; margin-bottom: 28px;
}
.search {
  flex: 1; min-width: 240px;
  height: 46px; padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 8, 32, .65);
  backdrop-filter: blur(10px);
  color: var(--paper);
  font: 500 14.5px var(--font-body);
}
.search:focus { outline: none; border-color: var(--line-strong); background: var(--glass-strong); }
.search::placeholder { color: var(--paper-mute); }

.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-pill {
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 9px 14px; border-radius: 999px;
  background: rgba(10, 8, 32, .65);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  color: var(--paper-soft);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.filter-pill:hover { color: var(--paper); background: var(--glass-strong); }
.filter-pill.active {
  background: var(--paper);
  color: var(--ink-0);
  border-color: var(--paper);
}
.filter-pill .count {
  font-size: 10.5px;
  margin-left: 8px;
  opacity: .55;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.app-grid:where([data-density="compact"])  { grid-template-columns: repeat(5, minmax(0,1fr)); }
.app-grid:where([data-density="spacious"]) { grid-template-columns: repeat(3, minmax(0,1fr)); }
.app-card {
  position: relative;
  background: rgba(10, 8, 32, .72);
  backdrop-filter: blur(12px) saturate(1.1);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 230px;
  transition: border-color .18s, transform .18s, background .2s;
  isolation: isolate;
  overflow: hidden;
}
.app-card::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 100% 0%, var(--card-accent, transparent) 0%, transparent 40%);
  opacity: .14;
  pointer-events: none;
  z-index: -1;
}
.app-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  background: rgba(17, 13, 42, .85);
}
.app-card:hover::after { opacity: .28; }

.app-card-top { display: flex; align-items: flex-start; gap: 14px; }
.app-icon-img {
  width: 56px; height: 56px;
  border-radius: 14px;
  flex: 0 0 auto;
  background: var(--ink-0);
  border: 1px solid var(--line);
}
.app-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.015em;
  line-height: 1.12;
  margin: 0;
}
.app-card .pkg {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--paper-mute);
  margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.app-card p {
  font-size: 13.8px;
  line-height: 1.5;
  color: var(--paper-soft);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.app-card .tag-row { margin-top: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.app-card .tag {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  color: var(--paper-soft);
}

/* ── Categories ─────────────────────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.cat-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px;
  border-radius: 18px;
  background: rgba(10, 8, 32, .72);
  backdrop-filter: blur(12px) saturate(1.1);
  border: 1px solid var(--line);
  transition: background .2s, border-color .2s, transform .15s;
  position: relative; overflow: hidden;
}
.cat-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--cat-color, var(--blue));
}
.cat-card:hover { background: rgba(17, 13, 42, .85); border-color: var(--line-strong); transform: translateX(2px); }
.cat-name {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 16.5px;
  letter-spacing: -.01em;
}
.cat-count {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  color: var(--cat-color, var(--blue));
}

/* ── Manifesto ──────────────────────────────────────────────────────── */
.manifesto {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(80px, 12vw, 160px) 0;
  background: rgba(5, 3, 20, .25);
  backdrop-filter: blur(8px);
}
.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 600;
  text-wrap: balance;
  max-width: 22ch;
}
.manifesto-text .accent {
  background: var(--spectrum);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-weight: 750;
  font-style: italic;
}
.manifesto-text .mute { color: var(--paper-mute); font-weight: 400; }
.manifesto-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
.manifesto-side { display: grid; gap: 22px; padding-top: 8px; }
.manifesto-fact .label {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--paper-mute);
  margin-bottom: 8px;
}
.manifesto-fact .body {
  font-size: 16px;
  color: var(--paper);
  line-height: 1.55;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.footer {
  padding: 72px 0 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px 32px;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 800; letter-spacing: -.04em;
  line-height: .9;
  font-variation-settings: "wdth" 90;
}
.footer-brand .pulse {
  background: var(--spectrum);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.footer-brand p {
  font-family: var(--font-body);
  font-size: 15px; font-weight: 500;
  color: var(--paper-soft);
  letter-spacing: 0;
  margin: 18px 0 0;
  line-height: 1.5;
  max-width: 30ch;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--paper-mute);
  margin: 0 0 14px;
}
.footer-col a {
  display: block;
  font-size: 14.5px;
  color: var(--paper-soft);
  padding: 6px 0;
}
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
  padding-top: 40px; margin-top: 60px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px; color: var(--paper-mute);
  letter-spacing: .04em;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .bento-card.feat-lg { grid-column: span 2; grid-row: auto; }
  .bento-card.feat-md { grid-column: span 1; grid-row: auto; min-height: 420px; }
  .bento-card.feat-sm { grid-column: span 1; grid-row: auto; min-height: 280px; }
  /* Last small card gets full width so we don't leave an orphan cell */
  .bento-card.feat-sm:last-child { grid-column: span 2; min-height: 220px; }
  .feat-lg-stage { min-height: 320px; max-height: 420px; }
  .feat-lg-stage img { max-height: 380px; max-width: 50%; }
  .feat-md .phone-frame { max-height: 240px; }
  .app-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-stage { max-width: 480px; margin-inline: auto; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .hero-stat { padding: 12px; border-right: 0; border-bottom: 0; }
  .nav-links { display: none; }
  .section-head { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .manifesto-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  /* Stack bento entirely at small tablet width */
  .bento { grid-template-columns: 1fr; }
  .bento-card.feat-lg,
  .bento-card.feat-md,
  .bento-card.feat-sm,
  .bento-card.feat-sm:last-child { grid-column: span 1; min-height: 0; }
  .feat-lg-inner { grid-template-columns: 1fr; }
  .feat-lg-stage { border-left: 0; border-top: 1px solid var(--line); min-height: 320px; max-height: 400px; }
  .feat-lg-stage img { max-width: 60%; max-height: 360px; }
}
@media (max-width: 560px) {
  .shell, .shell-narrow { width: calc(100% - 28px); }
  .hero-headline { font-size: clamp(54px, 16vw, 88px); }
  .app-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .strip-shot { height: 280px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}


/* ====================================================================
   APP DETAIL PAGE
   ==================================================================== */
.detail-hero {
  padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 5vw, 64px);
}
.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.detail-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--paper-mute);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 8, 32, .65);
  backdrop-filter: blur(10px);
  margin-bottom: 28px;
  transition: color .15s, border-color .15s;
}
.detail-back:hover { color: var(--paper); border-color: var(--line-strong); }

.detail-icon-row {
  display: flex; align-items: flex-end; gap: 22px;
  margin-bottom: 24px;
}
.detail-icon-large {
  width: 112px; height: 112px;
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 80px rgba(43,109,255,.15);
  background: var(--ink-1);
  flex: 0 0 auto;
}
.detail-meta { padding-bottom: 8px; }
.detail-pkg {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--paper-mute);
  word-break: break-all;
}
.detail-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  line-height: .88;
  letter-spacing: -.04em;
  font-weight: 800;
  margin: 8px 0 18px;
  font-variation-settings: "wdth" 92;
}
.detail-lead {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.45;
  color: var(--paper-soft);
  max-width: 56ch;
  margin: 0 0 26px;
}
.detail-tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.detail-tag {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(10, 8, 32, .65);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  color: var(--paper-soft);
}
.detail-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 32px;
}

/* Detail facts column (right side) */
.detail-facts {
  display: grid; gap: 12px;
  padding: 24px;
  background: rgba(10, 8, 32, .70);
  backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid var(--line);
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.detail-facts::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--spectrum);
}
.detail-fact {
  display: grid; gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.detail-fact:last-of-type { border-bottom: 0; }
.detail-fact-label {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--paper-mute);
}
.detail-fact-value {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 16px;
  color: var(--paper);
  letter-spacing: -.01em;
}
.detail-fact-value a { color: var(--paper); }
.detail-fact-value a:hover { text-decoration: underline; }

/* Screenshots gallery */
.shots-section {
  padding: clamp(60px, 7vw, 100px) 0;
  position: relative;
  background: rgba(5, 3, 20, .25);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.shots-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 0 22px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.shots-rail::-webkit-scrollbar { height: 6px; }
.shots-rail::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.shot-card {
  flex: 0 0 auto;
  width: clamp(220px, 22vw, 320px);
  scroll-snap-align: start;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
  border-radius: 28px;
  overflow: hidden;
  filter: drop-shadow(0 20px 36px rgba(0,0,0,.5));
  transition: transform .2s;
}
.shot-card:hover { transform: translateY(-4px) scale(1.01); }
.shot-card img {
  width: 100%;
  display: block;
  border-radius: 28px;
}

/* Description body */
.detail-copy {
  padding: clamp(56px, 7vw, 90px) 0;
}
.detail-copy-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 5vw, 72px);
}
.detail-copy-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--paper-soft);
}
.detail-copy-body h3,
.detail-copy-body .desc-head {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -.015em;
  color: var(--paper);
  font-weight: 700;
  margin: 28px 0 10px;
}
.detail-copy-body p { margin: 0 0 14px; }
.detail-copy-body ul.desc-list {
  margin: 0 0 18px;
  padding-left: 0;
  list-style: none;
}
.detail-copy-body ul.desc-list li {
  position: relative;
  padding: 4px 0 4px 22px;
  border-bottom: 1px dashed var(--line-weak);
}
.detail-copy-body ul.desc-list li::before {
  content: "";
  position: absolute; left: 0; top: 14px;
  width: 8px; height: 8px;
  background: var(--blue);
}
.detail-copy-body ul.desc-list li:nth-child(2n)::before { background: var(--purple); }
.detail-copy-body ul.desc-list li:nth-child(3n)::before { background: var(--magenta); }
.detail-copy-body ul.desc-list li:nth-child(5n)::before { background: var(--orange); }
.detail-copy-body ul.desc-list li:nth-child(7n)::before { background: var(--amber); }
.detail-copy-body b, .detail-copy-body strong { color: var(--paper); font-weight: 600; }

/* Related apps */
.related {
  padding: clamp(56px, 7vw, 90px) 0;
  border-top: 1px solid var(--line);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 60px);
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(8px);
}
.lightbox[hidden] { display: none; }
.lightbox-figure {
  margin: 0;
  max-width: min(1000px, 100%);
  max-height: 100%;
  display: grid;
  place-items: center;
  gap: 14px;
}
.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--paper-mute);
  letter-spacing: .14em;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 8, 32, .8);
  color: var(--paper);
  font-size: 22px;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(43, 109, 255, .4);
}

@media (max-width: 880px) {
  .detail-hero-grid { grid-template-columns: 1fr; }
  .detail-icon-row { gap: 16px; }
  .detail-icon-large { width: 88px; height: 88px; border-radius: 22px; }
  .detail-copy-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox-close, .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
}
@media (max-width: 560px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ====================================================================
   WordPress integration overrides — v.2026
   Map wp_nav_menu's <ul class="menu"><li><a> markup onto the design's
   .nav-links / .footer-col layouts, style the page shells the design
   doesn't cover (legal/about/blog/contact), and adapt the core gallery
   lightbox into the design's screenshots rail.
   ==================================================================== */

/* Nav menu: WP wraps items in <ul><li>; flatten visually so the
   design's `.nav-links a` styling applies untouched. */
.nav-links ul.menu {
  display: flex;
  gap: 4px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { list-style: none; margin: 0; padding: 0; }

/* Current page on inner pages → match hover treatment. */
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a {
  color: var(--paper);
  background: var(--glass-strong);
}

/* Footer columns: WP outputs a <ul>; same flattening. */
.footer-col ul.menu { list-style: none; margin: 0; padding: 0; }
.footer-col li { list-style: none; margin: 0; padding: 0; }

/* Generic content-page shell (legal, about, contact, blog, tutorials)
   that the new design doesn't define on its own. */
.page-shell {
  padding-top: clamp(36px, 6vw, 80px);
  padding-bottom: clamp(40px, 7vw, 96px);
}
.page-body {
  max-width: 760px;
  margin-inline: auto;
}
.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5.5vw, 64px);
  letter-spacing: -.02em;
  line-height: 1.04;
  margin: 0 0 22px;
  color: var(--paper);
  text-wrap: balance;
}
.page-body p, .page-body li {
  color: var(--paper-soft);
  font-size: 17px;
  line-height: 1.65;
}
.page-body h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  margin: 30px 0 12px;
  color: var(--paper);
  letter-spacing: -.01em;
}
.page-body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 22px 0 10px;
  color: var(--paper);
}
.page-body a {
  color: var(--mint);
  text-decoration: underline;
  text-decoration-color: rgba(116,255,224,.4);
  text-underline-offset: 3px;
}
.page-body a:hover { text-decoration-color: var(--mint); }
.page-body ul, .page-body ol { padding-left: 22px; margin: 0 0 18px; }
.page-body li { margin: 6px 0; }
.page-body img {
  border-radius: 14px;
  border: 1px solid var(--line);
  margin: 18px 0;
}
.page-body iframe { max-width: 100%; border-radius: 14px; margin: 18px 0; }
.page-body code {
  font-family: var(--font-mono);
  font-size: .92em;
  background: var(--glass-strong);
  padding: 2px 6px;
  border-radius: 6px;
}
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--paper-soft);
  margin-bottom: 12px;
}
.page-eyebrow .tick {
  width: 6px; height: 6px;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
}

/* Contact page: WPForms form sits below the real content. */
.legal .wpforms-container,
.page-body .wpforms-container { margin-top: 24px; }
.page-body .wpforms-field-label { color: var(--paper); font-family: var(--font-display); font-weight: 600; }
.page-body .wpforms-field input[type="text"],
.page-body .wpforms-field input[type="email"],
.page-body .wpforms-field textarea {
  background: var(--glass-strong);
  border: 1px solid var(--line-strong);
  color: var(--paper);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--font-body);
}
.page-body .wpforms-submit-container button {
  background: var(--spectrum);
  color: white;
  border: 0;
  padding: 12px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
}

/* Native core image-block lightbox sits inside .shots-rail — make each
   wp-block-image behave like the design's .shot-card. */
.shots-rail .wp-block-image { margin: 0; }
.shots-rail figure.shot-card { line-height: 0; }
.shots-rail .wp-lightbox-container { flex: 0 0 auto; }
.shots-rail .wp-block-image img {
  display: block;
  height: clamp(240px, 38vw, 360px);
  width: auto;
  max-width: none;
  border-radius: 18px;
  background: #06081a;
}

/* App-detail: privacy link sits below the actions row. */
.detail-actions + .detail-privacy-link {
  margin-top: 14px;
}
.detail-privacy-link a {
  color: var(--mint);
  text-decoration: underline;
  text-decoration-color: rgba(116,255,224,.4);
  text-underline-offset: 3px;
  font-size: 14px;
  font-family: var(--font-mono);
}

/* Tag links (taxonomy) on the app detail keep underlines off. */
.detail-tags a.detail-tag,
.app-card .tag-row a.tag { text-decoration: none; }

/* 404 page reuses .page-shell but centers everything. */
.not-found {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
  padding: clamp(48px, 8vw, 96px) 0;
}
.not-found .brand-mark {
  width: 88px; height: 88px;
  background: url("brand-mark.png") center/contain no-repeat;
  margin-bottom: 8px;
}
.not-found h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 72px);
  margin: 6px 0 4px;
  color: var(--paper);
  max-width: 14ch;
}


/* ====================================================================
   Press & praise — v2: real outlet logos, scrolling marquee, modern chrome
   The marquee mechanic mirrors the phone-strip up the page so the press
   feels like the same rhythm of moving evidence, just in word form.
   ==================================================================== */

/* ── Section frame ─────────────────────────────────────────────────── */
.press-section {
  position: relative;
  overflow: hidden;
}
.press-section::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--spectrum);
  opacity: .32;
}

/* ── MARQUEE ───────────────────────────────────────────────────────── */
.press-marquee {
  position: relative;
  margin: 8px 0 36px;
  padding: 4px 0 18px;
  overflow: hidden;
  /* Soft edge fade so cards dissolve into the section background. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.press-marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  align-items: stretch;
  animation: pressPan 75s linear infinite;
  will-change: transform;
}
.press-marquee-loop {
  display: flex;
  gap: clamp(16px, 1.6vw, 26px);
  align-items: stretch;
  padding-right: clamp(16px, 1.6vw, 26px);
  flex: 0 0 auto;
}
@keyframes pressPan {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.press-marquee:hover .press-marquee-track,
.press-marquee:focus-within .press-marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .press-marquee-track { animation: none; }
  .press-marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
}

/* ── Card · base ───────────────────────────────────────────────────── */
.press-card {
  position: relative;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 22px 24px 18px;
  background:
    linear-gradient(145deg, rgba(11,16,38,.88), rgba(8,12,28,.74));
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.press-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 0% 0%, var(--press-accent, var(--blue)) 0%, transparent 42%),
    radial-gradient(circle at 100% 100%, var(--press-accent, var(--blue)) 0%, transparent 50%);
  opacity: .09;
  transition: opacity .3s ease;
}
.press-card:hover::before { opacity: .18; }
.press-card:hover {
  border-color: color-mix(in srgb, var(--press-accent, var(--blue)) 55%, var(--line-strong));
  box-shadow:
    0 22px 60px rgba(0, 0, 0, .42),
    0 0 36px color-mix(in srgb, var(--press-accent, var(--blue)) 22%, transparent);
}

/* Marquee tile — fixed-width tile, taller for breathing room */
.press-card--marquee {
  flex: 0 0 auto;
  width: clamp(360px, 32vw, 460px);
  min-height: 280px;
}

/* Inline (per-app callout) and List (per-app coverage on /press/) variants */
.press-card--inline,
.press-card--list { min-height: 0; }

/* ── Card head: logo · outlet name · accent bar ─────────────────────── */
.press-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.press-logo-chip {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.30);
}
.press-logo {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.5));
}
.press-logo-chip--lg { width: 54px; height: 54px; border-radius: 14px; }
.press-logo-chip--lg .press-logo { width: 38px; height: 38px; }

.press-outlet-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
  color: var(--paper);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.press-accent-bar {
  flex: 1;
  height: 2px;
  margin-left: 6px;
  background: linear-gradient(90deg,
    var(--press-accent, var(--blue)) 0%,
    color-mix(in srgb, var(--press-accent, var(--blue)) 50%, transparent) 60%,
    transparent 100%);
  border-radius: 1px;
  opacity: .85;
}

/* ── Quote — the artistic hero of the card ─────────────────────────── */
.press-quote {
  margin: 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.36;
  letter-spacing: -.01em;
  color: var(--paper);
  text-wrap: pretty;
  /* Clamp to 5 lines so the marquee tiles stay uniform; CSS line-clamp is widely supported. */
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.press-quote-mark {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  font-size: 2em;
  line-height: 0;
  vertical-align: -.28em;
  margin-right: 4px;
  color: var(--press-accent, var(--blue));
  opacity: .85;
}
.press-quote-text {
  /* Inline so the opening glyph and text share the same paragraph. */
  display: inline;
}

/* List & inline variants tone the quote down a touch. */
.press-card--list .press-quote,
.press-card--inline .press-quote {
  font-size: 16px;
  line-height: 1.42;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.press-card--headline .press-quote {
  font-weight: 700;
  font-style: italic;
}
.press-card--credential .press-quote {
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 14px;
}

/* ── Meta row ──────────────────────────────────────────────────────── */
.press-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--paper-mute);
}
.press-author {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--paper-soft);
  letter-spacing: 0;
}
.press-author + .press-date::before { content: "·"; margin-right: 4px; color: var(--paper-mute); }
.press-source {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--mint);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--mint) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--mint) 22%, transparent);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.press-source:hover {
  background: color-mix(in srgb, var(--mint) 18%, transparent);
  border-color: color-mix(in srgb, var(--mint) 50%, transparent);
  color: var(--paper);
}
.press-source-arrow { flex: 0 0 auto; }

/* Spectrum corner accent — gentler than v1 so the logo can lead. */
.press-corner {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 90px;
  height: 90px;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 100% 0%, var(--press-accent, var(--blue)) 0%, transparent 65%);
  opacity: .22;
}

/* ── CTA row + XDA credential pill ─────────────────────────────────── */
.press-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.press-credential-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: linear-gradient(135deg, rgba(255,46,177,.16), rgba(255,138,58,.10));
  border: 1px solid color-mix(in srgb, var(--magenta) 40%, var(--line-strong));
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--paper);
  white-space: nowrap;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--magenta) 18%, transparent);
}
.press-credential-pill i { font-style: italic; font-weight: 600; color: var(--magenta); }
.press-credential-pill .dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--magenta);
  box-shadow: 0 0 12px var(--magenta), 0 0 4px var(--magenta);
  animation: credentialPulse 1.8s ease-in-out infinite;
}
@keyframes credentialPulse {
  0%, 100% { box-shadow: 0 0 10px var(--magenta), 0 0 3px var(--magenta); }
  50%      { box-shadow: 0 0 18px var(--magenta), 0 0 6px var(--magenta); }
}

/* ── /press/ page hero ─────────────────────────────────────────────── */
.press-page-hero { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(28px, 5vw, 56px); }
.press-page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 7vw, 96px);
  line-height: .96;
  letter-spacing: -.025em;
  margin: 14px 0 22px;
  text-wrap: balance;
  color: var(--paper);
  max-width: 14ch;
}
.press-page-lead {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--paper-soft);
  max-width: 720px;
  margin-bottom: 30px;
}
.press-page-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 760px;
}

/* Marquee on /press/ — flush, no shell padding for true edge-to-edge feel. */
.press-marquee-section {
  padding: 0 0 clamp(48px, 7vw, 88px);
}

/* ── XDA credential card on /press/ ────────────────────────────────── */
.press-credential-section { padding-top: 0; }
.press-credential-card {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 28px;
  align-items: center;
  padding: 36px 36px 32px;
  background:
    linear-gradient(145deg, rgba(255,46,177,.14), rgba(255,138,58,.06)),
    linear-gradient(145deg, var(--glass-strong), var(--glass));
  border: 1px solid color-mix(in srgb, var(--magenta) 40%, var(--line-strong));
  border-radius: 28px;
  overflow: hidden;
  position: relative;
}
.press-credential-mark {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(72px, 10vw, 144px);
  line-height: 1;
  letter-spacing: -.04em;
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 40px rgba(255,46,177,.28));
}
.press-credential-letter:nth-child(2) { margin: 0 -.08em; }

/* ── Wordmark wall on /press/ (now logo + name) ────────────────────── */
.press-wordmark-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.press-wordmark-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(145deg, var(--glass), var(--glass-strong));
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  color: var(--paper-soft);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.press-wordmark-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--press-accent, var(--blue)) 55%, var(--line-strong));
  box-shadow:
    0 14px 36px rgba(0,0,0,.32),
    0 0 22px color-mix(in srgb, var(--press-accent, var(--blue)) 18%, transparent);
}
.press-wordmark-card-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.press-wordmark-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
  color: var(--paper);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.press-wordmark-count {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--press-accent, var(--blue));
  background: color-mix(in srgb, var(--press-accent, var(--blue)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--press-accent, var(--blue)) 32%, transparent);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}

/* ── Coverage by app on /press/ ────────────────────────────────────── */
.press-app-block {
  margin-bottom: 56px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.press-app-block:last-child { border-bottom: 0; margin-bottom: 0; }
.press-app-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.press-app-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -.015em;
  margin: 0;
  color: var(--paper);
  display: flex;
  align-items: baseline;
  gap: 14px;
  text-wrap: balance;
}
.press-app-count {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  color: var(--mint);
  background: rgba(116,255,224,.10);
  border: 1px solid rgba(116,255,224,.30);
  border-radius: 999px;
  padding: 4px 10px;
}
.press-app-link {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: .02em;
}
.press-app-link:hover { color: var(--paper); }

.press-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

/* User voices section on /press/ */
.press-user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.press-user-grid .press-card { padding: 20px 22px 16px; }

/* ── Per-app press callout on single-app ───────────────────────────── */
.app-press {
  padding-top: clamp(28px, 4vw, 56px);
  padding-bottom: 0;
}
.app-press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .press-card--marquee { width: clamp(280px, 78vw, 360px); min-height: 260px; }
  .press-credential-card { grid-template-columns: 1fr; text-align: center; }
  .press-credential-mark { font-size: clamp(60px, 18vw, 96px); }
  .press-page-stats { grid-template-columns: repeat(2, 1fr); }
  .press-cta-row { flex-direction: column; align-items: flex-start; }
  .press-marquee-track { animation-duration: 55s; }
}
@media (max-width: 560px) {
  .press-card,
  .press-card--inline,
  .press-card--list { padding: 18px 20px 14px; }
  .press-card--marquee { width: 84vw; min-height: 240px; padding: 18px 20px 14px; gap: 14px; }
  .press-quote { -webkit-line-clamp: 6; }
  .press-source { font-size: 10.5px; padding: 3px 7px; }
}

/* ====================================================================
   v3 polish pass: news ticker, hero logo, italic + button fixes,
   app-detail simplification, Google Play badge, screenshot aspect.
   ==================================================================== */

/* ── News ticker (under header, on home) ─────────────────────────────── */
.press-ticker {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg,
    rgba(43,109,255,.08) 0%, rgba(110,58,255,.06) 25%,
    rgba(255,46,177,.06) 50%, rgba(255,138,58,.05) 75%,
    rgba(255,200,58,.05) 100%);
  border-bottom: 1px solid var(--line-strong);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerPan 60s linear infinite;
  will-change: transform;
}
.ticker-loop {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 8px 0;
  gap: 0;
}
@keyframes tickerPan {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.press-ticker:hover .ticker-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .press-ticker { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px;
  color: var(--paper-soft);
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  font-family: var(--font-body);
  transition: color .15s ease;
}
.ticker-item:hover { color: var(--paper); }
.ticker-logo {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px;
  border-radius: 5px;
  background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  border: 1px solid var(--line-weak);
  overflow: hidden;
}
.ticker-logo img { width: 14px; height: 14px; display: block; object-fit: contain; }
.ticker-outlet {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--paper);
}
.ticker-sep { color: var(--paper-mute); margin: 0 -2px; }
.ticker-quote { font-style: italic; color: var(--paper-soft); }
.ticker-dot {
  color: rgba(255,255,255,.30);
  padding: 0 14px;
  font-weight: 700;
  pointer-events: none;
  user-select: none;
}

/* ── Hero logo: bigger and vertically centered with the left content ─ */
.hero-grid {
  align-items: center;  /* center the logo stage with the left content */
}
.hero-stage {
  display: grid;
  place-items: center;
  min-height: clamp(360px, 38vw, 560px);
}
.hero-stage .logo-img {
  width: clamp(220px, 36vw, 460px);
  height: auto;
  filter: drop-shadow(0 30px 80px rgba(43,109,255,.32))
          drop-shadow(0 0 60px rgba(255,46,177,.18));
  z-index: 1;
  position: relative;
}
.hero-stage [data-pixel-canvas] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-stage .ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.10);
  pointer-events: none;
}

/* ── Button polish: kill corner artifacts on spectrum btns ──────────── */
.btn.spectrum,
.btn {
  overflow: hidden;          /* ensure inner gradients respect border-radius */
  isolation: isolate;
  position: relative;
}
.btn.spectrum {
  background:
    linear-gradient(135deg, var(--blue) 0%, var(--purple) 30%, var(--magenta) 60%, var(--orange) 100%);
  color: white;
  border: 0;
  font-weight: 700;
  letter-spacing: -.005em;
  box-shadow:
    0 10px 28px color-mix(in srgb, var(--magenta) 22%, transparent),
    inset 0 1px 0 rgba(255,255,255,.22);
}

/* ── Italic letterform clipping: ensure descenders/swashes don't crop ── */
.italic,
.hero-headline .italic,
.section-title .italic,
.press-page-title .italic,
.detail-title .italic {
  font-style: italic;
  display: inline-block;
  padding-right: .12em;       /* breathing room for the italic 's' tail */
  margin-right: -.02em;
  overflow: visible;
  /* unset the line-clamp that would crop italic descenders on multi-line */
}
.hero-headline, .section-title, .press-page-title, .detail-title {
  overflow: visible;
  text-overflow: clip;
}
/* Same fix for inline-span spectrum-text wraps */
.spectrum-text {
  display: inline-block;
  padding-right: .08em;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-image: var(--spectrum);
}

/* ── Screenshot rail: lock 9:19.5 aspect at every size ───────────────── */
.shots-rail figure.shot-card,
.shots-rail .wp-block-image {
  flex: 0 0 auto;
  margin: 0;
  width: auto;
}
.shots-rail .wp-block-image img,
.shots-rail figure.shot-card img {
  display: block;
  height: clamp(260px, 42vw, 420px);
  width: auto;
  aspect-ratio: 9 / 19.5;
  max-width: none;
  object-fit: cover;
  border-radius: 18px;
  background: #06081a;
  border: 1px solid var(--line-strong);
}

/* ── App detail: solo hero (after detail-facts removal) ──────────────── */
.detail-hero-grid--solo {
  display: block;
  max-width: 760px;
}

/* ── "What it does" vertical stack with glass blur panel ─────────────── */
.detail-copy { padding-top: clamp(28px, 5vw, 64px); }
.detail-copy-stack {
  max-width: 820px;
  margin-inline: auto;
}
.detail-copy-stack > div:first-child {
  margin-bottom: 22px;
}
.detail-copy-body {
  padding: 32px clamp(20px, 3vw, 40px);
  background:
    linear-gradient(145deg, rgba(11,16,38,.78), rgba(8,12,28,.60));
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: 0 18px 50px rgba(0,0,0,.32);
  position: relative;
  overflow: hidden;
}
.detail-copy-body::before {
  content: "";
  position: absolute;
  inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 0% 0%, rgba(43,109,255,.10), transparent 35%),
    radial-gradient(circle at 100% 100%, rgba(255,46,177,.08), transparent 35%);
  opacity: .6;
  z-index: -1;
}
.detail-copy-body p,
.detail-copy-body li {
  color: var(--paper-soft);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}
.detail-copy-body p { margin: 0 0 14px; }
.detail-copy-body p:last-child { margin-bottom: 0; }
.detail-copy-body p b, .detail-copy-body p strong { color: var(--paper); font-weight: 700; }
.detail-copy-body .desc-head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--paper);
  letter-spacing: -.01em;
  margin: 22px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.detail-copy-body .desc-head::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--spectrum);
  border-radius: 2px;
}
.detail-copy-body .desc-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.detail-copy-body .desc-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.55;
}
.detail-copy-body .desc-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 9px;
  width: 7px; height: 7px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--mint);
}

/* ── Google Play badge as the download CTA ───────────────────────────── */
.gp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  height: 60px;
  transition: transform .18s ease, filter .18s ease;
}
.gp-badge img {
  display: block;
  height: 100%;
  width: auto;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.40));
}
.gp-badge:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

/* Responsive ticker + tweaks */
@media (max-width: 880px) {
  .hero-stage { min-height: 280px; }
  .hero-stage .logo-img { width: clamp(180px, 60vw, 320px); }
  .ticker-quote { max-width: 60vw; overflow: hidden; text-overflow: ellipsis; }
  .ticker-track { animation-duration: 45s; }
}
@media (max-width: 560px) {
  .gp-badge { height: 52px; }
  .ticker-outlet { font-size: 10px; }
  .ticker-item { font-size: 12px; padding: 4px 12px; }
}

/* ====================================================================
   v3.1 — perf passes + ticker legibility + footer brand letterform
   ==================================================================== */

/* Ticker legibility: glass-blur backdrop so it floats over the dither
   without competing with it for the eye. */
.press-ticker {
  background:
    linear-gradient(180deg, rgba(5,8,17,.78), rgba(5,8,17,.62));
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  border-top: 1px solid rgba(255,255,255,.06);
}
.ticker-quote { color: var(--paper); }   /* brighter quote vs dither */

/* Footer-brand spectrum text was clipping the "s" — give the bg-clip
   ink box room to render its full character width. */
.footer-brand .pulse {
  display: inline-block;
  padding-right: .14em;
  overflow: visible;
}

/* Footer-bottom heart accent (the "Funded by ♥…" line). */
.footer-bottom .heart {
  color: var(--magenta);
  text-shadow: 0 0 14px color-mix(in srgb, var(--magenta) 60%, transparent);
  display: inline-block;
  transform: translateY(.08em);
  font-size: 1.18em;
  animation: heartbeat 2.2s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: translateY(.08em) scale(1); }
  18%      { transform: translateY(.08em) scale(1.16); }
  32%      { transform: translateY(.08em) scale(1); }
  46%      { transform: translateY(.08em) scale(1.10); }
  60%      { transform: translateY(.08em) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .footer-bottom .heart { animation: none; }
}
.footer-bottom .badge {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.005em;
  color: var(--paper);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--magenta) 18%, transparent),
    color-mix(in srgb, var(--orange) 14%, transparent));
  border: 1px solid color-mix(in srgb, var(--magenta) 30%, var(--line-strong));
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .9em;
  white-space: nowrap;
}

/* Animation perf: paint isolation + off-screen content visibility.
   Lets the browser skip layout/paint of below-fold sections until they
   approach the viewport. Big win on long pages. */
.community-section,
.press-section,
.related,
.app-press,
.manifesto,
.strip,
.cat-grid,
.detail-copy {
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}

/* GPU-isolate the heavy animated layers so they composite cheaply. */
.press-marquee-track,
.ticker-track,
.strip-track,
.hero-stage [data-pixel-canvas] canvas,
.site-shader canvas {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Reduced-motion: stop every CSS animation in one place. */
@media (prefers-reduced-motion: reduce) {
  .press-marquee-track,
  .ticker-track,
  .strip-track { animation: none; }
  .press-ticker,
  .press-marquee,
  .strip { -webkit-mask-image: none; mask-image: none; }
}

/* ====================================================================
   v3.2 polish: screenshot aspect, lightbox darkening, app-support card
   ==================================================================== */

/* ── Screenshots: maintain NATURAL aspect ratio of each image ────────
   v3.1 forced 9:19.5 + object-fit:cover, which cropped any non-portrait
   shot. Let the source aspect win: height-clamp + width:auto preserves
   it at every viewport size, with object-fit:contain as a safety net. */
.shots-rail .wp-block-image img,
.shots-rail figure.shot-card img {
  display: block;
  height: clamp(220px, 38vw, 400px);
  width: auto;
  aspect-ratio: auto;          /* unset the v3.1 force */
  max-width: none;
  object-fit: contain;          /* never crop */
  border-radius: 18px;
  background: #06081a;
  border: 1px solid var(--line-strong);
}
@media (max-width: 560px) {
  .shots-rail .wp-block-image img,
  .shots-rail figure.shot-card img {
    height: clamp(200px, 56vw, 320px);   /* smaller phones still see the shape */
  }
}

/* ── WP core lightbox: dark backdrop, full-screen image, white-out gone
   The default core lightbox renders a white scrim. Force a deep ink
   backdrop with blur + saturate so the image floats on darkness, and
   give the image room to render at full attachment resolution. */
.wp-lightbox-overlay {
  background: rgba(3, 5, 12, .94) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.06);
          backdrop-filter: blur(28px) saturate(1.06);
}
.wp-lightbox-overlay .scrim,
.wp-lightbox-overlay::before {
  background: transparent !important;
}
.wp-lightbox-overlay .wp-lightbox-image-container,
.wp-lightbox-overlay figure {
  background: transparent !important;
  box-shadow: none !important;
}
.wp-lightbox-overlay .wp-lightbox-image-container img,
.wp-lightbox-overlay figure img,
.wp-lightbox-overlay img:not(.close-button img) {
  max-width: 94vw !important;
  max-height: 92vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 16px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .60);
}
/* Close button visible on dark backdrop */
.wp-lightbox-overlay .close-button,
.wp-lightbox-overlay button.close-button,
.wp-lightbox-overlay .wp-lightbox-overlay-close-button {
  background: rgba(255, 255, 255, .10) !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  color: white !important;
  backdrop-filter: blur(8px);
  width: 44px; height: 44px;
  border-radius: 999px;
  top: 24px !important;
  right: 24px !important;
}
.wp-lightbox-overlay .close-button:hover {
  background: rgba(255, 255, 255, .18) !important;
}
/* Container scaling - kill any default white frame */
.wp-lightbox-overlay .wp-lightbox-image-container,
.wp-lightbox-overlay [class*="wp-lightbox"] {
  padding: 0 !important;
}

/* ── App support card (the bottom Email + Privacy block) ─────────────── */
.app-support {
  padding-top: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(28px, 4vw, 56px);
}
.app-support-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 32px clamp(20px, 3vw, 36px);
  background:
    linear-gradient(145deg, rgba(11,16,38,.78), rgba(8,12,28,.60));
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  backdrop-filter: blur(18px) saturate(1.15);
  position: relative;
  overflow: hidden;
}
.app-support-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 0% 0%, rgba(43,109,255,.10), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(255,46,177,.08), transparent 40%);
  opacity: .6;
  z-index: -1;
}
.app-support-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-support-col + .app-support-col {
  border-left: 1px solid var(--line);
  padding-left: clamp(18px, 2.4vw, 32px);
}
.app-support-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 6px 0 0;
  color: var(--paper);
}
.app-support-body {
  color: var(--paper-soft);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  max-width: 38ch;
}
.app-support-col .btn {
  align-self: flex-start;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 720px) {
  .app-support-card { grid-template-columns: 1fr; gap: 24px; }
  .app-support-col + .app-support-col { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
}

/* ====================================================================
   v3.3: synergize app detail section widths
   Hero, "What it does", and Support card all share one max-width via
   a single CSS variable so they line up vertically as you scroll.
   ==================================================================== */
:root {
  --detail-max: 820px;
}
.detail-hero-grid--solo,
.detail-copy-stack,
.app-support .app-support-card,
.app-press .app-press-grid {
  max-width: var(--detail-max);
  margin-inline: auto;
}
/* The "What it does" eyebrow + h2 row should center within the same gutter. */
.detail-copy-stack > div:first-child {
  max-width: var(--detail-max);
  margin-inline: auto;
}

/* ====================================================================
   v3.4: breathing room between the quote and the meta separator line
   ==================================================================== */
.press-card {
  gap: 24px;             /* was 18 - more space between quote and meta */
  padding: 22px 24px 20px;
}
.press-card--marquee {
  padding: 26px 28px 22px;
}
.press-quote {
  padding-bottom: 6px;   /* extra cushion above the rule */
}
.press-meta {
  padding-top: 18px;     /* was 14 - cushion below the rule */
}

/* ====================================================================
   v3.5: LG bento image, app-detail width consistency, section spacing
   ==================================================================== */

/* ── LG bento card image: enlarge + center-top so the energy ring around
   the punch-hole camera (top of phone) is the focal point. ─────────── */
.feat-lg-stage {
  min-height: clamp(280px, 32vw, 460px);
  overflow: hidden;
  border-radius: 18px;
  position: relative;
}
.feat-lg-stage img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center 22%;  /* favor upper portion - camera / ring area */
  display: block;
  position: absolute;
  inset: 0;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .35));
}

/* ── App-detail width consistency: every section content stays at --detail-max
   so the eye tracks a single column down the page. Screenshots + related
   grids previously spanned the full shell (1220px), creating a jarring
   width jump. Constrain them too. ─────────────────────────────────── */
.shots-section .shell > *,
.related .shell > *,
.app-press .shell > * {
  max-width: var(--detail-max);
  margin-inline: auto;
}
/* The .shots-rail itself can scroll inside the constrained column. */
.shots-section .shots-rail {
  max-width: var(--detail-max);
  margin-inline: auto;
}
/* Related grid: ensure cards autoflow within the narrower frame. */
.related-grid {
  max-width: var(--detail-max);
  margin-inline: auto;
}

/* ── Bottom breathing room on the loved-by-community + related sections ──
   Stops cards from crashing into the next section's separator line. */
.app-press,
.related {
  padding-bottom: clamp(48px, 7vw, 88px);
}
/* And give the last section before the footer a touch more clearance. */
.related + footer .spectrum-bar,
section:last-of-type {
  margin-top: 0;
}
.related .related-grid {
  margin-bottom: 12px;
}

/* ====================================================================
   v3.6: LG bento image properly fills the stage container
   (overrides the original design's max-width:60% + object-fit:contain
   that was leaving the screenshot as a small centered thumbnail).
   ==================================================================== */
.feat-lg-stage {
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--line);
  /* Drop place-items:center so the img can fill the whole stage. */
  display: block;
  min-height: clamp(320px, 36vw, 520px);
}
.feat-lg-stage img,
.bento-card.feat-lg .feat-lg-stage img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  /* Phones screenshot top = camera + energy ring. Focal point ~ 18% from top. */
  object-position: center 18% !important;
  border-radius: 0 !important;
  position: absolute;
  inset: 0;
  filter: drop-shadow(0 26px 50px rgba(0,0,0,.45));
}
@media (max-width: 1180px) {
  .bento-card.feat-lg .feat-lg-stage { min-height: 360px; max-height: none; }
  .bento-card.feat-lg .feat-lg-stage img { max-width: 100% !important; max-height: 100% !important; }
}
@media (max-width: 880px) {
  .bento-card.feat-lg .feat-lg-stage { min-height: 320px; border-left: 0; border-top: 1px solid var(--line); max-height: none; }
  .bento-card.feat-lg .feat-lg-stage img { max-width: 100% !important; max-height: 100% !important; }
}

/* ====================================================================
   v3.7: BuiltFor strip - glass-blur band so text is legible over the
   dither, plus one more accent dot color for the 8th item.
   ==================================================================== */
.builtfor {
  position: relative;
  background:
    linear-gradient(180deg, rgba(5,8,17,.60), rgba(5,8,17,.46));
  -webkit-backdrop-filter: blur(20px) saturate(1.20);
          backdrop-filter: blur(20px) saturate(1.20);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}
/* Strengthen text against the blur background */
.builtfor-label { color: rgba(255,255,255,.74); }
.builtfor-item  { color: var(--paper); }
/* Add accent colors for the new 7th + 8th items so dots cycle through the spectrum */
.builtfor-item:nth-child(7) .dot { background: var(--cyan); }
.builtfor-item:nth-child(8) .dot { background: var(--magenta); }

/* 9th BuiltFor dot color (Accessibility) */
.builtfor-item:nth-child(9) .dot { background: var(--amber); }
