/* ── Shared base for marketing pages (flow, company, inspiration) ── */

:root {
  --bg: #fffcfa;
  --bg-accent: #fffcfa;
  --ink: rgba(27, 27, 27, 0.72);
  --ink-strong: rgba(27, 27, 27, 0.82);
  --muted: rgba(27, 27, 27, 0.55);
  --accent: #c3522b;
  --card: rgba(255, 255, 255, 0.4);
  --border: rgba(27, 27, 27, 0.08);
  --shadow: rgba(27, 27, 27, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

#v3-ambient-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

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

.header {
  padding: 48px 20px 24px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.top-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(0, 0, 0, 0.5);
}

.top-nav a {
  color: rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.brand {
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Hero */
.hero-title {
  margin: 14px 0 12px;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
}

.hero-subtitle {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
  max-width: 800px;
}

.hero-subtitle a {
  color: var(--accent);
  font-weight: 800;
}

.hero-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #fff;
}

.hero-meta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.hero-meta span {
  background: rgba(27, 27, 27, 0.06);
  padding: 6px 10px;
  border-radius: 999px;
}

/* Category Tokens */
.category-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.category-token {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  text-decoration: none;
  white-space: nowrap;
}

.category-token:hover {
  background: rgba(27, 27, 27, 0.06);
  border-color: rgba(27, 27, 27, 0.15);
  transform: translateY(-1px);
}

.category-token.active {
  background: #1b1b1b;
  color: #fff;
  border-color: #1b1b1b;
}

.category-token-count {
  font-size: 11px;
  font-weight: 800;
  background: rgba(27, 27, 27, 0.08);
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--muted);
}

.category-token.active .category-token-count {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

/* Sections */
.section {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px 36px;
}

.section-title {
  font-size: 26px;
  margin: 0 0 10px;
  color: var(--ink-strong);
}

.section-text {
  margin: 0 0 12px;
  color: var(--muted);
  max-width: 900px;
}

/* Search */
.search-bar {
  margin: 16px 0 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 220px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 15px;
  background: #fff;
  font-family: inherit;
}

.search-count {
  font-size: 13px;
  color: var(--muted);
  padding: 12px 0;
}

/* Meta list */
.meta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: rgba(27, 27, 27, 0.6);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(27, 27, 27, 0.06);
  border-radius: 16px;
  padding: 14px 18px;
}

.meta-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  column-gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(27, 27, 27, 0.05);
  justify-items: start;
}

.meta-row:last-child {
  border-bottom: none;
}

.meta-row span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  color: rgba(27, 27, 27, 0.45);
  background: rgba(27, 27, 27, 0.08);
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
  justify-self: start;
}

.meta-row strong {
  text-align: left;
  font-weight: 600;
  color: rgba(27, 27, 27, 0.7);
  word-break: break-word;
  justify-self: start;
}

/* Screen locked CTA (shared text + button) */
.screen-locked-text {
  font-size: 12px;
  font-weight: 700;
  color: rgba(27, 27, 27, 0.55);
  text-align: center;
  line-height: 1.4;
}

.screen-locked-btn {
  background: #1b1b1b;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Empty state */
.empty-state {
  padding: 20px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
}

/* Sticky download */
.sticky-download {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1b1b1b;
  color: #fff;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sticky-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.sticky-download svg {
  flex-shrink: 0;
}

/* CTA */
.cta {
  margin: 50px auto 70px;
  max-width: 900px;
  padding: 28px 28px 32px;
  border-radius: 20px;
  background: #1b1b1b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cta h3 {
  margin: 0;
  font-size: 24px;
}

.cta p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.cta a {
  background: #fff;
  color: #1b1b1b;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
}

/* Footer */
.footer {
  padding: 30px 20px 50px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 720px) {
  .hero-title {
    font-size: 32px;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .category-tokens {
    gap: 6px;
  }

  .category-token {
    padding: 6px 10px;
    font-size: 12px;
  }
}
