/* IndieTower — Mobbin-inspired light design system */

:root {
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --bg-muted: #f5f5f5;
  --bg-elev: #ffffff;
  --bg-card: #f5f5f5;
  --bg-card-hover: #eeeeee;
  --border: #e5e5e5;
  --border-strong: #d4d4d4;
  --text: #171717;
  --text-muted: #737373;
  --text-dim: #a3a3a3;
  --primary: #0a0a0a;
  --primary-fg: #ffffff;
  --accent: #0a0a0a;
  --danger: #dc2626;
  --warn: #d97706;
  --ok: #16a34a;
  --ios: #2563eb;
  --android: #16a34a;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --nav-h: 64px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4.5rem;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --text-display: clamp(2.5rem, 6vw, 3.75rem);
  --text-title: clamp(1.75rem, 3.5vw, 2.25rem);
  --text-heading: 1.25rem;
  --text-body: 1rem;
  --text-caption: 0.8125rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--text-muted); }
img { max-width: 100%; display: block; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.container { width: min(1120px, calc(100% - 2.5rem)); margin: 0 auto; }
.container-wide { width: min(1280px, calc(100% - 2.5rem)); margin: 0 auto; }
.mono { font-family: var(--mono); font-size: 0.85em; }

/* Preview strip */
.preview-banner {
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-size: var(--text-caption);
  padding: 0.4rem 1rem;
  color: var(--text-muted);
}

/* ── Floating pill nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.85rem 1rem 0;
  background: transparent;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(920px, calc(100% - 0rem));
  margin: 0 auto;
  padding: 0.45rem 0.5rem 0.45rem 1rem;
  background: rgba(245, 245, 245, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.brand:hover { color: var(--text); text-decoration: none; }
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: "I";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.brand-name { font-size: 0.95rem; }
.nav {
  display: flex;
  gap: 0.15rem;
  flex: 1;
  justify-content: center;
  align-items: center;
}
.nav-link {
  color: var(--text);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text-muted); background: transparent; text-decoration: none; }
.nav-link.active { color: var(--text); font-weight: 600; }
.nav-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
}
.nav-link-icon svg { width: 18px; height: 18px; display: block; }

.header-cta { flex-shrink: 0; margin-left: auto; }
.nav-toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .header-cta { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 60;
  }
  .site-header.nav-open .nav { display: flex; }
  .site-header.nav-open .header-inner { position: relative; }
  .nav-link { padding: 0.75rem 1rem; }
  .header-inner { width: 100%; }
}

.main { padding: 1.5rem 0 5rem; }
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  color: var(--text-muted);
  font-size: var(--text-caption);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { color: var(--text-muted); font-weight: 500; }
.footer-links a:hover { color: var(--text); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}
.btn-primary:hover { background: #262626; color: var(--primary-fg); border-color: #262626; }
.btn-secondary {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover { background: var(--bg-muted); color: var(--text); border-color: var(--border-strong); }
.btn-sm { padding: 0.45rem 0.95rem; font-size: 0.8125rem; }
.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); background: var(--bg-muted); }

/* ── Landing hero ── */
.hero {
  padding: var(--space-10) 0 var(--space-8);
  text-align: center;
}
.hero-inner { max-width: 40rem; margin: 0 auto; }
.hero-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.75rem;
  border-radius: 20px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: var(--shadow);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: var(--text-display);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--text);
}
.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 auto 2rem;
  line-height: 1.55;
  font-weight: 400;
}
.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-row.left { justify-content: flex-start; }

