@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

/* ==========================================================================
   Design tokens
   ========================================================================== */

:root {
  --background: 195 25% 98%;
  --foreground: 200 32% 13%;
  --border: 197 18% 87%;
  --card: 0 0% 100%;
  --muted: 195 25% 96%;
  --muted-foreground: 200 12% 42%;
  --primary: 190 88% 30%;
  --primary-foreground: 0 0% 100%;
  --secondary: 197 45% 14%;
  --accent: 14 82% 42%;

  --radius: 0.75rem;

  --font-sans: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  --shadow: 0 2px 12px #0e527012, 0 1px 3px #0000000a;
  --shadow-lg: 0 8px 32px #0e52701f, 0 2px 8px #0000000f;
  --shadow-warm: 0 4px 16px #c4400f1f, 0 1px 4px #0000000a;

  --gradient-rail: linear-gradient(90deg, #14b8a6, #0284c7);
  --gradient-deep: linear-gradient(135deg, #0c2a33, #0e4a5c, #09202a);

  --container: 1280px;
  --header-h: 65px;
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  margin: 0;
  color: hsl(var(--foreground));
}

p {
  margin: 0;
}

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

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

svg {
  flex-shrink: 0;
}

:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -150%);
  z-index: 200;
  padding: 0.7rem 1.25rem;
  background: hsl(var(--primary));
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 2rem;
  }
}

.section {
  padding-block: 4.5rem;
}

.section--tight {
  padding-block: 3.5rem;
}

.section--muted {
  background: hsl(var(--muted));
}

.section--card {
  background: hsl(var(--card));
}

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  margin-bottom: 0.6rem;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.section-title {
  font-size: clamp(1.5rem, 3.2vw, 1.875rem);
  line-height: 1.2;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary));
  padding-bottom: 0.35rem;
  transition: gap 0.18s ease;
}

.section-link:hover {
  gap: 0.625rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform 0.18s ease, background-color 0.18s ease,
    box-shadow 0.18s ease, border-color 0.18s ease;
}

.btn svg {
  transition: transform 0.18s ease;
}

.btn:hover svg:last-child {
  transform: translateX(3px);
}

.btn--accent {
  background: hsl(var(--accent));
  color: #fff;
  box-shadow: var(--shadow-warm);
}

.btn--accent:hover {
  background: hsl(14 82% 36%);
  transform: translateY(-1px);
}

.btn--primary {
  background: hsl(var(--primary));
  color: #fff;
  box-shadow: var(--shadow);
}

.btn--primary:hover {
  background: hsl(190 88% 25%);
  transform: translateY(-1px);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn--outline {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
}

.btn--outline:hover {
  border-color: hsl(var(--primary) / 0.4);
  color: hsl(var(--primary));
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsl(var(--card));
  border-bottom: 1px solid hsl(var(--border));
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.625rem;
  background: var(--gradient-rail);
  color: #fff;
  box-shadow: var(--shadow);
}

.brand__name {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  /* The name contains spaces — keep the wordmark on one line. */
  white-space: nowrap;
}

.brand--light .brand__name {
  color: #fff;
}

.nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }
}

.nav__link {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.16s ease, background-color 0.16s ease;
}

.nav__link:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--muted));
}

.nav__link.is-active {
  color: hsl(var(--primary));
  font-weight: 500;
}

.nav__link--cta {
  margin-left: 0.5rem;
  padding-inline: 1rem;
  border: 1px solid hsl(var(--primary) / 0.35);
  color: hsl(var(--primary));
  font-weight: 500;
}

.nav__link--cta:hover {
  background: hsl(var(--primary) / 0.07);
  color: hsl(var(--primary));
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  color: hsl(var(--foreground));
  transition: background-color 0.16s ease;
}

