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

:root {
  --bg: #0C0C0C;
  --surface: #161614;
  --border: #252521;
  --text: #F5F4F0;
  --text-secondary: #D6D5D0;
  --text-tertiary: #AEADA7;
  --muted: #7C7B75;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-heading: 'Fraunces', serif;
}

:root[data-site-theme="light"] {
  --bg: #EAE4DF;
  --surface: #FFFFFF;
  --border: #DBD3C9;
  --text: #1C1917;
  --text-secondary: #44403C;
  --text-tertiary: #6B655F;
  --muted: #8A8378;
}

/* Smooth cross-page transitions (Astro ClientRouter / View Transitions API) */
/* Targets every transition — the page crossfade (root) and every named
   shared-element morph (e.g. article thumbnail → hero image) — not just root. */
::view-transition-group(*),
::view-transition-old(*),
::view-transition-new(*) {
  animation-duration: 0.6s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Theme toggle (fixed top-right on every page) */
.theme-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.theme-toggle:hover {
  border-color: var(--accent);
}

.theme-toggle-icon {
  width: 18px;
  height: 18px;
}

.theme-toggle-icon--moon {
  display: none;
}

:root[data-site-theme="light"] .theme-toggle-icon--sun {
  display: none;
}

:root[data-site-theme="light"] .theme-toggle-icon--moon {
  display: block;
}

/* Landing Layout */
.landing {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 2rem 1rem;
}

/* Site Nav (shown on every page except the homepage) */
.site-nav {
  width: 100%;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.nav-logo-avatar-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.nav-logo-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-logo-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0 auto;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
  padding: 0.65rem 1.375rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Toggle sits inline in the nav instead of floating fixed */
.nav-actions .theme-toggle {
  position: static;
}

@media (max-width: 899px) {
  .nav-links {
    display: none;
  }

  .nav-inner {
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    padding: 1rem;
  }
}

@media (max-width: 400px) {
  .nav-logo-text {
    display: none;
  }
}

/* Page grid — mobile: single column stack */
.page-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
  margin-bottom: 20px;
}

.col-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
  height: 100%;
  max-width: 458px;
}

.col-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 458px;
}

.card {
  display: flex;
  flex-direction: column;
  text-align: center;
  max-width: 520px;
  width: 100%;
  padding: 3rem 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  align-items: center;
}

/* Avatar */
.avatar-wrap {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}

/* Heading */
.site-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* Tagline */
.tagline {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 380px;
}

/* Highlight span — brightens key words within muted text */
.hi {
  color: var(--text);
}

/* CTA Button */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
  padding: 0.8rem 1.75rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  transition: background 0.2s, transform 0.15s;
  border-radius: 8px;
}

.cta-button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  background-color: transparent;
}

.cta-button:active {
  transform: translateY(0);
}

.arrow {
  font-size: 1rem;
  transition: transform 0.2s;
}

.cta-button:hover .arrow {
  transform: translateX(3px);
}

/* Clients Section */
.clients {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

.clients-label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Carousel */
.carousel-wrap {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 18%, black 82%, transparent);
  mask-image: linear-gradient(to right, transparent, black 18%, black 82%, transparent);
}

.logo-marquee-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: max-content;
  will-change: transform;
}

.logo-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-shrink: 0;
}

.logo-marquee-row .logo-item {
  margin-left: 30px;
}

.logo-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.2;
  flex-shrink: 0;
  transition: color 0.2s;
}

.logo-item:hover {
  color: rgba(255, 255, 255, 0.7);
}

:root[data-site-theme="light"] .logo-item {
  color: rgba(0, 0, 0, 0.35);
}

:root[data-site-theme="light"] .logo-item:hover {
  color: rgba(0, 0, 0, 0.65);
}

/* Image logos */
.logo-img {
  height: 24px;
  width: auto;
  display: block;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.42;
  transition: opacity 0.2s;
}

:root[data-site-theme="light"] .logo-img {
  filter: brightness(0);
  opacity: 0.45;
}

.logo-item:hover .logo-img {
  opacity: 0.75;
}

/* Belmondo — larger to match visual weight */
.logo-img-belmondo {
  height: 31px;
}

/* Thrive */
.logo-thrive {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

/* Studio Inter */
.logo-studio {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

/* Rxmedia */
.logo-rx {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

/* TE Web */
.logo-teweb {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}


/* Services */
.services {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 2rem;
  width: 100%;
  max-width: 560px;
}

.services-cols {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  width: 100%;
}

.service-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s;
}

.service-col--webflow:hover {
  border-color: #146EF5;
}

.service-col--claude:hover {
  border-color: #D97757;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0em;
  color: var(--text);
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  flex: 1;
}

.service-list li {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-tertiary);
  padding-left: 1rem;
  position: relative;
}

.service-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--muted);
  font-size: 0.65rem;
  top: 0.15em;
}

