/* ═══════════════════════════════════════════════════════
   Design Tokens
═══════════════════════════════════════════════════════ */
:root {
  /* Neutrals */
  --black:  #0A0A0A;
  --g900:   #18181B;
  --g700:   #3F3F46;
  --g600:   #52525B;
  --g500:   #71717A;
  --g400:   #A1A1AA;
  --g300:   #D4D4D8;
  --g200:   #E4E4E7;
  --g100:   #F4F4F5;
  --g50:    #FAFAFA;
  --white:  #FFFFFF;

  /* Structural */
  --line:   #EAEAEC;
  --paper:  #F9F9FB;

  /* Section backgrounds */
  --slate:  #F5F7FA;
  --cream:  #FAF4E8;
  --amber:  #FBF1E0;

  /* One accent — Telegram blue, used sparingly */
  --ton:    #0098EA;

  /* Layout */
  --max-w:      1180px;
  --pad-x:      2rem;
  --header-h:   62px;

  /* Radius */
  --r-btn:     8px;
  --r-card:    12px;
  --r-card-lg: 14px;
  --r-lg:      16px;
  --r-pill:    999px;
}

/* ═══════════════════════════════════════════════════════
   Reset
═══════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Kill the blue/grey tap-highlight box on mobile when tapping links/buttons */
* {
  -webkit-tap-highlight-color: transparent;
}
a, button, [role="button"] {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--g600);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02','cv03','cv04','cv11','ss01';
  font-optical-sizing: auto;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--black);
  font-weight: 600;
  line-height: 1.06;
  font-feature-settings: 'cv02','cv03','cv04','cv11','ss01';
}

img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, button, textarea, select { font-family: inherit; }

/* ═══════════════════════════════════════════════════════
   Container
═══════════════════════════════════════════════════════ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ═══════════════════════════════════════════════════════
   Kicker / Eyebrow label
═══════════════════════════════════════════════════════ */
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--g500);
  margin-bottom: 14px;
}

.kicker-line {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--g400);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   Header
═══════════════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-tg {
  font-size: 22px;
  color: var(--ton);
  flex-shrink: 0;
  line-height: 1;
}

.logo-word {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.03em;
}

.logo-word span {
  color: var(--g400);
  font-weight: 400;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 2px;
}

.nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--g500);
  padding: 0 12px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: color 0.12s;
  letter-spacing: -0.005em;
}

.nav a:hover {
  color: var(--black);
}

.nav-submit {
  margin-left: 4px;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-btn) !important;
  padding: 0 14px !important;
  height: 34px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--g600) !important;
  transition: border-color 0.12s, color 0.12s !important;
}
.nav-submit:hover {
  border-color: var(--g300) !important;
  color: var(--black) !important;
}

.nav-cta {
  margin-left: 6px;
  background: var(--ton) !important;
  color: white !important;
  border-radius: var(--r-btn) !important;
  padding: 0 18px !important;
  height: 34px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  transition: opacity 0.12s !important;
}

.nav-cta:hover {
  opacity: 0.86 !important;
  color: white !important;
}

/* ═══════════════════════════════════════════════════════
   Buttons
═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--r-btn);
  padding: 11px 22px;
  cursor: pointer;
  transition: opacity 0.12s, border-color 0.12s, background 0.12s;
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-primary:hover { opacity: 0.82; }

.btn-secondary {
  background: var(--white);
  color: var(--black);
  border-color: var(--line);
}

.btn-secondary:hover { border-color: var(--g300); }

/* ═══════════════════════════════════════════════════════
   Tags / Pills
═══════════════════════════════════════════════════════ */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--g600);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px 11px;
  white-space: nowrap;
  background: var(--white);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   Section base + tinted variants
═══════════════════════════════════════════════════════ */
.section         { padding: 88px 0; }
.section-slate   { background: var(--slate); }
.section-cream   { background: var(--cream); }
.section-amber   { background: var(--amber); }

/* Section header (kicker + h2 + optional link) */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 32px;
  letter-spacing: -0.04em;
  margin-top: 6px;
}

.section-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--g500);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 4px;
  transition: color 0.12s;
  flex-shrink: 0;
}

.section-link:hover { color: var(--black); }

/* ═══════════════════════════════════════════════════════
   Hero
═══════════════════════════════════════════════════════ */
.hero {
  background: var(--white);
  padding: 100px 0 88px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 58px;
  letter-spacing: -0.05em;
  line-height: 1.04;
  color: var(--black);
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 17px;
  color: var(--g500);
  line-height: 1.58;
  margin-bottom: 40px;
  letter-spacing: -0.005em;
}

/* Hero search form */
.hero-search {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 6px 6px 6px 22px;
  gap: 12px;
  margin-bottom: 28px;
  transition: border-color 0.2s, background 0.2s;
}

.hero-search:focus-within {
  border-color: var(--ton);
  background: rgba(0, 152, 234, 0.02);
}

.hero-search:focus-within .hero-search-icon {
  color: var(--ton);
}

.hero-search-icon {
  color: var(--g400);
  font-size: 15px;
  flex-shrink: 0;
  transition: color 0.2s;
}

/* Wrapper that holds real input + fake animated placeholder */
.search-ph-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

.hero-search input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 15px;
  font-weight: 400;
  color: var(--black);
  background: transparent;
  padding: 12px 0;
  letter-spacing: -0.005em;
  position: relative;
  z-index: 1;
}

/* Fake animated placeholder */
.search-ph {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--g400);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  z-index: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.search-ph.ph-out {
  opacity: 0;
  transform: translateY(calc(-50% - 10px));
}
.search-ph.ph-in {
  opacity: 0;
  transform: translateY(calc(-50% + 10px));
}

