/* Yono 777 — Brand App Profile shell stylesheet
 * Design system: layered dark product lobby + emerald signal + gold accent
 * Variances: 7 / 3 / 5
 * Template: brand-app-profile (single-app-product archetype)
 */

/* ---------- Font fallback metric matching (CLS = 0) ----------
 * Google Fonts (Inter, Manrope) load async via `display=swap`. The default
 * `font-display: swap` causes the system fallback to render first, then
 * the web font swaps in — the metric mismatch shifts the surrounding
 * layout (paragraphs, headlines, facts rows). We override the metric
 * axes on the local fallback font (system-ui) so the swap is
 * layout-neutral. Google-provided reference values for Inter
 * (ascent 968 / descent 273 / line-gap 0 @ 2048 UPM, ~0.473em ascender,
 * ~0.134em descender) and Manrope (ascent 1068 / descent 292 / line-gap 0
 * @ 2048 UPM, ~0.521em ascender, ~0.143em descender) are applied below.
 */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22.43%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Manrope Fallback';
  src: local('Arial');
  size-adjust: 92%;
  ascent-override: 95%;
  descent-override: 26%;
  line-gap-override: 0%;
}

:root {
  --bg: #0B1320;
  --bg-2: #111B2D;
  --surface: #16223A;
  --surface-2: #1A253D;
  --surface-3: #213057;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #E5EAF2;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --emerald: #10B981;
  --emerald-bright: #22C55E;
  --emerald-deep: #064E3B;
  --gold: #E0B43A;
  --warning: #F59E0B;
  --danger: #EF4444;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --shadow-1: 0 4px 14px rgba(0, 0, 0, 0.32);
  --shadow-2: 0 12px 32px rgba(0, 0, 0, 0.45);
  --max-w: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Inter Fallback', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

img, picture, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--emerald-bright); text-decoration: none; }
a:hover { color: var(--emerald); }

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ---------- Layout shell ---------- */

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--space-5); }
}

main { flex: 1; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(11, 19, 32, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 64px;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
}

.brand .mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex: 0 0 auto;
  object-fit: cover;
}

.brand .name {
  font-family: 'Manrope', 'Manrope Fallback', system-ui, sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand .tag {
  display: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald);
  font-weight: 600;
}

@media (min-width: 600px) {
  .brand .tag { display: inline; }
}

.primary-nav {
  display: none;
  align-items: center;
  gap: 2px;
}

.primary-nav a {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.primary-nav a:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.primary-nav a.cta-link {
  background: var(--emerald);
  color: #04221B;
  font-weight: 700;
  margin-left: var(--space-2);
}
.primary-nav a.cta-link:hover { background: var(--emerald-bright); color: #04221B; }

@media (min-width: 900px) {
  .primary-nav { display: flex; }
}

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  position: relative;
  z-index: 300;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (min-width: 900px) {
  .hamburger { display: none; }
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--bg-2);
  z-index: 250;
  display: flex;
  flex-direction: column;
  padding: 80px 24px 32px;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.28s ease, visibility 0.28s ease;
}

.mobile-drawer[data-open="true"] { transform: translateX(0); visibility: visible; }

.mobile-drawer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.mobile-drawer li a, .mobile-drawer li button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 14px 16px;
  border-radius: 10px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}

.mobile-drawer li a:hover, .mobile-drawer li button:hover { background: rgba(255,255,255,0.06); }

.mobile-drawer .install-cta {
  margin-top: var(--space-4);
  display: inline-flex;
  width: 100%;
  justify-content: center;
  background: var(--emerald);
  color: #04221B;
  font-weight: 700;
  padding: 14px 18px;
  border-radius: 12px;
}

.mobile-drawer .close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 22px;
  display: grid;
  place-items: center;
}

@media (min-width: 900px) {
  .mobile-drawer { display: none !important; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--emerald);
  color: #04221B;
}
.btn-primary:hover { background: var(--emerald-bright); color: #04221B; }

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: rgba(255,255,255,0.10); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-block { width: 100%; }

/* ---------- Brand-app-profile ---------- */

.app-profile {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(16,185,129,0.10), transparent 60%),
    radial-gradient(ellipse at 0% 60%, rgba(224,180,58,0.06), transparent 60%),
    var(--bg);
  padding: var(--space-6) 0 var(--space-7);
  border-bottom: 1px solid var(--border);
}

.app-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  position: relative;
}

.app-profile-grid::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--emerald), transparent);
  border-radius: 2px;
}

