/* Design v4 — Public marketing & content pages (dark SaaS, not editorial paper) */

body.landing-page,
body.public-page,
body.leaderboard-page,
body.memory-directory-page,
body.recap-page {
  color-scheme: dark;
  background: var(--bg);
  color: var(--text);
}

body.landing-page a,
body.public-page a {
  color: var(--accent);
}

body.landing-page .site-header,
body.public-page .site-header,
body.leaderboard-page .site-header {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

body.landing-page .brand,
body.public-page .brand {
  font-family: var(--font-display);
  font-weight: 800;
}

body.landing-page .brand-mark,
body.public-page .brand-mark {
  border-radius: 10px;
  border: none;
  box-shadow: 0 0 0 1px var(--border), 0 4px 14px rgba(34, 211, 238, 0.22);
}

body.landing-page .nav-link.active,
body.landing-page .nav-link:hover {
  color: var(--accent);
}

/* Hero */
.landing-hero-v4 {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(34, 211, 238, 0.14), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.landing-hero-v4-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .landing-hero-v4-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
  }
}

.landing-kicker,
.landing-eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.landing-hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: var(--line-height-tight);
  margin: 0 0 1rem;
}

.landing-headline-accent {
  color: var(--accent);
  background: none;
  -webkit-text-fill-color: unset;
}

.landing-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: none;
}

.landing-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

.landing-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
  line-height: 1.65;
}

.landing-stats-bar {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.landing-stat-block strong {
  color: var(--text);
  font-family: var(--font-display);
}

.landing-stat-divider {
  background: var(--border);
}

.landing-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.landing-section-muted {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.landing-section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.landing-section-lead {
  color: var(--muted);
}

.feature-grid {
  gap: 1rem;
}

.feature-grid-spotlight {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card-spotlight {
  border-color: rgba(168, 85, 247, 0.28);
  background: linear-gradient(180deg, rgba(88, 28, 135, 0.12), var(--panel));
}

@media (max-width: 900px) {
  .feature-grid-spotlight {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.feature-card:hover {
  border-color: rgba(34, 211, 238, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
}

.step-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.step-num {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.landing-cta-band {
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-elevated) 100%);
  border-top: 1px solid var(--border);
}

.landing-cta-band h2 {
  font-family: var(--font-display);
}

/* Product preview mock */
.landing-preview-window {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--panel);
}

.landing-preview-window .preview-titlebar,
.landing-preview-titlebar {
  display: none;
}

.landing-preview-body {
  display: grid;
  grid-template-columns: 168px 1fr;
  min-height: 320px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.landing-preview-body .preview-sidebar {
  border-right: 1px solid var(--border);
  background: transparent;
  padding: 0.75rem 0.5rem;
}

.landing-preview-body .preview-nav-group-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  padding: 0.5rem 0.5rem 0.25rem;
}

.landing-preview-body .preview-nav-item {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.5rem;
}

.landing-preview-body .preview-nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.landing-preview-content {
  padding: 1rem 1.1rem;
  background: var(--bg);
}

.landing-preview-panel-title {
  font-size: 1rem;
  font-weight: 700;
}

.landing-preview-section {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius-sm);
}

.landing-preview-section.is-selected {
  border-color: rgba(34, 211, 238, 0.35);
}

.landing-preview-accent {
  background: var(--accent);
}

.landing-preview-url {
  color: var(--muted);
  font-size: 0.75rem;
}

.btn-outline-light {
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-outline-light:hover {
  border-color: rgba(34, 211, 238, 0.4);
  background: var(--accent-muted);
  color: var(--accent);
}

/* Public leaderboard — sortable column headers */
.lb-th-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  border-radius: 6px;
}

.lb-th-sort:hover {
  color: var(--accent);
}

.lb-th-sort:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lb-sort-indicator {
  font-size: 0.65rem;
  line-height: 1;
  color: var(--accent);
}