.hero-search button {
  background: var(--ton);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 500;
  height: 42px;
  cursor: pointer;
  flex-shrink: 0;
  letter-spacing: -0.01em;
  transition: opacity 0.12s;
}

.hero-search button:hover { opacity: 0.86; }

/* Category pills under search */
.hero-cats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.hero-cats-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--g400);
  letter-spacing: 0.01em;
}

.hero-cats a {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--g600);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  transition: border-color 0.12s, color 0.12s;
}

.hero-cats a:hover {
  border-color: var(--g300);
  color: var(--black);
}

/* Stats line */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--g400);
}

.hero-stats-item {
  padding: 0 20px;
  letter-spacing: -0.005em;
}

.hero-stats-item b {
  font-weight: 600;
  color: var(--g600);
}

.hero-stats-item:not(:first-child) {
  border-left: 1px solid var(--line);
}

/* value-strip replaced by stats-dark */



/* ═══════════════════════════════════════════════════════
   App Cards
═══════════════════════════════════════════════════════ */
.apps-grid,
.apps-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.app-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.12s, border-color 0.12s;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.app-card:hover {
  background: var(--paper);
  border-color: var(--g300);
}

/* New card head: monogram + info + external icon */
.app-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-card-info {
  flex: 1;
  min-width: 0;
}

.app-card-ext {
  font-size: 10px;
  color: var(--g300);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.12s, color 0.12s;
}
.app-card:hover .app-card-ext {
  opacity: 1;
  color: var(--g400);
}

/* Keep .app-header for backwards compat on homepage spotlight */
.app-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-monogram {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -0.01em;
  font-feature-settings: 'cv02','cv03','cv04','cv11','ss01';
}

/* Monogram — single neutral tone */
[data-cat] { background: var(--slate); color: var(--g500); }

.app-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 3px;
}

/* Verification badges — text pills */
.vbadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  flex-shrink: 0;
}

.vbadge i { font-size: 10px; }

.vbadge-tg {
  background: rgba(0,152,234,0.1);
  color: #0085CC;
}

.vbadge-us {
  background: var(--g100);
  color: var(--g600);
  border: 1px solid var(--line);
}

.app-desc {
  font-size: 13px;
  color: var(--g500);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-footer {
  margin-top: auto;
  padding-top: 4px;
}

.app-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ton);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.12s;
  text-decoration: none;
}

.app-link:hover { opacity: 0.72; }

/* ═══════════════════════════════════════════════════════
   Category Rows  (bordered container with hairline dividers)
═══════════════════════════════════════════════════════ */
.cats-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cats-container {
  border: 1px solid var(--line);
  border-radius: var(--r-card-lg);
  overflow: hidden;
  background: var(--white);
}

.cat-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}

.cat-row:not(:first-child) {
  border-top: 1px solid var(--line);
}

.cat-row:hover { background: var(--paper); }

.cat-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--g100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--g600);
}

.cat-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.015em;
  flex: 1;
}

.cat-count {
  font-size: 12.5px;
  color: var(--g400);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  margin-right: 8px;
}

.cat-arrow {
  color: var(--g300);
  font-size: 10px;
}

/* ═══════════════════════════════════════════════════════
   Editorial list  (blog posts on homepage + blog listing)
═══════════════════════════════════════════════════════ */
.editorial-list {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}

.editorial-item {
  display: grid;
  grid-template-columns: 96px auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 28px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}

.editorial-item:not(:first-child) {
  border-top: 1px solid var(--line);
}

.editorial-item:hover { background: var(--paper); }

.editorial-item:hover .editorial-title { color: var(--ton); }