.webflow-badge {
  width: 140px;
  height: auto;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: opacity 0.2s, transform 0.15s;
}

.service-cta:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.service-cta--blue {
  background: #146EF5;
  color: #ffffff;
  border-color: #146EF5;
}

.service-cta--orange {
  background: #D97757;
  color: #ffffff;
  border-color: #D97757;
}

/* Logo inline with service title */
.svc-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.svc-title-row .logo-svg {
  height: 16px;
  width: auto;
  flex-shrink: 0;
}

.logo-webflow {
  color: #146EF5;
  width: 40px !important;
  height: 40px !important;
}

.logo-img-claude {
  height: 40px;
  width: 40px;
  display: block;
  flex-shrink: 0;
}

/* ── Card reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Small mobile */
@media (max-width: 480px) {
  .card {
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
  }

  .site-title {
    font-size: 1.5rem;
  }

  .tagline {
    font-size: 0.9375rem;
  }
}

/* Featured articles — single full-width card below the main cards */
.featured-section {
  width: 100%;
  max-width: 520px;
}

.featured-heading {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.featured-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 480px;
  margin: 0 0 1.5rem;
}

.featured-card .article-list {
  width: 100%;
}

.read-all-wrap {
  width: 100%;
  margin-top: 1.5rem;
  text-align: center;
}

/* Cursor-following tooltip on homepage article cards */
.article-card--tooltip {
  cursor: none;
}

.cursor-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  padding: 0.65rem 1.15rem;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  z-index: 999;
  white-space: nowrap;
  transition: opacity 0.2s ease;
  will-change: transform;
}

.cursor-tooltip.is-visible {
  opacity: 1;
}

/* Desktop & tablet — two-column layout */
@media (min-width: 768px) {
  body {
    align-items: flex-start;
    padding: 3rem 2rem;
  }

  .page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
    max-width: 940px;
  }

  .col-left {
    align-items: stretch;
  }

  .col-right {
    align-items: stretch;
  }

  /* Card: fill column, text left-aligned */
  .card {
  max-width: none;
  text-align: left;
  align-items: flex-start;
}

  /* Clients: full width below grid */
  .clients {
    max-width: 940px;
    text-align: center;
    padding-bottom: 0;
  }

  /* Services: fill column, cards stack vertically */
  .services {
    max-width: none;
    padding-bottom: 0;
  }

  .services-cols {
    flex-direction: column;
  }

  .featured-section {
    max-width: 940px;
  }
}

@media (max-width: 767px) {
  .clients-label {
    text-align: center;
  }
}

/* 404 Page */
.not-found-card {
  max-width: 480px;
  text-align: center;
  align-items: center;
}

.error-headline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.error-digit {
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1;
}

.moon {
  font-size: 5.5rem;
  line-height: 1;
  filter: grayscale(1) drop-shadow(0 0 40px rgba(255, 255, 255, 0.08));
}

.error-sub {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* Articles list & detail pages */
.articles-page {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 3rem 0;
}

.articles-page--wide {
  max-width: 960px;
}

.articles-page--article {
  max-width: 960px;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.article-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.article-breadcrumb a:hover {
  color: var(--text);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.filter-pill:hover {
  color: var(--text);
  border-color: var(--muted);
}

.filter-pill.is-active {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.articles-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.articles-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 560px;
}

.articles-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text);
}

.back-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--text);
}

.articles-empty {
  color: var(--muted);
  line-height: 1.6;
}

.article-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .article-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .article-list {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 2rem;
}
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}

.article-card:hover {
  border-color: var(--accent);
}

.article-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.article-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0em;
  color: var(--text);
}

.article-card-date {
  font-size: 0.8125rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: auto;
}

.article-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--border);
}

.article-card-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.category-pill {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.3rem 0.65rem;
}

.article-card-excerpt {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-tertiary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-detail-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.2;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr 220px;
    align-items: start;
  }
}

.article-layout--no-sidebar {
  grid-template-columns: 1fr;
}

.article-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}

.article-sidebar {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .article-sidebar {
    display: flex;
    position: sticky;
    top: 2rem;
  }
}