.nav-toggle:hover {
  background: hsl(var(--muted));
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle__close,
.nav-toggle[aria-expanded='true'] .nav-toggle__open {
  display: none;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__close {
  display: block;
}

.mobile-nav {
  display: none;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  padding-block: 0.75rem 1.25rem;
}

.mobile-nav.is-open {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-nav.is-open {
    display: none;
  }
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
}

.mobile-nav__link:hover {
  background: hsl(var(--muted));
}

.mobile-nav__link.is-active {
  color: hsl(var(--primary));
  font-weight: 500;
}

.mobile-nav__sep {
  height: 1px;
  margin: 0.625rem 0.5rem;
  background: hsl(var(--border));
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-deep);
  color: #fff;
  isolation: isolate;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.32;
  z-index: -1;
  pointer-events: none;
}

.hero__glow--teal {
  width: 34rem;
  height: 34rem;
  top: -12rem;
  right: -8rem;
  background: radial-gradient(circle, #14b8a6, transparent 70%);
}

.hero__glow--cyan {
  width: 26rem;
  height: 26rem;
  bottom: -10rem;
  left: -6rem;
  background: radial-gradient(circle, #0284c7, transparent 70%);
  opacity: 0.26;
}

.hero__inner {
  position: relative;
  max-width: 48rem;
  padding-block: 5rem;
}

@media (min-width: 768px) {
  .hero__inner {
    padding-block: 7rem;
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin-bottom: 1.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8125rem;
  font-weight: 500;
}

.hero__badge svg {
  color: #5eead4;
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero__title em {
  font-style: normal;
  color: #5eead4;
}

.hero__lede {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.78);
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

/* Compact hero variant, used on interior pages */
.hero--compact .hero__inner {
  padding-block: 3.5rem;
}

@media (min-width: 768px) {
  .hero--compact .hero__inner {
    padding-block: 4.5rem;
  }
}

.hero--compact .hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
}

/* ==========================================================================
   Stats strip
   ========================================================================== */

.stats {
  background: hsl(var(--card));
  border-bottom: 1px solid hsl(var(--border));
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  padding: 1.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid hsl(var(--border));
}

.stat:nth-child(odd) {
  border-right: 1px solid hsl(var(--border));
}

@media (min-width: 768px) {
  .stat {
    border-bottom: 0;
    border-right: 1px solid hsl(var(--border));
  }

  .stat:last-child {
    border-right: 0;
  }
}

.stat__value {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 700;
  color: hsl(var(--primary));
  line-height: 1.1;
}

.stat__label {
  margin-top: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

/* ==========================================================================
   Topic cards
   ========================================================================== */

.topic-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.topic-card {
  display: block;
  padding: 1.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: hsl(var(--primary) / 0.25);
}

.topic-card__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  color: #fff;
  background-image: linear-gradient(to bottom right, var(--g-from), var(--g-to));
}

.topic-card__name {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.topic-card__blurb {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: hsl(var(--muted-foreground));
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.topic-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--primary));
}

/* ==========================================================================
   Article cards
   ========================================================================== */

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.card-grid--wide {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
}

.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.article-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--gradient-rail);
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: hsl(var(--primary) / 0.22);
}

.article-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.25rem 1rem;
}

.article-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.article-card__time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  font-size: 0.6875rem;
  color: hsl(var(--muted-foreground));
}

.article-card__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.375;
  margin-bottom: 0.625rem;
}

.article-card:hover .article-card__title {
  color: hsl(var(--primary));
}

.article-card__dek {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.875rem;
  border-top: 1px solid hsl(var(--border));
}

/* Keeps the divider off the dek when a card's text runs short. */
.article-card__dek {
  margin-bottom: 1.25rem;
}

.article-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.article-card__read {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--primary));
  transition: gap 0.18s ease;
}

.article-card:hover .article-card__read {
  gap: 0.55rem;
}

/* Full-card link overlay keeps the whole card clickable without nesting anchors */
.article-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.article-card__link span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ==========================================================================
   Badges & tags
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 500;
  white-space: nowrap;
  background: hsl(var(--primary) / 0.08);
  color: hsl(var(--primary));
}