.editorial-date {
  font-size: 12px;
  color: var(--g400);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.editorial-body { min-width: 0; }

.editorial-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.02em;
  line-height: 1.3;
  transition: color 0.12s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editorial-excerpt {
  font-size: 13px;
  color: var(--g500);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editorial-time {
  font-size: 12px;
  color: var(--g400);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ═══════════════════════════════════════════════════════
   Newsletter
═══════════════════════════════════════════════════════ */
.newsletter {
  background: var(--amber);
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.newsletter-inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.newsletter h2 {
  font-size: 32px;
  letter-spacing: -0.04em;
  color: var(--black);
  margin-bottom: 12px;
  line-height: 1.1;
}

.newsletter p {
  font-size: 15px;
  color: var(--g600);
  margin-bottom: 28px;
  line-height: 1.55;
}

.newsletter-form {
  display: flex;
  border: 1px solid var(--g300);
  border-radius: var(--r-btn);
  overflow: hidden;
  background: var(--white);
}

.newsletter-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--black);
  background: transparent;
  min-width: 0;
}

.newsletter-form input::placeholder { color: var(--g400); }

.newsletter-form button {
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.12s;
}

.newsletter-form button:hover { opacity: 0.82; }

.newsletter-note {
  font-size: 12px;
  color: var(--g400);
  margin-top: 14px;
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════
   Footer
═══════════════════════════════════════════════════════ */
.footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-cols {
  display: contents;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-tagline {
  font-size: 13.5px;
  color: var(--g500);
  line-height: 1.6;
  max-width: 220px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.social-link {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--g500);
  transition: border-color 0.12s, color 0.12s;
  text-decoration: none;
}

.social-link:hover {
  border-color: var(--g300);
  color: var(--black);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--g400);
  margin-bottom: 5px;
}

.footer-col a {
  font-size: 14px;
  color: var(--g600);
  transition: color 0.12s;
}

.footer-col a:hover { color: var(--black); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 12.5px;
  color: var(--g400);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 12.5px;
  color: var(--g400);
  transition: color 0.12s;
}

.footer-bottom-links a:hover { color: var(--g600); }

/* ═══════════════════════════════════════════════════════
   Page Intro  (shared: apps, blog)
═══════════════════════════════════════════════════════ */
.page-intro {
  padding: 64px 0 0;
  border-bottom: 1px solid var(--line);
}

.page-intro-inner {
  padding-bottom: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.page-intro h1 {
  font-size: 40px;
  letter-spacing: -0.045em;
  line-height: 1.06;
  margin-bottom: 10px;
}

.page-intro p {
  font-size: 15px;
  color: var(--g500);
}

/* ═══════════════════════════════════════════════════════
   Filter Tabs  (underline style)
═══════════════════════════════════════════════════════ */
.filter-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
  font-size: 14px;
  font-weight: 500;
  color: var(--g500);
  padding: 14px 18px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.12s, border-color 0.12s;
  white-space: nowrap;
}

.filter-tab:hover { color: var(--black); }

.filter-tab.active {
  color: var(--black);
  border-bottom-color: var(--black);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   Search Bar  (apps page standalone)
═══════════════════════════════════════════════════════ */
.search-bar {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0 20px;
  gap: 12px;
  background: white;
  transition: border-color 0.2s;
  margin-bottom: 28px;
}

.search-bar:focus-within {
  border-color: var(--ton);
}
.search-bar:focus-within .search-icon {
  color: var(--ton);
}

.search-icon {
  color: var(--g400);
  font-size: 14px;
  flex-shrink: 0;
  transition: color 0.2s;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 13px 0;
  font-size: 14.5px;
  color: var(--black);
  background: transparent;
  letter-spacing: -0.005em;
}

.search-bar input::placeholder { color: var(--g400); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}

.empty-state i {
  font-size: 28px;
  color: var(--g300);
  margin-bottom: 18px;
  display: block;
}

.empty-state h3 {
  font-size: 18px;
  color: var(--g600);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.empty-state p {
  font-size: 14px;
  color: var(--g400);
  margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════════════
   Blog: Featured post
═══════════════════════════════════════════════════════ */
.blog-featured {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r-card-lg);
  padding: 40px;
  margin-bottom: 14px;
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s;
}

.blog-featured:hover {
  background: var(--paper);
  border-color: var(--g300);
}

.blog-featured:hover .blog-featured-title { color: var(--ton); }

.blog-featured-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.blog-featured-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--g500);
}

.blog-featured-date {
  font-size: 12px;
  color: var(--g400);
  font-variant-numeric: tabular-nums;
}

.blog-featured-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--black);
  line-height: 1.15;
  margin-bottom: 14px;
  transition: color 0.12s;
}

.blog-featured-excerpt {
  font-size: 15px;
  color: var(--g500);
  line-height: 1.6;
  margin-bottom: 24px;
}

.blog-featured-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.blog-featured-read {
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--g500);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Blog: Posts list */
.posts-list {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}

.post-list-item {
  display: grid;
  grid-template-columns: 100px auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 28px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}

.post-list-item:not(:first-child) {
  border-top: 1px solid var(--line);
}

.post-list-item:hover { background: var(--paper); }

.post-list-item:hover .post-list-title { color: var(--ton); }

.post-list-date {
  font-size: 12px;
  color: var(--g400);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.post-list-body { min-width: 0; }

.post-list-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.02em;
  transition: color 0.12s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.post-list-excerpt {
  font-size: 13px;
  color: var(--g500);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-list-time {
  font-size: 12px;
  color: var(--g400);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ═══════════════════════════════════════════════════════
   Post page
═══════════════════════════════════════════════════════ */
.reading-progress {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 99;
}

.reading-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--ton);
  transition: width 0.1s linear;
}

.post-page {
  padding-bottom: 88px;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--g500);
  padding: 32px 0 0;
  transition: color 0.12s;
  text-decoration: none;
}

.post-back:hover { color: var(--black); }

.post-page-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.post-meta-sep {
  color: var(--g300);
  font-size: 11px;
}

.post-meta-date,
.post-meta-time {
  font-size: 13px;
  color: var(--g400);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-page article > h1 {
  font-size: 44px;
  letter-spacing: -0.05em;
  line-height: 1.06;
  color: var(--black);
  margin-bottom: 22px;
  max-width: 740px;
}

.post-lede {
  font-size: 17px;
  color: var(--g600);
  line-height: 1.62;
  letter-spacing: -0.005em;
  max-width: 660px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

/* Two-column layout */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 256px;
  gap: 64px;
  align-items: start;
}

/* Article body — Source Serif 4 */
.post-content {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.72;
  color: var(--g700);
  font-optical-sizing: auto;
  font-feature-settings: normal;
}

.post-content h2 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-top: 52px;
  margin-bottom: 18px;
  line-height: 1.2;
  font-feature-settings: 'cv02','cv03','cv04','cv11','ss01';
}

.post-content h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--black);
  margin-top: 40px;
  margin-bottom: 14px;
  line-height: 1.3;
  font-feature-settings: 'cv02','cv03','cv04','cv11','ss01';
}

.post-content p { margin-bottom: 22px; }
.post-content p:last-child { margin-bottom: 0; }

.post-content a {
  color: var(--ton);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content ul,
.post-content ol {
  margin-bottom: 22px;
  padding-left: 24px;
}

.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 8px; }

.post-content strong {
  font-weight: 600;
  color: var(--g900);
}

.post-content code {
  font-family: 'SF Mono','Fira Code','Fira Mono',monospace;
  font-size: 0.84em;
  background: var(--g100);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--g700);
}

.post-content pre {
  background: var(--g900);
  border-radius: 8px;
  padding: 24px;
  overflow-x: auto;
  margin-bottom: 28px;
}

.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--g200);
  font-size: 14px;
  border-radius: 0;
}

.post-content blockquote {
  border-left: 2px solid var(--ton);
  padding-left: 22px;
  margin-bottom: 22px;
  color: var(--g600);
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 44px 0;
}