@media (min-width: 960px) {
  .app-profile-grid {
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: var(--space-7);
  }
}

.identity {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.identity .icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid var(--border-strong);
}

@media (max-width: 480px) {
  .identity .icon { width: 72px; height: 72px; border-radius: 18px; }
}

.identity .text .eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.identity .text h1 {
  font-family: 'Manrope', 'Manrope Fallback', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.1;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}

.identity .text .lede {
  color: var(--text-muted);
  margin: 0 0 var(--space-3);
  font-size: 15px;
  max-width: 60ch;
}

.facts {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  /* CLS guard: reserve row height so late-loading fonts don't reflow siblings */
  min-height: 240px;
  contain: layout;
}

.facts li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.facts li span.k {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}

.facts li span.v {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.install-cta {
  margin-top: var(--space-4);
}

.profile-rail {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 600px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.gallery figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  /* CLS guard: reserve final image+caption height so figcaption cannot
   * expand the figure box after content paints (358x267 image + 41px caption + borders) */
  min-height: 320px;
  contain: layout;
}

.gallery figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  /* Make the image's slot match the LCP source's natural 4:3.5 ratio */
  background: var(--surface-2);
}

.gallery > figure:first-child {
  /* LCP slot — keep reserved area the same on first paint */
  min-height: 320px;
}

.gallery figcaption {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-muted);
  /* Reserve caption height so the figure's final size is known pre-paint */
  min-height: 41px;
  line-height: 1.35;
}

/* ---------- Content modules ---------- */

.module {
  padding: var(--space-7) 0;
  border-bottom: 1px solid var(--border);
}

.module h2 {
  font-family: 'Manrope', 'Manrope Fallback', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 var(--space-3);
  letter-spacing: -0.01em;
}

.module h3 {
  font-family: 'Manrope', 'Manrope Fallback', system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin: var(--space-4) 0 var(--space-2);
}

.module p {
  margin: 0 0 var(--space-3);
  color: var(--text);
  max-width: 70ch;
}

.module .lede {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 72ch;
  margin-bottom: var(--space-5);
}

/* ---------- Card grid (features) ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature .icon-tile {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(16,185,129,0.14);
  display: grid;
  place-items: center;
  color: var(--emerald-bright);
  font-weight: 800;
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  margin-bottom: 4px;
}

.feature h3 { margin: 0; font-size: 16px; }
.feature p { margin: 0; font-size: 14px; color: var(--text-muted); }

/* ---------- Step list (install) ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--space-3);
  align-items: flex-start;
}

.step .num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--emerald);
  color: #04221B;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
}

.step h3 { margin: 0 0 4px; font-size: 15px; }
.step p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* ---------- HOT shelf (4-column) ---------- */

.hot {
  padding: var(--space-6) 0;
}

.hot .heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.hot .heading h2 {
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 3vw, 26px);
  margin: 0;
  letter-spacing: 0.04em;
}

.hot-shelf {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

@media (max-width: 720px) {
  .hot-shelf { grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); grid-template-columns: none; overflow-x: auto; padding-bottom: var(--space-3); scroll-snap-type: x mandatory; }
  .hot-shelf > * { scroll-snap-align: start; }
}

.hot-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-3);
  align-items: center;
  color: var(--text);
  text-decoration: none;
  min-height: 84px;
}

.hot-item:hover { background: var(--surface-2); }

.hot-item .art {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--bg-2);
}

.hot-item .label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald);
  font-weight: 700;
}

.hot-item .name {
  font-size: 14px;
  font-weight: 600;
  margin-top: 2px;
  line-height: 1.25;
}

.hot-item .intent {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- YONO collection ---------- */

.yono {
  padding: var(--space-6) 0;
}

.yono .heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.yono h2 {
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 3vw, 26px);
  margin: 0;
}

.yono-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.yono-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: var(--space-3);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.yono-row .logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
}

.yono-row .name {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yono-row .cat {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.yono-row .actions {
  display: flex;
  gap: 6px;
}

.yono-row .actions a {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 10px;
}

.yono-row .actions a.install {
  background: var(--emerald);
  color: #04221B;
  font-weight: 700;
}

.yono-row .actions a.profile {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

@media (max-width: 540px) {
  .yono-row { grid-template-columns: 48px 1fr; }
  .yono-row .actions { grid-column: 1 / -1; }
  .yono-row .actions a { flex: 1; text-align: center; }
}

/* ---------- Provider tabs ---------- */

.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 var(--space-3);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-4);
}

.tabs button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
}