.sidebar-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sidebar-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.toc {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toc-heading {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.toc-link {
  display: block;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid var(--border);
  padding-left: 0.75rem;
  transition: color 0.2s, border-color 0.2s;
}

.toc-link:hover {
  color: var(--text);
}

.toc-link.is-active {
  color: var(--text);
  border-left-color: var(--text);
}

.byline-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.byline-name {
  color: var(--text);
  font-weight: 500;
}

.byline-dot {
  color: var(--border);
}

.article-detail-image {
  width: 100%;
  border: 1px solid var(--border);
}

.article-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text);
  margin-top: 0.5rem;
  scroll-margin-top: 1.5rem;
}

.article-body a {
  color: var(--accent);
}

.article-body ul,
.article-body ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-body li {
  position: relative;
  padding-left: 1.25rem;
}

.article-body ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--muted);
}

.article-body ol {
  counter-reset: article-ol;
}

.article-body ol li::before {
  content: counter(article-ol) '.';
  counter-increment: article-ol;
  position: absolute;
  left: 0;
  color: var(--muted);
}

.article-body img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.article-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.article-table th,
.article-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.article-table th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
}

.article-table td {
  color: var(--text-secondary);
}

.article-table tr:last-child td {
  border-bottom: none;
}

/* FAQ accordion (shown at the bottom of an article) */
.faq-section {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--accent);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  flex-shrink: 0;
  position: relative;
  width: 16px;
  height: 16px;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--muted);
  transition: transform 0.2s ease, background 0.2s ease;
}

.faq-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  transform: translateY(-50%);
}

.faq-icon::after {
  left: 50%;
  top: 0;
  width: 1.5px;
  height: 100%;
  transform: translateX(-50%);
}

.faq-item[open] .faq-question {
  color: var(--accent);
}

.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after {
  background: var(--accent);
}

.faq-item[open] .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
}

.faq-answer {
  padding: 0 1.25rem 1.15rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Related articles (shown at the bottom of an article) */
.related-section {
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.related-heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text);
}

.related-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.related-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.related-card:hover .related-card-thumb {
  border-color: var(--accent);
}

.related-card-title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 900;
  letter-spacing: 0em;
  color: var(--text);
  line-height: 1.4;
}

/* CTA banner (bottom of articles list & article pages) */
.cta-banner {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, #4fd8ff 0%, #1d4ed8 32%, #101a5c 62%, #05060f 100%);
  background-size: 220% 220%;
  background-position: 50% 50%;
  padding: 3rem 2.5rem;
  margin-top: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0, 0 0 0 0 0, 0 0 0 0 0, 0 0 0 2.2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.cta-banner-heading {
  position: relative;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.cta-banner-description {
  position: relative;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 440px;
}

.cta-banner-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: #0C0C0C;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 0.5rem;
  transition: transform 0.15s, background 0.2s;
}

.cta-banner-button:hover {
  transform: translateY(-1px);
  background: #F5F4F0;
}

/* CTA split layout (alternative): message+button left, post-it checklist right */
.cta-split {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  margin-top: 1rem;
}

.cta-split-left {
  flex: 1 1 0%;
  min-width: 260px;
  width: auto;
  align-items: flex-start;
  text-align: left;
  margin-top: 0;
}

@media (min-width: 768px) {
  .cta-split-left {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
}

.cta-split-note {
  position: relative;
  flex: 1 1 0%;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.75rem 2rem 1.75rem 2.75rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28), 0 2px 0 rgba(0, 0, 0, 0.04);
  transform: rotate(1.25deg);
  cursor: pointer;
}

@media (min-width: 768px) {
  .cta-split-note {
  margin-left: -2.5rem;
}
}

.cta-split-note::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(37, 99, 235, 0.45);
}

.cta-split-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.cta-split-list li {
  position: relative;
  padding: 0.8rem 0 0.8rem 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta-split-list li.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:root[data-site-theme="light"] .cta-split-list li {
  border-bottom-color: var(--border);
}

.cta-split-list li:last-child {
  border-bottom: none;
}

.cta-split-check {
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 767px) {
  .cta-split {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-split-note {
  order: 2;
  margin-top: -1rem;
}

  .cta-split-left {
  order: 1;
  border-radius: 20px 20px 20px 20px;
}
}

@media (min-width: 768px) and (max-width: 1023px) {
  .cta-split-note {
  margin-top: 0rem;
}
}

li {
}

/* Footer */
.site-footer {
  width: 100%;
  max-width: 940px;
  padding: 2rem 0 0;
}

.footer-divider {
  width: 50vw;
  height: 1px;
  margin: 0 auto 2rem;
  background: var(--border);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 2rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-tertiary);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-icon--at {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
}