/* Sidebar TOC */
.post-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.toc-widget {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px;
}

.toc-widget-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--g400);
  margin-bottom: 14px;
  font-feature-settings: 'cv02','cv03','cv04','cv11','ss01';
}

.toc-widget .toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-widget .toc li { margin-bottom: 0; }

.toc-widget .toc a {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--g500);
  padding: 6px 0 6px 12px;
  border-left: 2px solid var(--line);
  transition: color 0.12s, border-color 0.12s;
  line-height: 1.4;
  text-decoration: none;
}

.toc-widget .toc a:hover {
  color: var(--black);
  border-left-color: var(--g300);
}

.toc-widget .toc a.toc-active {
  color: var(--black);
  font-weight: 500;
  border-left-color: var(--ton);
}

/* Share row */
.post-share {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.post-share-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--g400);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
  font-feature-settings: 'cv02','cv03','cv04','cv11','ss01';
}

.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--g600);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
  background: none;
  text-decoration: none;
  font-family: inherit;
}

.share-btn:hover {
  border-color: var(--g300);
  color: var(--black);
}

/* Related posts */
.related-posts {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.related-posts h3 {
  font-size: 18px;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.related-card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s;
}

.related-card:hover {
  background: var(--paper);
  border-color: var(--g300);
}

.related-card:hover .related-title { color: var(--ton); }

.related-date {
  font-size: 12px;
  color: var(--g400);
  font-variant-numeric: tabular-nums;
}

.related-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.02em;
  line-height: 1.3;
  transition: color 0.12s;
}

.related-excerpt {
  font-size: 13px;
  color: var(--g500);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════
   404 page
═══════════════════════════════════════════════════════ */
.not-found {
  text-align: center;
  padding: 120px 0;
}

.not-found-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--g400);
  margin-bottom: 22px;
}

.not-found h2 {
  font-size: 40px;
  letter-spacing: -0.045em;
  color: var(--black);
  margin-bottom: 12px;
}

.not-found p {
  font-size: 15px;
  color: var(--g500);
  margin-bottom: 36px;
}

.not-found-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.not-found-arrow {
  color: var(--g400);
  margin: 0 auto 28px;
  display: block;
  width: 80px;
}

/* ═══════════════════════════════════════════════════════
   Toast
═══════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  background: var(--black);
  color: var(--white);
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.3s;
  font-feature-settings: 'cv02','cv03','cv04','cv11','ss01';
}

.toast button {
  background: none;
  border: none;
  color: var(--g500);
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.toast-check { color: #4ade80; }

/* ═══════════════════════════════════════════════════════
   Responsive
═══════════════════════════════════════════════════════ */
@media (max-width: 980px) {
  :root { --pad-x: 1.25rem; }

  .nav a:not(.nav-cta):not(.nav-submit) { display: none; }

  .hero               { padding: 64px 0 56px; }
  .hero h1            { font-size: 40px; }
  .hero-sub           { font-size: 15px; }
  .hero-stats-item    { padding: 0 12px; }

  .value-container {
    grid-template-columns: 1fr;
  }
  .value-item:not(:first-child) {
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .value-item { padding: 28px 24px; }

  .apps-grid,
  .apps-full-grid     { grid-template-columns: 1fr 1fr; }

  .cats-layout        { grid-template-columns: 1fr; }

  .editorial-item     { grid-template-columns: auto 1fr auto; }
  .editorial-date     { display: none; }

  .post-layout        { grid-template-columns: 1fr; }
  .post-sidebar       { display: none; }
  .post-page article > h1 { font-size: 32px; }

  .footer-inner       { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols        { display: flex; flex-direction: column; gap: 40px; }
  .footer-bottom      { flex-direction: column; gap: 12px; text-align: center; }

  .related-grid       { grid-template-columns: 1fr; }

  .post-list-item     { grid-template-columns: auto 1fr auto; }
  .post-list-date     { display: none; }

  .blog-featured      { padding: 28px; }
  .blog-featured-title { font-size: 22px; }

  .section            { padding: 64px 0; }
  .page-intro         { padding-top: 48px; }
}

@media (max-width: 600px) {
  .hero h1            { font-size: 32px; }
  .hero-stats         { flex-direction: column; gap: 10px; }
  .hero-stats-item    { border-left: none !important; padding: 0; }

  .apps-grid,
  .apps-full-grid     { grid-template-columns: 1fr; }

  .not-found-actions  { flex-direction: column; align-items: center; }
  .section-header     { flex-direction: column; align-items: flex-start; gap: 12px; }

  .post-list-item     { grid-template-columns: 1fr; gap: 8px; }
  .post-list-time     { display: none; }

  .editorial-item     { grid-template-columns: 1fr; gap: 6px; padding: 16px 20px; }
  .editorial-time     { display: none; }

  .filter-tab         { padding: 12px 14px; font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════
   Hero: split-column layout
═══════════════════════════════════════════════════════ */
.hero {
  padding: 96px 0 80px;
  background: linear-gradient(168deg, #DFF1FC 0%, #EEF8FE 18%, #F7FCFF 38%, white 62%);
  border-bottom: none;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: flex-start;
}

/* Override the centered defaults for left-aligned hero */
.hero-left { text-align: left; }
.hero-left h1 { font-size: 72px; line-height: 1.03; margin-bottom: 22px; letter-spacing: -0.045em; font-weight: 600; }
.hero-left .hero-sub { font-size: 16px; line-height: 1.65; margin-bottom: 36px; color: var(--g500); max-width: 380px; }
.hero-left .hero-search { margin-bottom: 20px; }
.hero-left .hero-cats { justify-content: flex-start; }
.hero-left .hero-stats { justify-content: flex-start; }
.hero-left .hero-stats-item:first-child { padding-left: 0; }

/* Right-side app preview panel */
.hero-apps-panel {
  border: 1px solid var(--line);
  border-radius: var(--r-card-lg);
  overflow: hidden;
  background: white;
  /* featured card now has no header above it */
}
.hero-apps-panel > a.hero-app-main:first-child {
  border-top: none;
}

.hero-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--slate);
}

.hero-panel-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--g500);
}

.hero-panel-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--g400);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.12s;
  text-decoration: none;
}