.badge--muted {
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

.tag {
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.6875rem;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
}

/* ==========================================================================
   Why / feature list
   ========================================================================== */

.split {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.prose-narrow p {
  font-size: 1rem;
  line-height: 1.75;
  color: hsl(var(--foreground) / 0.82);
}

.feature-list {
  display: grid;
  gap: 1rem;
}

.feature {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  color: #fff;
  background-image: linear-gradient(to bottom right, var(--g-from), var(--g-to));
}

.feature__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.feature__text {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}

/* ==========================================================================
   Deep CTA band
   ========================================================================== */

.cta-band {
  background: var(--gradient-deep);
  color: #fff;
  padding-block: 3.5rem;
}

.cta-band__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cta-tile {
  display: block;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta-tile:hover {
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-2px);
}

.cta-tile__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.cta-tile__text {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}

.cta-tile__more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5eead4;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.75rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.breadcrumb a:hover {
  color: hsl(var(--primary));
}

.breadcrumb__sep {
  color: hsl(var(--border));
}

.breadcrumb [aria-current='page'] {
  color: hsl(var(--foreground));
}

/* ==========================================================================
   Article page
   ========================================================================== */

.article {
  max-width: 48rem;
  margin-inline: auto;
  padding-block: 1.5rem 4rem;
}

.article__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.article__title {
  font-size: clamp(1.75rem, 4.5vw, 2.25rem);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.article__dek {
  padding-left: 1.125rem;
  border-left: 3px solid hsl(var(--primary) / 0.3);
  font-size: 1.125rem;
  line-height: 1.625;
  color: hsl(var(--muted-foreground));
}

.article__updated {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.article__figure {
  margin: 2rem 0 0;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article__figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article__figure figcaption {
  padding: 0.625rem 0.875rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted));
  border-top: 1px solid hsl(var(--border));
}

.notice {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1.125rem 1.25rem;
  border-radius: var(--radius);
  background: hsl(var(--primary) / 0.05);
  border: 1px solid hsl(var(--primary) / 0.14);
}

.notice svg {
  color: hsl(var(--primary));
  margin-top: 0.15rem;
}

.notice__title {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--primary));
  margin-bottom: 0.375rem;
}

.notice__text {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: hsl(var(--muted-foreground));
}

.article__body {
  margin-top: 2.75rem;
}

.article__body h2 {
  font-size: 1.25rem;
  line-height: 1.4;
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
}

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

.article__body p {
  font-size: 1rem;
  line-height: 1.625;
  color: hsl(var(--foreground) / 0.85);
}

.article__body p + p {
  margin-top: 1rem;
}

.faq {
  margin-top: 3.5rem;
}

.faq__title {
  font-size: 1.375rem;
  margin-bottom: 1.25rem;
}

.faq__list {
  display: grid;
  gap: 0.75rem;
}

.faq__item {
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.125rem;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
}

.faq__q svg {
  color: hsl(var(--muted-foreground));
  transition: transform 0.22s ease;
}

.faq__item.is-open .faq__q svg {
  transform: rotate(180deg);
}

.faq__a {
  padding: 0 1.125rem 1.125rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: hsl(var(--muted-foreground));
}

/* JS enhances these into disclosures; without JS every answer stays visible. */
.js .faq__a {
  display: none;
}

.js .faq__item.is-open .faq__a {
  display: block;
}

.article__tags {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid hsl(var(--border));
}

.article__tags-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
}

.article__tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.related {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid hsl(var(--border));
}

.related__title {
  font-size: 1.375rem;
  margin-bottom: 1.5rem;
}

.article__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary));
  transition: gap 0.18s ease;
}

.article__back:hover {
  gap: 0.8rem;
}

/* ==========================================================================
   Library / filter
   ========================================================================== */

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.75rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid hsl(var(--border));
}

.filter-bar__label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

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

.chip {
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: all 0.16s ease;
}

.chip:hover {
  border-color: hsl(var(--primary) / 0.35);
  color: hsl(var(--foreground));
}

