/* ============================================================
   ProductivityTech — Design System
   ============================================================ */

:root {
  --bg: #080808;
  --surface: #111111;
  --border: #1f1f1f;
  --border-light: #2a2a2a;
  --text: #f0f0f0;
  --muted: #808080; /* bumped from #6b6b6b — was 3.76:1, now ~5.0:1 on --bg (WCAG AA) */
  --accent: #059669;
  --accent-bright: #10b981;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ---- Typography ---- */
.display,
h1, h2, h3, h4 {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 700;
}

/* ---- Wordmark ---- */
.wordmark {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.wordmark .tld {
  color: var(--muted);
  font-weight: 400;
}

/* ---- Nav ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
  font-weight: 400;
}
.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a { color: var(--text); }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 6px;
}

/* ---- Mobile menu ---- */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 10px 24px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.mobile-menu a:hover { color: var(--text); }
.mobile-menu .mobile-cta {
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
  font-family: 'Instrument Sans', sans-serif;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: #e8e8e8; color: #000; }

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 24px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s;
  font-family: 'Instrument Sans', sans-serif;
  letter-spacing: -0.01em;
}
.btn-hero:hover { background: #e8e8e8; color: #000; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--border-light);
  transition: border-color 0.15s;
  font-family: 'Instrument Sans', sans-serif;
  letter-spacing: -0.01em;
}
.btn-outline:hover { border-color: #444; color: var(--text); }

.btn-buy {
  display: block;
  width: 100%;
  padding: 12px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  font-family: 'Instrument Sans', sans-serif;
  letter-spacing: -0.01em;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
}
.btn-buy:hover { background: #e8e8e8; color: #000; }

/* ---- Tags ---- */
.tag {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  background: #1a1a1a;
  color: var(--muted);
  border: 1px solid var(--border);
  text-decoration: none;
}
.tag-accent {
  color: var(--accent-bright);
  border-color: #0d2b1f;
  background: #071a12;
}

/* ---- Section layout ---- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-bright);
  margin-bottom: 12px;
}

.section-h2 {
  font-family: 'Instrument Sans', sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s;
}
.section-link:hover { color: var(--text); }

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--border-light); }

.card-img {
  height: 180px;
  background: #111;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 10px;
  font-family: ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.card-title {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1.3;
  transition: color 0.15s;
}
.card:hover .card-title { color: #34d399; }

.card-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.card-price {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #34d399;
}

.card-meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 12px;
}

.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

/* ---- Cards without padding (image+body pattern) ---- */
.card-media {
  padding: 0;
  overflow: hidden;
}

/* ---- Announce pill ---- */
.announce-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 36px;
  text-decoration: none;
  transition: border-color 0.15s;
}
.announce-pill:hover { border-color: #3a3a3a; }
.announce-pill .badge {
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  font-family: 'Instrument Sans', sans-serif;
}

/* ---- Hero ---- */
.hero-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 24px 72px;
  text-align: center;
}

.hero-h1 {
  font-family: 'Instrument Sans', sans-serif;
  font-size: clamp(52px, 7vw, 84px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-h1 .dim { color: #3a3a3a; }

.hero-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

/* ---- Mockup ---- */
.mockup-wrap {
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 40px 120px rgba(0,0,0,0.6);
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #0d0d0d;
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.mockup-url {
  flex: 1;
  margin: 0 12px;
  background: #1a1a1a;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--muted);
  font-family: ui-monospace, monospace;
  text-align: center;
}
.mockup-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 380px;
}
.mockup-sidebar {
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  background: #0d0d0d;
}
.mockup-main { padding: 20px 24px; }

/* ---- CTA band ---- */
.cta-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 24px;
  text-align: center;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
}
.footer-link {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.15s;
}
.footer-link:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 12px; color: var(--muted); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: var(--muted); text-decoration: none; transition: color .15s; }
.footer-legal a:hover { color: var(--muted); }

/* ---- Blog filter ---- */
.filter-bar {
  position: sticky;
  top: 56px;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(12px);
}
.filter-bar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 8px;
  padding-top: 12px;
  padding-bottom: 12px;
  overflow-x: auto;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
}
.filter-btn:hover { border-color: var(--border-light); color: var(--text); }
.filter-btn.active { background: var(--surface); border-color: var(--border-light); color: var(--text); }

/* ---- Page header ---- */
.page-header {
  border-bottom: 1px solid var(--border);
  padding: 56px 24px 48px;
}
.page-header-inner { max-width: 1120px; margin: 0 auto; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { color: var(--border-light); }

/* ---- Buy box ---- */
.buy-box {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  position: sticky;
  top: 76px;
}
.price-tag {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---- Product hero layout ---- */
.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}

/* ---- Article prose ---- */
.prose h2 {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 40px 0 14px;
  line-height: 1.2;
}
.prose h3 {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 28px 0 10px;
}
.prose p { font-size: 15px; color: #aaa; line-height: 1.8; margin-bottom: 18px; }
.prose a { color: var(--accent-bright); text-decoration: underline; text-decoration-color: rgba(16,185,129,0.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent-bright); }
.prose ul { margin: 16px 0; padding: 0; list-style: none; }
.prose ul li { font-size: 15px; color: #aaa; line-height: 1.8; padding-left: 18px; position: relative; margin-bottom: 6px; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-bright); }
.prose ol { margin: 16px 0; padding: 0; list-style: none; counter-reset: ol; }
.prose ol li { font-size: 15px; color: #aaa; line-height: 1.8; padding-left: 24px; position: relative; margin-bottom: 6px; counter-increment: ol; }
.prose ol li::before { content: counter(ol) "."; position: absolute; left: 0; color: var(--accent-bright); font-weight: 600; font-size: 13px; top: 2px; }
.prose blockquote { border-left: 2px solid var(--accent-bright); padding: 12px 20px; background: rgba(16,185,129,0.04); border-radius: 0 8px 8px 0; margin: 24px 0; }
.prose blockquote p { color: #ccc; font-style: italic; margin: 0; }
.prose pre { background: #0d0d0d; border: 1px solid var(--border); border-radius: 10px; padding: 20px 24px; overflow-x: auto; margin: 24px 0; }
.prose pre code { font-family: ui-monospace, 'JetBrains Mono', monospace; font-size: 13px; color: #ccc; line-height: 1.7; }
.prose code:not(pre code) { font-family: ui-monospace, monospace; font-size: 13px; background: #1a1a1a; border: 1px solid var(--border); color: var(--accent-bright); padding: 1px 6px; border-radius: 4px; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }
.prose img { border-radius: 10px; margin: 24px 0; }

/* ---- TOC ---- */
.toc-link {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 12px;
  border-left: 2px solid var(--border);
  transition: all 0.15s;
  line-height: 1.5;
}
.toc-link:hover, .toc-link.active { color: var(--accent-bright); border-left-color: var(--accent-bright); }
.toc-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 12px;
  padding-left: 12px;
}

/* ---- Article layout ---- */
.article-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 64px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px;
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 13px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  transition: all .15s;
}
.pagination .page-numbers.current {
  background: var(--surface);
  border-color: var(--border-light);
  color: var(--text);
}
.pagination .page-numbers:hover:not(.current) { border-color: var(--border-light); color: var(--text); }
.pagination-numbers { display: flex; gap: 4px; }

/* ---- No posts ---- */
.no-posts { padding: 80px 0; text-align: center; font-size: 14px; color: var(--muted); }

/* ---- Featured post (archive hero) ---- */
.archive-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.2s;
  margin-bottom: 0;
}
.archive-featured:hover { border-color: var(--border-light); }
.archive-featured:hover .archive-featured-title { color: #34d399; }

.archive-featured-media {
  min-height: 280px;
  background: #111;
  border-right: 1px solid var(--border);
  overflow: hidden;
}
.archive-featured-media--empty {
  background: linear-gradient(135deg, #111 0%, #0a0a0a 100%);
}

.archive-featured-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.archive-featured-title {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 10px;
  transition: color 0.15s;
}

.archive-featured-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Archive layout ---- */
.archive-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.archive-card {
  padding: 0;
  overflow: hidden;
}

.archive-card-media {
  height: 172px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #111;
}

.archive-card-media--empty {
  background: linear-gradient(135deg, #111 0%, #0d0d0d 100%);
}

.archive-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.archive-card-meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 12px;
}

/* ---- Archive sidebar ---- */
.archive-sidebar-sticky {
  position: sticky;
  top: 112px; /* nav (56px) + filter bar (~56px) */
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-cta {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
}

.sidebar-cta-eyebrow {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-bright);
  margin-bottom: 10px;
}

.sidebar-cta-title {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 10px;
}

.sidebar-cta-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.sidebar-widget-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
}

.sidebar-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.sidebar-cat-link:last-child { border-bottom: none; }
.sidebar-cat-link:hover { color: var(--text); }

.sidebar-cat-count {
  font-size: 11px;
  color: var(--muted);
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-right { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .product-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-grid aside { display: none; }
  .archive-layout { grid-template-columns: 1fr; }
  .archive-sidebar { display: none; }
  .archive-featured { grid-template-columns: 1fr; }
  .archive-featured-media { min-height: 200px; border-right: none; border-bottom: 1px solid var(--border); }
  .mockup-body { grid-template-columns: 1fr; }
  .mockup-sidebar { display: none; }
}