.hero-panel-link:hover { color: var(--black); }

.hero-app-main {
  display: block;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
  transition: background 0.12s;
}

.hero-app-main:hover { background: var(--paper); }

.hero-app-main-desc {
  font-size: 13px;
  color: var(--g500);
  line-height: 1.5;
  margin: 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-app-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}

.hero-app-row:not(:last-child) { border-bottom: 1px solid var(--line); }
.hero-app-row:hover { background: var(--paper); }

.hero-app-row-mono {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-app-row-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.hero-app-row-cat {
  font-size: 12px;
  color: var(--g400);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════
   Featured apps: spotlight layout (1 big + 2 small)
═══════════════════════════════════════════════════════ */
.apps-spotlight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.spotlight-card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.12s, background 0.12s;
  background: white;
}

.spotlight-card:hover {
  border-color: var(--g300);
  background: var(--paper);
}

.spotlight-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.spotlight-mono {
  width: 52px !important;
  height: 52px !important;
  border-radius: 13px !important;
  font-size: 17px !important;
}

.spotlight-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--g300);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 1;
  padding-top: 2px;
}

.spotlight-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 7px;
}

.spotlight-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--g500);
  margin: 12px 0 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  flex: 1;
}

.spotlight-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ton);
  padding-top: 22px;
  margin-top: auto;
}

/* ═══════════════════════════════════════════════════════
   Category tiles: 4-col visual grid
═══════════════════════════════════════════════════════ */
.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 0 14px;
  height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  text-decoration: none;
  color: inherit;
  background: white;
  transition: background 0.12s, border-color 0.12s;
}

.cat-pill:hover {
  background: var(--ton);
  border-color: var(--ton);
}

.cat-pill-icon {
  width: 28px;
  height: 28px;
  border-radius: 100px;
  background: rgba(0,152,234,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--ton);
  flex-shrink: 0;
  transition: background 0.12s, color 0.12s;
}

.cat-pill:hover .cat-pill-icon {
  background: rgba(255,255,255,0.2);
  color: white;
}

.cat-pill-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.02em;
  transition: color 0.12s;
}

.cat-pill:hover .cat-pill-name { color: white; }

.cat-pill-count {
  font-size: 12px;
  color: var(--g400);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  transition: color 0.12s;
}

.cat-pill:hover .cat-pill-count { color: rgba(255,255,255,0.7); }

/* Stacked logo previews inside the pill */
.cat-pill-previews {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
}
.cat-pill-logo,
.cat-pill-mono {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  border: 2px solid white;
  margin-left: -8px;
  flex-shrink: 0;
  object-fit: cover;
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px !important;
  font-weight: 600;
  color: white;
  transition: border-color 0.12s;
}
.cat-pill-logo:first-child,
.cat-pill-mono:first-child { margin-left: 0; }
.cat-pill:hover .cat-pill-logo,
.cat-pill:hover .cat-pill-mono { border-color: var(--ton); }
@media (max-width: 600px) {
  .cat-pill-previews { display: none; }
}

/* ═══════════════════════════════════════════════════════
   Blog: magazine layout (featured left + list right)
═══════════════════════════════════════════════════════ */
.blog-magazine {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 14px;
  align-items: start;
}

.blog-mag-feature {
  border: 1px solid var(--line);
  border-radius: var(--r-card-lg);
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-height: 300px;
  transition: background 0.12s, border-color 0.12s;
}

.blog-mag-feature:hover {
  background: var(--paper);
  border-color: var(--g300);
}

.blog-mag-feature:hover .blog-mag-feature-title { color: var(--ton); }

.blog-mag-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.blog-mag-feature-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--black);
  line-height: 1.15;
  margin-bottom: 14px;
  transition: color 0.12s;
}

.blog-mag-feature-excerpt {
  font-size: 15px;
  color: var(--g500);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 24px;
}

.blog-mag-feature-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.blog-mag-read {
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--g500);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Right column: compact list */
.blog-mag-list {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-mag-item {
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  transition: background 0.12s;
}

.blog-mag-item:not(:first-child) { border-top: 1px solid var(--line); }
.blog-mag-item:hover { background: var(--paper); }
.blog-mag-item:hover .blog-mag-item-title { color: var(--ton); }

.blog-mag-item-date {
  font-size: 11.5px;
  color: var(--g400);
  font-variant-numeric: tabular-nums;
}

.blog-mag-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.015em;
  line-height: 1.35;
  transition: color 0.12s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-mag-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════
   Apps page: sidebar layout
═══════════════════════════════════════════════════════ */
.apps-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
  padding-top: 40px;
}

.apps-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--g500);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.12s, color 0.12s;
}

.sidebar-link:hover { background: var(--paper); color: var(--black); }

.sidebar-link.active {
  background: rgba(0, 152, 234, 0.07);
  color: var(--ton);
  font-weight: 600;
}

.sidebar-link.active .sidebar-count { color: var(--ton); opacity: 0.65; }

.sidebar-count {
  font-size: 12px;
  color: var(--g400);
  font-variant-numeric: tabular-nums;
}

.apps-sidebar-link.active .sidebar-count { color: var(--g600); }

.sidebar-legend {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-legend-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--g400);
  margin-bottom: 2px;
}

.sidebar-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--g500);
}