.chip.is-active {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: #fff;
}

.filter-count {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.empty-state {
  padding: 4rem 1rem;
  text-align: center;
  color: hsl(var(--muted-foreground));
}

/* ==========================================================================
   Topic hub header
   ========================================================================== */

.topic-hero {
  padding-block: 2.5rem 0;
}

.topic-hero__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  font-size: 1.75rem;
  color: #fff;
  background-image: linear-gradient(to bottom right, var(--g-from), var(--g-to));
  box-shadow: var(--shadow);
}

.topic-hero__title {
  font-size: clamp(1.875rem, 4.5vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.topic-hero__blurb {
  max-width: 44rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

.topic-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid hsl(var(--border));
}

.topic-switch__label {
  margin-right: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

/* ==========================================================================
   Simple content pages (about / contact / legal)
   ========================================================================== */

.page-hero {
  padding-block: 3.5rem 2.5rem;
  text-align: center;
}

.page-hero__emoji {
  font-size: 2.75rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.page-hero__title {
  font-size: clamp(1.875rem, 4.5vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.page-hero__sub {
  max-width: 40rem;
  margin-inline: auto;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

.pillars {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-block: 3rem;
}

.pillar {
  padding: 1.5rem;
  text-align: center;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pillar__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 1rem;
  border-radius: var(--radius);
  color: #fff;
  background-image: linear-gradient(to bottom right, var(--g-from), var(--g-to));
}

.pillar__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pillar__text {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}

.prose {
  max-width: 44rem;
  margin-inline: auto;
}

.prose h2 {
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
}

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

.prose p {
  font-size: 1rem;
  line-height: 1.75;
  color: hsl(var(--foreground) / 0.82);
}

.prose p + p {
  margin-top: 1.125rem;
}

/* Inline prose links only — must not restyle buttons placed inside .prose. */
.prose a:not(.btn) {
  color: hsl(var(--primary));
  font-weight: 500;
}

.prose a:not(.btn):hover {
  text-decoration: underline;
}

.prose__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}

.updated-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 26rem;
  margin: 0 auto 3rem;
  padding: 1.25rem 1.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  color: #fff;
  background: var(--gradient-rail);
}

.contact-card__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.contact-card__value {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--primary));
}

.info-list {
  display: grid;
  gap: 1rem;
  max-width: 44rem;
  margin-inline: auto;
}

.info-item {
  padding: 1.375rem 1.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-item__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.info-item__text {
  font-size: 0.875rem;
  line-height: 1.65;
  color: hsl(var(--muted-foreground));
}

.callout {
  display: flex;
  gap: 0.875rem;
  max-width: 44rem;
  margin: 3rem auto 0;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: hsl(var(--accent) / 0.07);
  border: 1px solid hsl(var(--accent) / 0.2);
}

.callout svg {
  color: hsl(var(--accent));
  margin-top: 0.15rem;
}

.callout__title {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.callout__text {
  font-size: 0.875rem;
  line-height: 1.65;
  color: hsl(var(--foreground) / 0.75);
}

/* ==========================================================================
   404
   ========================================================================== */

.notfound {
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 6rem;
}

.notfound__code {
  font-family: var(--font-sans);
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-rail);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: hsl(var(--secondary));
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__top {
  display: grid;
  gap: 2.5rem;
  padding-block: 3.5rem;
}

@media (min-width: 768px) {
  .site-footer__top {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}

.site-footer__tagline {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  max-width: 18rem;
}

.footer-col__title {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1rem;
}

.footer-col li + li {
  margin-top: 0.625rem;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.16s ease;
}

.footer-col a:hover {
  color: #fff;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.site-footer__made {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.site-footer__made svg {
  color: #5eead4;
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .site-header,
  .site-footer,
  .related,
  .cta-band,
  .article__back,
  .skip-link {
    display: none;
  }

  body {
    background: #fff;
  }

  .js .faq__a {
    display: block;
  }
}