/* Product proof preview */
.proof {
  margin: 0 auto var(--space-10);
  max-width: 920px;
}
.proof-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.proof-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0 0.25rem;
}
.proof-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}
.proof-label {
  margin-left: auto;
  font-size: var(--text-caption);
  color: var(--text-muted);
  font-weight: 500;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
@media (max-width: 720px) {
  .proof-grid { grid-template-columns: 1fr; }
}
.proof-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: left;
}
.proof-card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.proof-card h3 {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}
.proof-card .sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Sections */
.section { margin-top: var(--space-10); }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.section-head.centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}
.section-head h2 {
  margin: 0;
  font-size: var(--text-title);
  letter-spacing: -0.035em;
  font-weight: 700;
  line-height: 1.2;
}
.section-head p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  max-width: 28rem;
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.feature:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.feature-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg-muted);
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  border: 1px solid var(--border);
}
.feature h3 { margin: 0 0 0.4rem; font-size: 1.02rem; letter-spacing: -0.02em; }
.feature p { margin: 0; color: var(--text-muted); font-size: 0.92rem; line-height: 1.5; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  text-align: left;
  padding: 1.25rem 0;
}
.step-num {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.step h3 { margin: 0 0 0.35rem; font-size: 1.05rem; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

.final-cta {
  margin-top: var(--space-10);
  text-align: center;
  padding: var(--space-8) var(--space-5);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.final-cta h2 {
  margin: 0 0 0.65rem;
  font-size: var(--text-title);
  letter-spacing: -0.035em;
}
.final-cta p {
  margin: 0 auto 1.75rem;
  color: var(--text-muted);
  max-width: 28rem;
}

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 2.5rem; }
.stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 0.75rem;
  text-align: center;
}
.stat-value { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; }
.stat-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.2rem; font-weight: 500; }

/* ── Page chrome ── */
.page-header {
  margin-bottom: 0.85rem;
  padding-top: 0.5rem;
}
.page-title {
  margin: 0;
  font-size: var(--text-title);
  letter-spacing: -0.035em;
  font-weight: 700;
  line-height: 1.15;
}
.page-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 44rem;
}
.page-sub a { color: var(--text); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.page-sub a:hover { color: var(--text-muted); }
.page-sub code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--bg-muted);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* ── Sticky filter bar ── */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: none;
  border-radius: 0;
  padding: 0.65rem 0;
  position: sticky;
  top: 5.25rem;
  z-index: 30;
  box-shadow: none;
}
.field { display: grid; gap: 0.3rem; }
.field label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.field input, .field select, .field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.9rem;
  min-width: 110px;
  outline: none;
  font-family: inherit;
  font-size: 0.875rem;
  appearance: none;
  background-image: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}
.field input:focus, .field select:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}
.field-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}
.field-check input { accent-color: var(--primary); width: 1rem; height: 1rem; }

/* ── Segmented tabs (Mobbin-like pills) ── */
.field-seg {
  display: grid;
  gap: 0.3rem;
  align-content: end;
}
.field-seg .field-label,
.field-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.seg {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  background: var(--bg-muted);
  border-radius: var(--radius-pill);
  border: none;
}
.seg-item {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  margin: 0;
  user-select: none;
}
.seg-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.seg-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: background 0.12s ease, color 0.12s ease;
}
.seg-item:hover span {
  color: var(--text);
}
.seg-item input:checked + span {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: var(--shadow-sm);
}
.seg-item input:focus-visible + span {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Search field grows in sticky filter bar */
.field-grow {
  flex: 1 1 200px;
  min-width: 180px;
}
.field-grow input {
  min-width: 0;
  width: 100%;
}

/* Horizontal scroll for dense segmented controls (installs) */
.seg-scroll {
  max-width: min(100%, 28rem);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.filters-note {
  flex: 1 0 100%;
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ── Mobile: collapse sticky filters so results stay visible ── */
.filters-toggle {
  display: none;
}
@media (max-width: 820px) {
  .filters-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    flex: 1 0 100%;
    margin: 0;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
  }
  .filters-toggle:hover { background: var(--bg-muted); }
  .filters-toggle-meta {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.8125rem;
  }
  .filters {
    top: 4.5rem;
    gap: 0.65rem 0.75rem;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
  }
  /* Collapsed: only the toggle sticks — results fill the screen */
  .filters:not(.filters-open) {
    position: sticky;
  }
  .filters:not(.filters-open) > :not(.filters-toggle) {
    display: none !important;
  }
  /* Open: full form scrolls away with the page (not pinned half-screen) */
  .filters.filters-open {
    position: static;
    top: auto;
  }
}


/* Cascading genre: disabled until Category = Apps|Games */
.field-genre select {
  min-width: 12rem;
  max-width: 18rem;
}
.field-genre-disabled select,
.field select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  color: var(--text-muted);
  background: var(--bg-muted);
}


/* ── Card grid (browse) ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.app-row-wrap {
  position: relative;
  display: flex;
  height: 100%;
}
.app-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.15rem;
  background: var(--bg-card);
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
  position: relative;
  min-height: 10.75rem;
  height: 100%;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.app-card:hover {
  background: var(--bg-card-hover);
  text-decoration: none;
  color: inherit;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.app-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
  flex: 1;
}
.app-card-body { flex: 1; min-width: 0; }
/* Reserve space so absolute Store chip never overlaps title */
.app-row-wrap:has(.app-card-actions) .app-card-body {
  padding-right: 4.75rem;
}
.app-card-body h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  letter-spacing: -0.015em;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-card-dev {
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.5rem;
  max-height: 3.1rem; /* ~2 badge rows */
  overflow: hidden;
}
.app-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: var(--text-caption);
  color: var(--text-muted);
  min-width: 0;
}
.app-card-date {
  white-space: nowrap;
  flex-shrink: 0;
}
.app-card-foot .dim {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  text-align: right;
}
.app-card-actions {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
}