.app-card-tags {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.apps-main { min-width: 0; }

/* ═══════════════════════════════════════════════════════
   Responsive additions
═══════════════════════════════════════════════════════ */
@media (max-width: 980px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-right { display: none; }
  .hero-left h1 { font-size: 40px; }

  .apps-spotlight {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .spotlight-card { padding: 22px; }

  .blog-magazine { grid-template-columns: 1fr; }
  .blog-mag-list { display: none; }

  .apps-layout { grid-template-columns: 1fr; }
  .apps-sidebar { display: none; }
}

@media (max-width: 640px) {
  .apps-spotlight {
    grid-template-columns: 1fr;
  }
  .spotlight-card { padding: 20px; }
  .spotlight-name { font-size: 17px; }
  .spotlight-desc { font-size: 13.5px; }
}

@media (max-width: 600px) {
  .cat-pills { gap: 8px; }
  .cat-pill { padding: 9px 14px 9px 11px; }
}

/* ═══════════════════════════════════════════════════════
   Hero: animated dot-grid background + entrance animations
═══════════════════════════════════════════════════════ */

/* Dot grid lives on the hero section itself */
.hero {
  position: relative;
  overflow: hidden;
}

/* Subtle animated dot grid via ::before */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 152, 234, 0.35) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0;
  animation: hero-grid-in 1.2s ease-out 0.1s forwards,
             hero-grid-drift 22s linear 1.3s infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes hero-grid-in {
  from { opacity: 0; }
  to   { opacity: 0.85; }
}

@keyframes hero-grid-drift {
  0%   { background-position: 0 0; }
  100% { background-position: 28px 28px; }
}

/* Ensure hero content sits above the grid */
.hero .container { position: relative; z-index: 1; }

/* Staggered entrance for hero left column */
.hero-left h1,
.hero-left .hero-sub,
.hero-left .hero-search,
.hero-left .hero-cats,
.hero-left .hero-stats {
  opacity: 0;
  animation: hero-fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-left h1           { animation-delay: 0.12s; }
.hero-left .hero-sub    { animation-delay: 0.24s; }
.hero-left .hero-search { animation-delay: 0.36s; }
.hero-left .hero-cats   { animation-delay: 0.46s; }
.hero-left .hero-stats  { animation-delay: 0.54s; }

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero right panel: fade in once, stays fixed */
.hero-right {
  opacity: 0;
  animation: hero-panel-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

@keyframes hero-panel-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════════════════════
   Reduce motion: respect user preference
═══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero-left .kicker,
  .hero-left h1,
  .hero-left .hero-sub,
  .hero-left .hero-search,
  .hero-left .hero-cats,
  .hero-left .hero-stats,
  .hero-right {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════════
   Hero marquee — two-row scrolling app strip
═══════════════════════════════════════════════════════ */
.hero-marquee {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  /* Fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-row {
  overflow: hidden;
}

.marquee-inner {
  display: flex;
  gap: 8px;
  width: max-content;
}

.marquee-go-left  { animation: marquee-left  85s linear infinite; }
.marquee-go-right { animation: marquee-right 85s linear infinite; }

@keyframes marquee-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-right {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 9px;
  border: 1px solid rgba(0, 152, 234, 0.18);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 500;
  color: var(--g600);
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color .12s, color .12s;
}

.marquee-item:hover {
  border-color: var(--g300);
  color: var(--black);
}

.marquee-mono {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Pause on hover */
.hero-marquee:hover .marquee-inner {
  animation-play-state: paused;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-go-left,
  .marquee-go-right { animation: none; }
}

/* Hide on very small screens */
@media (max-width: 480px) {
  .hero-marquee { display: none; }
}

/* ═══════════════════════════════════════════════════════
   Hero panel — 3×3 app icon grid + browse footer
═══════════════════════════════════════════════════════ */
.hero-app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.hero-app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: var(--r-btn);
  text-decoration: none;
  transition: background .12s;
}
.hero-app-icon:hover { background: var(--paper); }

.hero-app-icon-mono {
  width: 44px !important;
  height: 44px !important;
  border-radius: 11px !important;
  font-size: 14px !important;
  font-weight: 600;
  flex-shrink: 0;
}

.hero-app-icon-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--g500);
  text-align: center;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}

.hero-panel-browse {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--g500);
  text-decoration: none;
  transition: color .12s, background .12s;
  background: var(--slate);
}
.hero-panel-browse:hover { color: var(--black); background: var(--paper); }

/* ═══════════════════════════════════════════════════════
   Hero wave separator
═══════════════════════════════════════════════════════ */
.hero-wave {
  width: 100%;
  line-height: 0;
  margin-top: 48px;
  position: relative;
  z-index: 2;
}
.hero-wave svg {
  width: 100%;
  height: 60px;
  display: block;
}


/* ═══════════════════════════════════════════════════════
   Stats + values strip
═══════════════════════════════════════════════════════ */
.stats-light {
  background: var(--slate);
  padding: 88px 0 80px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 64px;
}

.stat-block {
  padding: 0 56px 0 0;
}
.stat-block:not(:first-child) {
  padding: 0 56px;
  border-left: 1px solid var(--line);
}
.stat-block:last-child {
  padding: 0 0 0 56px;
}

.stat-num {
  font-size: 88px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.06em;
  line-height: 1;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 14px;
  color: var(--g400);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.stats-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 48px;
  margin-top: 0;
}

.stats-val-item {
  padding: 0 48px 0 0;
}
.stats-val-item:nth-child(2) {
  padding: 0 48px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.stats-val-item:last-child {
  padding: 0 0 0 48px;
}

.stats-val-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.stats-val-body {
  font-size: 13px;
  color: var(--g500);
  line-height: 1.65;
  letter-spacing: -0.005em;
  max-width: 260px;
}

/* Mobile */
@media (max-width: 640px) {
  .stats-row { grid-template-columns: 1fr; gap: 40px; }
  .stat-block,
  .stat-block:not(:first-child),
  .stat-block:last-child { padding: 0; border: none; }
  .stat-num { font-size: 64px; }
  .header-end { display: none; }
}

/* ═══════════════════════════════════════════════════════
   Submit page
═══════════════════════════════════════════════════════ */
.submit-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  max-width: 860px;
  padding-top: 48px;
}

.submit-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.submit-card {
  border: 1.5px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: white;
}

.submit-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.01em;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.field-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.01em;
}