.tabs button[aria-selected="true"] {
  background: var(--emerald);
  color: #04221B;
  border-color: var(--emerald);
  font-weight: 700;
}

/* ---------- App directory ---------- */

.directory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.directory-head .search {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 6px 10px;
  min-width: 220px;
}

.directory-head .search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 14px;
  padding: 6px;
}

.directory-head .result-count {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.directory-head .filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 100%;
  margin-bottom: 4px;
}

.directory-head .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.directory-head .chip:hover { border-color: var(--accent); }

.directory-head .chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0B1320;
}

.directory-head .chip-count {
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.12);
  padding: 1px 6px;
  border-radius: 999px;
}

.directory-head .chip.is-active .chip-count {
  background: rgba(255, 255, 255, 0.25);
  color: #0B1320;
}

.app-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-2);
}

.app-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: var(--space-3);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.nav-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 12px 0 24px;
}
.nav-card p { margin: 0 0 12px; color: var(--text-muted); }
.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.nav-list li {
  padding: 6px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.nav-list li:first-child { border-top: 0; }
.nav-list a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }

.app-row .logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
}

.app-row .name a {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}

.app-row .meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.app-row .install {
  background: var(--emerald);
  color: #04221B;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 10px;
  white-space: nowrap;
}

@media (max-width: 540px) {
  .app-row { grid-template-columns: 48px 1fr; }
  .app-row .install { grid-column: 1 / -1; text-align: center; }
}