/* Legacy list (gonogo competitors etc.) */
.app-list { display: grid; gap: 0.65rem; }
.app-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 1rem;
  background: var(--bg-card);
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: background 0.12s ease, transform 0.12s ease;
}
.app-row:hover {
  background: var(--bg-card-hover);
  text-decoration: none;
  transform: translateY(-1px);
  color: inherit;
}
.app-row-actions {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  z-index: 2;
}
.app-meta h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.app-meta .sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.app-side {
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-dim);
  display: grid;
  gap: 0.2rem;
  justify-items: end;
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.app-icon-fallback {
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: var(--bg-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.badge-ios { color: var(--ios); border-color: #bfdbfe; background: #eff6ff; }
.badge-android { color: var(--android); border-color: #bbf7d0; background: #f0fdf4; }
.badge-game { color: #7c3aed; border-color: #ddd6fe; background: #f5f3ff; }
.badge-launch { color: var(--ok); border-color: #bbf7d0; background: #f0fdf4; }
.badge-update { color: var(--warn); border-color: #fde68a; background: #fffbeb; }
.badge-installs { color: var(--text); border-color: var(--border); background: var(--bg); }

.country-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-family: var(--mono);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg);
}

.store-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.store-link-chip:hover {
  color: var(--text);
  border-color: var(--border-strong);
  text-decoration: none;
}

.empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
}
.empty a { color: var(--text); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.empty code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--bg);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* ── Timeline day groups ── */
.timeline { display: grid; gap: 2.5rem; }
.timeline-day-head {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.timeline-day-title {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.timeline-day-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0;
}
.timeline-day-counts {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.timeline-day-counts .count-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.timeline-store-split { display: inline-flex; gap: 0.35rem; }

/* ── Cards / panels ── */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
}

/* ── App detail ── */
.detail-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.75rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
}
.detail-hero .app-icon { width: 96px; height: 96px; border-radius: 22px; }
.detail-hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.035em;
  font-weight: 700;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.65rem 0; }
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}
.meta-item {
  background: var(--bg-card);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}
.meta-item .label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.meta-item .value { font-weight: 600; margin-top: 0.2rem; word-break: break-word; letter-spacing: -0.01em; }

.installs-row {
  margin: 0 0 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid transparent;
  border-radius: var(--radius);
}
.installs-row .installs-value {
  font-size: 1.4rem;
  letter-spacing: -0.025em;
  margin-top: 0.25rem;
  font-weight: 700;
}
.installs-note { margin-top: 0.35rem; font-size: 0.85rem; }
.store-open-btn { margin-top: 0.15rem; }

.shots {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shots img {
  height: 280px;
  width: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  scroll-snap-align: start;
  background: var(--bg-muted);
}
.panel { margin-top: 1.75rem; }
.panel h2 {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
th, td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border);
}
tr:last-child td { border-bottom: none; }
th {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  background: var(--bg-muted);
}
.desc {
  white-space: pre-wrap;
  color: var(--text-muted);
  font-size: 0.92rem;
  max-height: 280px;
  overflow: auto;
  line-height: 1.55;
}

/* ── Go/No-Go ── */
.verdict {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}
.verdict-go { background: #f0fdf4; color: var(--ok); border: 1px solid #bbf7d0; }
.verdict-caution { background: #fffbeb; color: var(--warn); border: 1px solid #fde68a; }
.verdict-nogo { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }

.score-ring {
  --p: 50;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(closest-side, var(--bg) 72%, transparent 73% 100%),
    conic-gradient(var(--primary) calc(var(--p) * 1%), var(--bg-muted) 0);
  border: 1px solid var(--border);
}
.score-ring strong { font-size: 1.5rem; letter-spacing: -0.03em; }
.score-ring span { font-size: 0.7rem; color: var(--text-dim); }

.gonogo-result {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
@media (max-width: 640px) {
  .gonogo-result { grid-template-columns: 1fr; }
  .detail-hero { grid-template-columns: 1fr; }
}
.breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.6rem;
  margin: 1rem 0;
}
.note-list { margin: 0; padding-left: 1.1rem; color: var(--text-muted); }
.note-list li { margin: 0.35rem 0; }

/* ── Lightbox ── */
.shots .shot-thumb {
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  scroll-snap-align: start;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.shots .shot-thumb:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.shots .shot-thumb img {
  height: 280px;
  width: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-muted);
  pointer-events: none;
}

body.lightbox-open { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
}
.lightbox[hidden] { display: none !important; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
}
.lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(96vw, 1100px);
  max-height: 92vh;
  padding: 2.5rem 3.5rem;
}
.lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow-lg);
  background: #0a0a0a;
}
.lightbox-close {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(23, 23, 23, 0.9);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: #262626; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(23, 23, 23, 0.9);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox-nav:hover:not(:disabled) { background: #262626; }
.lightbox-nav:disabled { opacity: 0.35; cursor: default; }
.lightbox-prev { left: 0.15rem; }
.lightbox-next { right: 0.15rem; }
.lightbox-counter {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}
@media (max-width: 640px) {
  .lightbox-dialog { padding: 2.5rem 0.5rem 1rem; }
  .lightbox-nav { width: 2.2rem; height: 2.2rem; font-size: 1.35rem; }
  .shots .shot-thumb img, .shots img { height: 220px; }
  .filters { top: 4.5rem; }
}

/* ── Aliases: page markup ↔ design system ── */
.timeline-day { display: grid; gap: 1rem; }
/* Keep .app-row-wrap / .app-card-actions from primary card rules (equal-height + padding reservation) */
.country-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-family: var(--mono);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg);
}
.detail-hero { /* alias of .detail-hero */
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.75rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
}
.detail-hero .app-icon { width: 96px; height: 96px; border-radius: 22px; }
.detail-hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.035em;
  font-weight: 700;
}
.installs-row {
  margin: 0 0 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius);
}
.installs-row .label,
.meta-item .label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.installs-value, .installs-row .value {
  font-size: 1.4rem;
  letter-spacing: -0.025em;
  margin-top: 0.25rem;
  font-weight: 700;
}
.installs-note { margin-top: 0.35rem; font-size: 0.85rem; }
.shot-thumb {
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  scroll-snap-align: start;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.shot-thumb img {
  height: 280px;
  width: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-muted);
  pointer-events: none;
}
.shot-thumb:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.gonogo-result {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
@media (max-width: 640px) {
  .gonogo-result, .detail-hero { grid-template-columns: 1fr; }
}
.score-ring {
  --p: 50;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(closest-side, var(--bg) 72%, transparent 73% 100%),
    conic-gradient(var(--ring-color, var(--primary)) calc(var(--p) * 1%), var(--bg-muted) 0);
  border: 1px solid var(--border);
}
.score-ring strong { font-size: 1.5rem; letter-spacing: -0.03em; }
.score-ring span { font-size: 0.7rem; color: var(--text-dim); }
.note-list { margin: 0; padding-left: 1.1rem; color: var(--text-muted); }
.note-list li { margin: 0.35rem 0; }
.section { margin-top: var(--space-10, 4.5rem); }
.section-head.centered { flex-direction: column; align-items: center; text-align: center; }
.sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.15rem; }
.proof-card .app-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.5rem;
}
.header-cta { flex-shrink: 0; margin-left: auto; }
/* .card-grid primary rules define equal-height columns — do not override here */
.timeline-store-split { display: inline-flex; gap: 0.35rem; }
.desc {
  white-space: pre-wrap;
  color: var(--text-muted);
  font-size: 0.92rem;
  max-height: 280px;
  overflow: auto;
  line-height: 1.55;
}
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.badge-launch { color: var(--ok); border-color: #bbf7d0; background: #f0fdf4; }
.badge-update { color: var(--warn); border-color: #fde68a; background: #fffbeb; }
.badge-installs, .badge-installs { color: var(--text); border-color: var(--border); background: var(--bg); }
.app-row-actions { position: absolute; top: 0.65rem; right: 0.75rem; z-index: 2; }
.app-meta h3 { margin: 0 0 0.25rem; font-size: 0.95rem; font-weight: 600; letter-spacing: -0.015em; }
.app-meta .sub, .app-side { font-size: 0.8rem; color: var(--text-dim); }
.app-side { text-align: right; display: grid; gap: 0.2rem; justify-items: end; }
.filters { /* sticky already defined — ensure top offset for pill nav */ top: 5.25rem; }
.site-header.nav-open .nav { display: flex; }
@media (max-width: 820px) {
  .site-header .nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem;
    box-shadow: var(--shadow-lg, 0 12px 40px rgba(0,0,0,0.08));
    z-index: 60;
  }
  .site-header.nav-open .nav { display: flex; }
  .site-header .header-inner { position: relative; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
}

.app-list { display: grid; gap: 0.65rem; }
.app-list .app-row { /* keep list density for gonogo competitors */ }
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cta-row { /* already defined — ensure left align variant */ }
.page-header { margin-bottom: 0.85rem; padding-top: 0.5rem; }
.badge-game { color: #7c3aed; border-color: #ddd6fe; background: #f5f3ff; }
.badge-installs { color: var(--text); border-color: var(--border); background: var(--bg); }
.store-open-btn { margin-top: 0.15rem; }
.header-cta { flex-shrink: 0; margin-left: auto; }

/* ── Go / No-Go polish ── */
.gonogo-hero-card {
  padding: 1.5rem 1.5rem 1.35rem;
  background: var(--bg);
}
.gonogo-hero-copy { min-width: 0; }
.gonogo-verdict-row { margin-bottom: 0.55rem; }
.gonogo-verdict-row .verdict {
  font-size: 1.05rem;
  padding: 0.4rem 1.05rem;
}
.gonogo-rationale {
  margin: 0 0 0.55rem;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  line-height: 1.5;
}
.gonogo-meta-line { font-size: 0.88rem; }
.score-ring-inner {
  text-align: center;
  line-height: 1.15;
}
.score-ring-inner strong {
  display: block;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}
.score-ring-inner span {
  display: block;
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 0.1rem;
}
.breakdown-chips .meta-item {
  border-radius: var(--radius-pill);
  padding: 0.7rem 1rem;
  text-align: center;
}
.breakdown-chips .meta-item .label { letter-spacing: 0.06em; }
.breakdown-chips .meta-item .value {
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.gonogo-notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}
.gonogo-notes {
  background: var(--bg-card);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem;
}
.gonogo-notes-data { border-color: #e5e5e5; }
.gonogo-notes-opportunity {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.gonogo-panel-title {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.gonogo-next-steps {
  margin-top: 1rem;
  padding: 0.95rem 1.1rem;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.gonogo-next-steps .gonogo-panel-title { color: var(--text); }
.next-steps-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text);
  font-size: 0.92rem;
}
.next-steps-list li { margin: 0.4rem 0; line-height: 1.45; }
.gonogo-live {
  margin-top: 1.25rem;
  border-color: #bfdbfe;
  background: #eff6ff;
}
.gonogo-empty {
  margin-top: 1.5rem;
  text-align: left;
  padding: 1.75rem 1.5rem;
}
.gonogo-empty-title {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}
.niche-chips { margin: 0; gap: 0.5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 550;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.chip:hover {
  background: var(--bg-muted);
  border-color: var(--border-strong);
  color: var(--text);
}
.niche-chip:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}


/* ── On-demand fetch waiting panel (Mobbin-style, calm) ── */
.fetch-wait {
  text-align: center;
  padding: 2.25rem 1.5rem;
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 100%);
}
.fetch-wait-title {
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.fetch-wait-msg {
  margin: 0 auto 0.75rem;
  max-width: 28rem;
  line-height: 1.5;
}
.fetch-wait-status {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  min-height: 1.25em;
}
.fetch-wait .btn { margin-top: 0.25rem; }

/* ── Pricing ── */
.pricing-hero {
  text-align: center;
  padding: var(--space-8) 0 var(--space-5);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  margin-bottom: 2rem;
}
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 22rem; margin-left: auto; margin-right: auto; }
}
.plan-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.plan-card-featured {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 40%);
}
.plan-badge {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.plan-name {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.plan-blurb {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  min-height: 2.7em;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}
.plan-amount {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan-period {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.plan-features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  flex: 1;
}
.plan-features li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.plan-features li:first-child { border-top: none; }
.plan-check {
  color: var(--ok);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.plan-cta { width: 100%; }
.pricing-disclaimer {
  font-size: var(--text-caption);
  line-height: 1.55;
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}
.pricing-disclaimer a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Waitlist ── */
.waitlist-wrap {
  max-width: 28rem;
  margin: 0 auto;
  padding: var(--space-8) 0 var(--space-6);
}
.waitlist-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: var(--shadow-sm);
}
.waitlist-form {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}
.waitlist-form .field textarea {
  border-radius: var(--radius-sm);
  min-height: 5rem;
  resize: vertical;
  padding: 0.75rem 0.9rem;
}
.waitlist-form .field-grow input {
  width: 100%;
  min-width: 0;
}
.waitlist-submit { width: 100%; margin-top: 0.25rem; }
.waitlist-plan-hint { margin: 0 0 0.75rem; font-size: 0.9rem; }
.waitlist-fineprint {
  margin: 1.25rem 0 0;
  font-size: var(--text-caption);
  line-height: 1.5;
}
.waitlist-fineprint a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  border: 1px solid var(--border);
}
.form-alert-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.form-alert-ok {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
.waitlist-success {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 100%);
}
.waitlist-success-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 700;
}

/* ── Watchlist ── */
.container.narrow { max-width: 40rem; }
.watch-form {
  display: grid;
  gap: 0.85rem;
  padding: 1.25rem 1.35rem 1.5rem;
}
.watch-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: end;
}
.watch-help { margin-top: 2.5rem; }
.watch-help-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
  line-height: 1.45;
}
.watch-help-list code {
  font-family: var(--mono);
  font-size: 0.82em;
  background: var(--bg-muted);
  padding: 0.08rem 0.3rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}

/* ── IndieTower Phase 1+2 polish ── */
.badge-with-icon { gap: 0.3rem; }
.badge-icon { flex-shrink: 0; opacity: 0.95; }
.badge-app { color: #0369a1; border-color: #bae6fd; background: #f0f9ff; }
.country-badge { font-variant-numeric: normal; }
.country-chip { font-family: inherit; font-weight: 500; }

.developer-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.developer-link:hover { border-bottom-color: var(--text); }

.panel-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.panel-head-row h2 { margin: 0; }

.h-scroll-cards {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.75rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.h-card {
  flex: 0 0 auto;
  width: 148px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 14px);
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.h-card:hover {
  border-color: #c4c4c4;
  box-shadow: var(--shadow-md, 0 4px 16px rgba(0,0,0,0.06));
}
.h-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.h-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  font-size: 0.7rem;
}

.bookmark-btn.is-saved {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

.header-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}
.header-user {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  padding: 0.2rem 0.55rem 0.2rem 0.25rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
}
.header-user:hover { background: rgba(0,0,0,0.04); }
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #0a0a0a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.header-user-name {
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .header-user-name { display: none; }
  .header-auth .nav-link { display: none; }
}

.auth-card .auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--text-muted);
  font-size: 0.75rem;
}
.auth-card .auth-divider::before,
.auth-card .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}
.auth-google-note { font-size: 0.8rem; margin: 0.5rem 0 0; }
.footer-store-badges { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.publisher-hero .chips { margin-top: 0.65rem; }