.field-req { color: var(--ton); }
.field-optional { font-weight: 400; color: var(--g400); }

.field-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  color: var(--black);
  background: white;
  transition: border-color 0.12s;
  outline: none;
  box-sizing: border-box;
}

.field-input:focus {
  border-color: var(--ton);
}

.field-input::placeholder { color: var(--g400); }

.field-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a1a1aa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.field-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.field-hint {
  font-size: 12.5px;
  color: var(--g400);
  line-height: 1.5;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 28px;
  background: var(--ton);
  color: white;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--r-btn);
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: opacity 0.12s;
  align-self: flex-start;
}

.submit-btn:hover { opacity: 0.86; }

/* Success state */
.submit-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 48px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-card);
}

.submit-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0,152,234,0.1);
  color: var(--ton);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 20px;
}

.submit-success h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.submit-success p {
  font-size: 15px;
  color: var(--g500);
  line-height: 1.65;
  max-width: 420px;
}

/* Sidebar */
.submit-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 48px;
}

.submit-info-block { display: flex; flex-direction: column; gap: 10px; }

.submit-info-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
  color: var(--g400);
}

.submit-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.submit-info-list li {
  font-size: 13.5px;
  color: var(--g600);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.submit-info-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--g300);
}

.submit-info-body {
  font-size: 13.5px;
  color: var(--g500);
  line-height: 1.6;
}


.field-monospace {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px !important;
  letter-spacing: 0.02em;
}

.field-prefix-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.12s;
  background: white;
}

.field-prefix-wrap:focus-within { border-color: var(--ton); }

.field-prefix {
  padding: 0 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--g400);
  background: var(--g50);
  height: 44px;
  display: flex;
  align-items: center;
  border-right: 1.5px solid var(--line);
  flex-shrink: 0;
}

.field-input-prefixed {
  border: none !important;
  border-radius: 0 !important;
  flex: 1;
  height: 44px;
}

.field-input-prefixed:focus { outline: none; }

/* Logo upload */
.logo-upload {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
  background: white;
}

.logo-upload:hover {
  border-color: var(--ton);
  background: rgba(0,152,234,0.02);
}

.logo-upload-preview {
  width: 52px;
  height: 52px;
  border-radius: 11px;
  background: var(--g100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--g300);
  flex-shrink: 0;
  overflow: hidden;
}

.logo-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-upload-text { display: flex; flex-direction: column; gap: 3px; }

.logo-upload-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
}

.logo-upload-hint {
  font-size: 12.5px;
  color: var(--g400);
}

/* Error banner */
.submit-error-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 10px;
  font-size: 13.5px;
  color: #B91C1C;
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .submit-layout { grid-template-columns: 1fr; gap: 48px; }
  .submit-sidebar { order: -1; }
  .field-row-2 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   Legal pages  (privacy / terms)
═══════════════════════════════════════════════════════ */
.legal-container {
  max-width: 760px;
}

.legal-page {
  padding: 48px 0 96px;
}

.legal-meta {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--g500);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.legal-content {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--g700);
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-top: 44px;
  margin-bottom: 14px;
  line-height: 1.25;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p { margin-bottom: 18px; }

.legal-content ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 22px;
}

.legal-content li { margin-bottom: 8px; }

.legal-content a {
  color: var(--black);
  border-bottom: 1px solid var(--g300);
  transition: border-color 0.12s;
}

.legal-content a:hover { border-bottom-color: var(--black); }

.legal-content strong {
  color: var(--black);
  font-weight: 600;
}

.legal-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  background: var(--g100);
  color: var(--g900);
  padding: 2px 6px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .legal-page { padding: 32px 0 72px; }
  .legal-content { font-size: 15px; }
  .legal-content h2 { font-size: 18px; margin-top: 36px; }
}

/* ────────────────────────────────────────────────────────────
   Logo image (replaces monogram when an app has a real logo)
   ──────────────────────────────────────────────────────────── */
.app-logo-img {
  display: block;
  object-fit: cover;
  border-radius: 10px;
  background: var(--paper);
}
/* Card-size logo: match .app-monogram default size */
.app-card .app-logo-img { width: 44px !important; height: 44px !important; flex-shrink: 0; }
.hero-app-main .app-logo-img { width: 48px !important; height: 48px !important; flex-shrink: 0; }
.app-hero-logo {
  width: 96px; height: 96px;
  border-radius: var(--r-card-lg);
  object-fit: cover;
  background: var(--paper);
  flex-shrink: 0;
}
.spotlight-card .app-logo-img.spotlight-mono {
  width: 52px !important;
  height: 52px !important;
  border-radius: 13px !important;
  object-fit: cover;
}
.hero-app-icon-logo {
  width: 44px !important;
  height: 44px !important;
  border-radius: 11px;
  object-fit: cover;
  background: var(--paper);
  display: block;
  flex-shrink: 0;
}
.marquee-logo {
  width: 22px !important;
  height: 22px !important;
  border-radius: 6px;
  object-fit: cover;
  background: var(--paper);
  display: block;
  flex-shrink: 0;
}

/* ────────────────────────────────────────────────────────────
   App detail page (/<slug>)
   ──────────────────────────────────────────────────────────── */