.empty-state {
  text-align: center;
  padding: var(--space-6);
  color: var(--text-muted);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

/* ---------- Tables ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-4) 0;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:last-child td { border-bottom: 0; }

.table-scroll {
  overflow-x: auto;
  margin: var(--space-4) 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.table-scroll table { margin: 0; min-width: 540px; }

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: var(--space-2); margin: var(--space-4) 0 0; padding: 0; list-style: none; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.faq-item summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 44px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--emerald);
  font-size: 20px;
  font-weight: 700;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  margin: 0;
  padding: 0 16px 14px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- News ---------- */

.news-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 720px) {
  .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-card .thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-card .body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-card .date {
  font-size: 12px;
  color: var(--text-dim);
}

.news-card h3 {
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-size: 16px;
  margin: 0;
  line-height: 1.25;
}

.news-card a { color: var(--text); }
.news-card a:hover { color: var(--emerald-bright); }

/* ---------- Light band ---------- */

.band-light {
  background: #F8FAFC;
  color: #0F172A;
  padding: var(--space-7) 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.band-light h2, .band-light h3 { color: #0F172A; }
.band-light p, .band-light li { color: #1F2937; }

.band-light .feature,
.band-light .step,
.band-light .hot-item,
.band-light .app-row,
.band-light .yono-row,
.band-light .faq-item,
.band-light .news-card,
.band-light .facts li,
.band-light .gallery figure {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.08);
}

.band-light .feature .icon-tile {
  background: rgba(16,185,129,0.14);
  color: #047857;
}

.band-light .step .num { background: #047857; color: #fff; }

.band-light .tabs button {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.10);
  color: #475569;
}

.band-light .tabs button[aria-selected="true"] {
  background: #047857;
  color: #FFFFFF;
  border-color: #047857;
}

.band-light table th { background: #F1F5F9; color: #475569; }
.band-light .faq-item summary::after { color: #047857; }

.band-light a { color: #047857; }

/* band-light contrast fixes (WCAG AA ≥4.5:1) */
.band-light .lede { color: #475569; }
.band-light .app-row .name a { color: #0F172A; }
.band-light .app-row .meta { color: #475569; }
.band-light .yono-row .name { color: #0F172A; }
.band-light .yono-row .cat { color: #475569; }
.band-light .feature p { color: #1F2937; }
.band-light .step p { color: #1F2937; }
.band-light .hot-item .name { color: #0F172A; }
.band-light .hot-item .intent { color: #475569; }
.band-light .news-card .date { color: #475569; }
.band-light .facts li span.v { color: #0F172A; }
.band-light .gallery figcaption { color: #475569; }

/* Dark-footer legal text needs stronger contrast (3.62 → ≥4.5) */
.footer-meta { color: #94A3B8; }
.footer-meta .legal { color: #94A3B8; }
.site-footer .disclosure { color: #CBD5E1; }

/* Links inside body text need non-color distinguisher (WCAG 1.4.1) */
.module p a,
.module li a,
.article p a,
.article li a,
.faq-item p a,
.band-light p a,
.band-light li a,
.yono p a,
.yono li a,
.hot p a,
.hot li a,
.app-profile p a,
.app-profile li a,
.site-footer p a,
.site-footer li a,
main p a,
main li a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.module p a:hover,
.module li a:hover,
.article p a:hover,
.article li a:hover,
.faq-item p a:hover,
.band-light p a:hover,
.band-light li a:hover,
.yono p a:hover,
.yono li a:hover,
.hot p a:hover,
.hot li a:hover,
.app-profile p a:hover,
.app-profile li a:hover,
.site-footer p a:hover,
.site-footer li a:hover,
main p a:hover,
main li a:hover {
  text-decoration-thickness: 2px;
}

/* ---------- Inline image row ---------- */

.inline-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin: var(--space-4) 0;
  align-items: start;
}

.inline-row img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

@media (min-width: 700px) {
  .inline-row { grid-template-columns: 1fr 1fr; }
  .inline-row.reverse { grid-template-columns: 1fr 1fr; }
  .inline-row > *:nth-child(2) { order: 0; }
}

/* ---------- Article body (news/legal/profile) ---------- */

.article {
  padding: var(--space-7) 0;
}

.article .meta {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: var(--space-3);
}

.article h1 {
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.01em;
}

.article h2 {
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin: var(--space-5) 0 var(--space-2);
}

.article h3 {
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-weight: 700;
  font-size: 17px;
  margin: var(--space-4) 0 var(--space-2);
}

.article p { max-width: 72ch; }
.article ul, .article ol { max-width: 72ch; padding-left: 22px; }
.article li { margin-bottom: 6px; }

.article figure { margin: var(--space-4) 0; }
.article figure img { border-radius: var(--radius); border: 1px solid var(--border); }
.article figcaption { color: var(--text-muted); font-size: 13px; padding-top: 6px; }

.band-light .article { color: #0F172A; }
.band-light .article .meta { color: #64748B; }
.band-light .article h1, .band-light .article h2, .band-light .article h3 { color: #0F172A; }
.band-light .article figure img { border-color: rgba(15,23,42,0.08); }

.route-hero {
  margin: 0 0 var(--space-4);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
}
.route-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.route-hero figcaption {
  color: var(--text-muted);
  font-size: 13px;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--border);
}
@media (min-width: 900px) {
  .route-hero { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; align-items: stretch; }
  .route-hero img { aspect-ratio: 3 / 4; max-width: none; height: 100%; border-right: 1px solid var(--border); }
  .route-hero figcaption { border-top: 0; display: flex; align-items: center; padding: 16px 20px; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-2);
  color: var(--text);
  padding: var(--space-7) 0 var(--space-5);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
}

.site-footer h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 var(--space-3);
  font-weight: 700;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer ul li a { color: var(--text); font-size: 14px; }
.site-footer ul li a:hover { color: var(--emerald-bright); }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
  font-size: 12px;
  color: #94A3B8;
}

.footer-meta > span { color: #94A3B8; }

.footer-meta .legal a { color: var(--text-muted); }
.footer-meta .legal a:hover { color: var(--emerald-bright); }

/* ---------- Sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 220;
  background: rgba(11, 19, 32, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-strong);
  padding: 10px 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.sticky-cta[data-shown="true"] { transform: translateY(0); }

.sticky-cta .label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.2;
}

.sticky-cta .label strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.sticky-cta .btn { padding: 10px 16px; font-size: 14px; }

@media (min-width: 900px) {
  .sticky-cta { display: none; }
}

/* ---------- Misc helpers ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.section-head h2 {
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 3vw, 30px);
  margin: 0;
}

.section-head a { font-size: 14px; }

.disclosure {
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: var(--space-3);
  margin-top: var(--space-5);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(16,185,129,0.12);
  color: var(--emerald-bright);
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.band-light .tag { background: rgba(4,120,87,0.10); color: #047857; }

/* prevent horizontal page overflow */
html, body { overflow-x: hidden; }

img { max-width: 100%; }

.no-wrap { white-space: nowrap; }

/* Homepage YONO preview: monogram tiles (protected pool art stays in /app/ catalogue + /apps/ detail only) */
.yono-row .logo-mono {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.5px;
  color: #04221B;
  background: linear-gradient(135deg, var(--emerald-bright, #34d399) 0%, var(--emerald, #10b981) 100%);
  border: 1px solid var(--border-strong);
  flex: 0 0 auto;
}