.app-page { padding: 32px 0 96px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--g500);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--g600);
  transition: color .12s;
}
.breadcrumb a:hover { color: var(--black); }
.breadcrumb-sep { color: var(--g400); }
.breadcrumb-current { color: var(--black); font-weight: 500; }

/* Hero */
.app-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-bottom: 40px;
}
.app-hero-mono {
  width: 96px;
  height: 96px;
  font-size: 32px;
  font-weight: 600;
  border-radius: var(--r-card-lg);
  flex-shrink: 0;
}
.app-hero-mid { min-width: 0; }
.app-hero-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.app-hero-mid h1 {
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--black);
}
.app-hero-lede {
  font-size: 16px;
  line-height: 1.55;
  color: var(--g700);
  margin: 0;
  max-width: 620px;
}
.app-hero-right { text-align: right; }
.app-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding: 11px 20px;
}
.app-hero-updated {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--g500);
}

/* Two-column layout */
.app-page-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

/* Left sidebar */
.app-page-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.app-toc {
  font-size: 13px;
  border-left: 2px solid var(--line);
  padding-left: 16px;
}
.app-toc-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--g500);
  margin: 0 0 12px;
}
.app-toc ul { list-style: none; padding: 0; margin: 0; }
.app-toc li { margin: 6px 0; line-height: 1.45; }
.app-toc li ul { padding-left: 12px; margin-top: 4px; }
.app-toc a {
  color: var(--g600);
  transition: color .12s;
  display: inline-block;
}
.app-toc a:hover { color: var(--black); }

.app-side-card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 18px;
  background: var(--white);
}
.app-side-card-quiet { background: var(--paper); }
.app-side-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 16px;
  font-size: 13px;
  padding: 10px 14px;
}
.app-side-meta { margin: 0; font-size: 12.5px; }
.app-side-meta dt {
  color: var(--g500);
  font-weight: 500;
  margin-bottom: 2px;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.05em;
}
.app-side-meta dd { margin: 0 0 14px; color: var(--black); }
.app-side-meta dd:last-child { margin-bottom: 0; }
.app-side-meta dd a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .12s;
}
.app-side-meta dd a:hover { color: var(--ton); }
.app-side-meta code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  background: var(--paper);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--g700);
}
.app-side-card-title {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--black);
  margin: 0 0 6px;
}
.app-side-card-body {
  font-size: 12.5px;
  color: var(--g600);
  line-height: 1.55;
  margin: 0 0 14px;
}
.app-side-card-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  font-size: 12.5px;
  padding: 9px 14px;
}

/* Main prose column */
.app-page-main { min-width: 0; }
.app-prose {
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--g700);
}
.app-prose > *:first-child { margin-top: 0; }
.app-prose h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.015em;
  margin: 44px 0 14px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.app-prose h2:first-child { margin-top: 0; }
.app-prose h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  margin: 32px 0 10px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.app-prose p { margin: 0 0 18px; }
.app-prose ul, .app-prose ol { padding-left: 22px; margin: 0 0 18px; }
.app-prose li { margin: 6px 0; }
.app-prose strong { color: var(--black); font-weight: 600; }
.app-prose a {
  color: var(--ton);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .12s;
}
.app-prose a:hover { color: var(--black); }
.app-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: var(--paper);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--g900);
}
.app-prose blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--ton);
  background: var(--paper);
  border-radius: 0 var(--r-card) var(--r-card) 0;
  color: var(--g700);
  font-style: normal;
}
.app-prose blockquote p:last-child { margin-bottom: 0; }
.app-prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}

/* Verification note inline */
.app-verify-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 40px;
  padding: 16px 18px;
  border-radius: var(--r-card);
  font-size: 14px;
  line-height: 1.55;
}
.app-verify-note i {
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}
.app-verify-note strong { color: var(--black); font-weight: 600; }
.app-verify-tg {
  background: rgba(0, 152, 234, 0.06);
  border: 1px solid rgba(0, 152, 234, 0.18);
  color: var(--g700);
}
.app-verify-tg i { color: var(--ton); }
.app-verify-us {
  background: var(--cream);
  border: 1px solid #EAD7B3;
  color: var(--g700);
}
.app-verify-us i { color: #B17B1F; }
.app-verify-none {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--g600);
}
.app-verify-none i { color: var(--g500); }

.app-page-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.app-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  padding: 13px 22px;
}
.app-cta i { font-size: 17px; }

/* Related */
.app-related {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.app-related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}
.app-related-head h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

@media (max-width: 960px) {
  .app-page-layout { grid-template-columns: 1fr; gap: 32px; }
  .app-page-side { position: static; order: 2; }
  .app-toc { display: none; }
}
@media (max-width: 720px) {
  .app-hero {
    grid-template-columns: auto 1fr;
    padding: 22px 20px;
    gap: 16px;
  }
  .app-hero-right {
    grid-column: 1 / -1;
    text-align: left;
  }
  .app-hero-cta { width: 100%; justify-content: center; }
  .app-hero-mono { width: 72px; height: 72px; font-size: 26px; }
  .app-hero-mid h1 { font-size: 26px; }
  .app-page-cta-row .btn { width: 100%; justify-content: center; }
}

/* ────────────────────────────────────────────────────────────
   Consent banner
   ──────────────────────────────────────────────────────────── */
.consent {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: 380px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 16px 18px;
  font-size: 13px;
  color: var(--g700);
  line-height: 1.5;
}
.consent p { margin: 0 0 10px; }
.consent-actions { display: flex; gap: 8px; justify-content: flex-end; }
.consent-btn {
  padding: 7px 14px;
  border-radius: var(--r-btn);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
}
.consent-btn:hover { border-color: var(--g400); }
.consent-accept {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.consent-accept:hover { background: var(--g700); border-color: var(--g700); }
@media (max-width: 540px) {
  .consent { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

