@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --paper: #f6f7f2;
  --paper-2: #e9ede4;
  --ink: #111316;
  --ink-2: #1d2127;
  --graphite: #252a31;
  --muted: #626872;
  --line: #d2d8ce;
  --line-strong: #111316;
  --white: #fffefa;
  --teal: #00bea7;
  --teal-dark: #008f7e;
  --teal-2: #5ee8ce;
  --teal-soft: #d9f8f1;
  --coral: #f05d43;
  --amber: #f3b33d;
  --blue: #2f6fff;
  --shadow: 10px 10px 0 rgba(17, 19, 22, 0.11);
  --shadow-soft: 6px 6px 0 rgba(17, 19, 22, 0.1);
  --radius: 8px;
  --container: 1220px;
  --narrow: 980px;
  --nav-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background-image:
    linear-gradient(rgba(17, 19, 22, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 22, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.86), transparent 86%);
}

body::after {
  background-image: repeating-linear-gradient(
    -18deg,
    transparent 0,
    transparent 24px,
    rgba(17, 19, 22, 0.028) 25px,
    rgba(17, 19, 22, 0.028) 26px
  );
  mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.54) 14%, transparent 74%);
}

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

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

h1,
h2,
h3,
summary {
  max-width: 100%;
  margin: 0;
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 {
  max-width: 900px;
  margin-top: 18px;
  font-size: clamp(2.35rem, 6vw, 4.45rem);
  line-height: 0.98;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.55rem, 3.8vw, 2.45rem);
  line-height: 1.08;
  font-weight: 800;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.28;
  font-weight: 800;
}

p,
li {
  color: var(--muted);
  line-height: 1.68;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 10px 0 0;
  padding-left: 22px;
}

strong {
  color: var(--ink);
}

.container,
.wrap,
.page {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.wrap {
  max-width: var(--narrow);
  padding: 28px 0 52px;
}

.page {
  padding: 30px 0 56px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 247, 242, 0.91);
  border-bottom: 1px solid rgba(17, 19, 22, 0.15);
  backdrop-filter: blur(18px);
}

.topbar {
  min-height: var(--nav-height);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--white);
  background: var(--ink);
  box-shadow: inset 7px 0 0 var(--teal), inset -7px 0 0 var(--coral);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.86rem;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1.02rem;
  font-weight: 800;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.85rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  background: var(--paper-2);
}

.button,
.chip,
.link-card,
.category-link,
.article-card,
.panel-link {
  border-radius: var(--radius);
}

.button,
.link-card {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  font-weight: 800;
  font-size: 0.96rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible,
.link-card:hover,
.link-card:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(17, 19, 22, 0.16);
}

.button::after {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  flex: none;
}

.button-primary {
  color: var(--white);
  background: var(--ink);
  box-shadow: 6px 6px 0 var(--teal);
}

.button-secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--ink);
}

.button-ghost {
  background: var(--white);
  box-shadow: none;
}

.header-cta {
  min-height: 44px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.breadcrumbs a,
article.content a,
.section a:not(.button):not(.article-card):not(.category-link):not(.panel-link),
.toc a,
.card a,
.note-card a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.eyebrow,
.section-tag,
.step-label,
.step-tag,
.panel-tag,
.signal-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(17, 19, 22, 0.16);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--paper-2);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead,
.subtitle,
p.hero-copy {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.72;
}

.hero {
  padding: 46px 0 38px;
  border-bottom: 1px solid rgba(17, 19, 22, 0.14);
}

.page > .hero {
  padding: 8px 0 28px;
  border-bottom: 1px solid rgba(17, 19, 22, 0.14);
}

.wrap > header,
.wrap > .hero,
.wrap > section,
.wrap > article.content,
.wrap > footer,
.page > section,
.page > footer {
  border: 1px solid rgba(17, 19, 22, 0.14);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.wrap > header,
.wrap > .hero,
.wrap > section,
.wrap > article.content,
.page > section {
  padding: 28px;
}

.wrap > section,
.wrap > article.content,
.page > section,
.wrap > footer,
.page > footer {
  margin-top: 18px;
}

.wrap > footer,
.page > footer,
.site-footer {
  padding: 20px;
  color: var(--muted);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 28px;
  align-items: start;
}

.page .hero-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.hero-copy,
.hero-panel,
.platform-card,
.signal-card,
.topbar > *,
.grid > *,
.benefit-grid > *,
.entry-grid > *,
.steps > *,
.notes > *,
.point-grid > *,
.article-grid > *,
.category-menu > *,
.faq-grid > * {
  min-width: 0;
}

.hero-actions,
.actions,
.links,
.card-actions,
.cta-actions,
.footer-links,
.chips,
.panel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-points,
.grid,
.benefit-grid,
.entry-grid,
.steps,
.notes,
.point-grid,
.article-grid,
.category-menu,
.faq-grid {
  display: grid;
  gap: 14px;
}

.hero-points {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.grid,
.benefit-grid,
.entry-grid,
.notes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps,
.point-grid,
.article-grid,
.category-menu,
.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.platform-card,
.signal-card,
.hero-panel,
.benefit-card,
.entry-card,
.card,
.step-card,
.note-card,
.point-card,
.article-card,
.category-link,
.toc,
.callout,
.note,
.faq details,
.faq-item,
.next-article-card,
.meta-card,
.panel-item,
.panel-link,
.cta-panel {
  border: 1px solid rgba(17, 19, 22, 0.14);
  border-radius: var(--radius);
  background: var(--paper);
}

.platform-card,
.signal-card,
.hero-panel,
.benefit-card,
.entry-card,
.card,
.step-card,
.note-card,
.point-card,
.article-card,
.category-link,
.toc,
.callout,
.note,
.faq details,
.faq-item,
.next-article-card,
.meta-card,
.panel-item,
.panel-link,
.cta-panel {
  padding: 18px;
}

.hero-panel,
.signal-card,
.benefit-card.emphasis,
.entry-card.emphasis,
.callout,
.next-article-card,
.cta-panel {
  background: var(--paper-2);
  border-color: rgba(17, 19, 22, 0.22);
}

.panel-head {
  display: grid;
  gap: 12px;
}

.panel-head p,
.benefit-card p,
.entry-card p,
.card p,
.step-card p,
.note-card p,
.point-card p,
.article-card p,
.category-link span,
.next-article-card p {
  margin-top: 10px;
}

.panel-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.panel-item {
  display: grid;
  gap: 6px;
  background: var(--white);
}

.panel-item span,
.panel-link span span {
  color: var(--muted);
  line-height: 1.55;
}

.panel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  color: var(--ink);
  background: var(--white);
}

.panel-link > span {
  display: grid;
  gap: 4px;
}

.panel-link em {
  flex: none;
  color: var(--coral);
  font-style: normal;
  font-weight: 800;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  background: var(--white);
  font-weight: 800;
}

.step-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.step-number,
.note-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--teal-2);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 800;
}

.step-highlight {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(17, 19, 22, 0.16);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink-2);
  line-height: 1.58;
  font-weight: 700;
}

.extra-header,
.section-head,
.cta-panel,
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.section-head {
  grid-template-columns: 1fr;
  margin-bottom: 18px;
}

.section {
  padding: 44px 0;
  border-bottom: 1px solid rgba(17, 19, 22, 0.12);
}

.section:last-child {
  border-bottom: 0;
}

.section .container > p,
.section-head p,
.extra-header p {
  max-width: 820px;
}

.article-card,
.category-link,
.next-article-card {
  display: grid;
  gap: 8px;
  color: var(--ink);
}

.article-card:hover,
.article-card:focus-visible,
.category-link:hover,
.category-link:focus-visible,
.next-article-card:hover,
.next-article-card:focus-visible {
  border-color: var(--ink);
  background: #eefdf7;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.meta span,
.article-card .meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(17, 19, 22, 0.14);
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.meta-card {
  flex: 1 1 220px;
  background: var(--white);
}

.meta-label {
  margin-bottom: 4px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

article.content h2 {
  margin-top: 34px;
  margin-bottom: 12px;
}

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

article.content h3 {
  margin-top: 22px;
}

article.content p + p,
article.content p + ul,
article.content p + ol,
article.content ul + p,
article.content ol + p {
  margin-top: 12px;
}

.toc {
  margin-bottom: 24px;
}

.toc strong {
  display: block;
  margin-bottom: 8px;
}

.callout,
.note {
  margin-top: 22px;
}

.faq details,
.faq-item {
  margin-top: 10px;
}

.faq summary,
.faq-item summary {
  cursor: pointer;
  font-weight: 800;
}

.faq p,
.faq-item p {
  margin-top: 10px;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-left: 0;
  list-style: none;
}

.checklist li {
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(17, 19, 22, 0.14);
  border-radius: var(--radius);
  background: var(--paper);
}

.site-footer {
  background: var(--graphite);
  color: var(--white);
}

.site-footer a,
.site-footer span {
  color: var(--white);
}

.global-header .nav-bar {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.global-header .brand {
  min-width: max-content;
}

.global-header .desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-left: auto;
}

.global-header .desktop-nav a {
  padding: 10px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 800;
}

.global-header .desktop-nav a:hover,
.global-header .desktop-nav a:focus-visible,
.global-header a[aria-current="page"] {
  color: var(--ink);
  background: var(--paper-2);
}

.global-header .header-buy {
  flex: none;
  min-height: 46px;
  padding-inline: 18px;
}

.mobile-menu-button {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 800;
}

.global-header .mobile-nav {
  display: none;
  padding-bottom: 14px;
}

.global-header .mobile-nav.open {
  display: grid;
}

.global-header .mobile-nav a {
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.global-footer {
  margin-top: 32px;
  padding: 38px 0;
  border-top: 1px solid var(--ink);
  background: var(--ink);
}

.global-footer .footer-grid {
  grid-template-columns: minmax(320px, 1.15fr) minmax(0, 0.85fr);
  align-items: start;
}

.footer-legal {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-legal strong {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--white);
  font-size: 1.05rem;
}

.global-footer .footer-links {
  justify-content: flex-end;
  margin-top: 0;
}

.global-footer .footer-links a {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  font-size: 0.86rem;
  font-weight: 800;
}

.global-footer .footer-links a:hover,
.global-footer .footer-links a:focus-visible {
  border-color: var(--teal-2);
  color: var(--teal-2);
}

.wrap > header,
.wrap > .hero,
.wrap > section,
.wrap > article.content,
.page > section {
  box-shadow: 8px 8px 0 rgba(17, 19, 22, 0.1);
}

.wrap > header {
  position: relative;
  overflow: hidden;
}

.wrap > header::after,
.page > .hero::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -92px;
  top: -92px;
  border: 1px solid rgba(17, 19, 22, 0.14);
  border-radius: 50%;
  background: var(--teal-soft);
  box-shadow: inset 0 0 0 30px rgba(0, 190, 167, 0.08);
  pointer-events: none;
}

.page > .hero {
  position: relative;
  overflow: hidden;
}

.wrap > header > *,
.page > .hero > * {
  position: relative;
  z-index: 1;
}

.article-card,
.category-link,
.step-card,
.note-card,
.point-card,
.card,
.platform-card,
.signal-card {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.article-card:hover,
.category-link:hover,
.step-card:hover,
.note-card:hover,
.point-card:hover,
.card:hover,
.platform-card:hover,
.signal-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(17, 19, 22, 0.1);
}

.not-found-page {
  display: block;
  padding: 0;
}

.not-found-card {
  width: min(100%, 720px);
  min-height: 360px;
  margin: 64px auto;
  padding: 34px;
  border: 1px solid rgba(17, 19, 22, 0.14);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.not-found-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.not-found-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero-grid,
  .page .hero-grid,
  .grid,
  .benefit-grid,
  .entry-grid,
  .steps,
  .notes,
  .point-grid,
  .article-grid,
  .next-articles-grid,
  .category-menu,
  .faq-grid,
  .extra-header,
  .cta-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .global-header .desktop-nav {
    gap: 0;
  }

  .global-header .desktop-nav a {
    padding-inline: 7px;
    font-size: 0.82rem;
  }

  .global-footer .footer-grid {
    grid-template-columns: 1fr;
  }

  .global-footer .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .container,
  .wrap,
  .page {
    width: min(calc(100% - 20px), var(--container));
  }

  .wrap,
  .page {
    padding-top: 20px;
    padding-bottom: 38px;
  }

  .topbar {
    justify-content: center;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .nav {
    width: 100%;
  }

  .nav a {
    padding: 8px 9px;
    font-size: 0.86rem;
  }

  .hero,
  .section {
    padding: 30px 0;
  }

  .wrap > header,
  .wrap > .hero,
  .wrap > section,
  .wrap > article.content,
  .page > section,
  .not-found-card {
    padding: 20px;
  }

  h1 {
    font-size: clamp(2.1rem, 12vw, 3.35rem);
  }

  .hero-points,
  .checklist {
    grid-template-columns: 1fr;
  }

  .button,
  .link-card {
    width: 100%;
  }

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

@media (max-width: 820px) {
  body.menu-open {
    overflow: hidden;
  }

  .global-header .nav-bar {
    min-height: 68px;
    gap: 10px;
  }

  .global-header .brand {
    width: auto;
    margin-right: auto;
    justify-content: flex-start;
  }

  .global-header .brand-copy span {
    display: none;
  }

  .global-header .desktop-nav {
    display: none;
  }

  .global-header .header-buy {
    min-height: 42px;
    padding-inline: 14px;
    font-size: 0.86rem;
  }

  .global-header .header-buy::after {
    display: none;
  }

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
  }

  .global-header .mobile-nav.open {
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
}

@media (max-width: 430px) {
  .global-header .brand-mark {
    width: 40px;
    height: 40px;
  }

  .global-header .brand-copy strong {
    font-size: 0.92rem;
  }

  .global-header .header-buy {
    min-height: 40px;
    padding-inline: 10px;
    box-shadow: 4px 4px 0 var(--teal);
  }
}

/*
 * Homepage design parity layer.
 *
 * The production homepage carries the approved soft-surface visual system in
 * its final inline stylesheet. Internal pages share this layer so navigation,
 * typography, actions, cards and legal/article layouts feel like one product.
 */
:root {
  --paper: #fbfafd;
  --paper-2: #f3f2f8;
  --ink: #15141b;
  --ink-2: #24222d;
  --graphite: #0b0e14;
  --muted: #6c6975;
  --line: #dedce7;
  --line-strong: #c9c5d3;
  --white: #ffffff;
  --teal: #58bfa2;
  --teal-dark: #258b70;
  --teal-2: #8bd6c1;
  --teal-soft: #e7f7f1;
  --coral: #ee7997;
  --amber: #f5c96f;
  --blue: #6f4bf2;
  --violet: #6f4bf2;
  --violet-dark: #5936df;
  --violet-soft: #eee9ff;
  --shadow: 0 18px 50px rgba(32, 25, 67, 0.08);
  --shadow-soft: 0 10px 32px rgba(32, 25, 67, 0.055);
  --radius: 16px;
  --container: 1240px;
  --narrow: 1000px;
  --nav-height: 72px;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(111, 75, 242, 0.08), transparent 23rem),
    radial-gradient(circle at 88% 18%, rgba(88, 191, 162, 0.09), transparent 25rem),
    var(--paper);
  background-attachment: fixed;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

body::before,
body::after {
  content: none;
}

:focus-visible {
  outline-color: var(--violet);
}

h1,
h2,
h3,
summary {
  letter-spacing: -0.035em;
}

h1 {
  margin-top: 20px;
  font-size: clamp(2.7rem, 5.5vw, 4.7rem);
  line-height: 1;
  letter-spacing: -0.07em;
}

h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

h3 {
  letter-spacing: -0.03em;
}

p,
li {
  color: var(--muted);
}

.container,
.wrap,
.page {
  width: min(calc(100% - 48px), var(--container));
}

.wrap {
  padding: 54px 0 72px;
}

.page {
  padding: 54px 0 72px;
}

.site-header {
  border-bottom-color: rgba(21, 20, 27, 0.08);
  background: rgba(251, 250, 253, 0.92);
  box-shadow: 0 1px 0 rgba(21, 20, 27, 0.03);
}

.global-header .nav-bar {
  min-height: 72px;
}

.brand,
.global-header .brand {
  gap: 11px;
}

.brand-mark,
.global-header .brand-mark {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #7f61f5, #5f3de1);
  box-shadow: 0 9px 24px rgba(111, 75, 242, 0.26);
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  letter-spacing: -0.03em;
}

.brand-copy strong,
.global-header .brand-copy strong {
  font-size: 1.02rem;
  letter-spacing: -0.025em;
}

.brand-copy span,
.global-header .brand-copy span {
  display: none;
}

.global-header .desktop-nav {
  gap: 2px;
}

.global-header .desktop-nav a {
  padding: 9px 10px;
  color: #625f6b;
  font-size: 0.8rem;
  font-weight: 650;
}

.global-header .desktop-nav a:hover,
.global-header .desktop-nav a:focus-visible,
.global-header a[aria-current="page"] {
  color: var(--violet-dark);
  background: var(--violet-soft);
}

.button,
.link-card {
  min-height: 46px;
  padding-inline: 20px;
  border-color: transparent;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 750;
  box-shadow: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button::after {
  content: none;
  display: none;
}

.button:hover,
.button:focus-visible,
.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  border-color: var(--violet);
  background: var(--violet);
  box-shadow: 0 10px 24px rgba(111, 75, 242, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  border-color: var(--violet-dark);
  background: var(--violet-dark);
  box-shadow: 0 13px 28px rgba(111, 75, 242, 0.3);
}

.button-secondary,
.button-ghost,
.link-card {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(32, 25, 67, 0.06);
}

.global-header .header-buy {
  min-height: 46px;
}

.mobile-menu-button {
  border-color: var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(32, 25, 67, 0.06);
}

.global-header .mobile-nav {
  padding-bottom: 16px;
}

.global-header .mobile-nav a {
  border-bottom-color: var(--line);
  color: #57545f;
  font-size: 0.9rem;
  font-weight: 650;
}

.breadcrumbs {
  margin-bottom: 22px;
  color: #85818d;
  font-size: 0.84rem;
  font-weight: 650;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--violet-dark);
}

.eyebrow,
.section-tag,
.card-kicker,
.meta-label,
.signal-label {
  font-family: "Inter", sans-serif;
  font-weight: 750;
  letter-spacing: 0.09em;
}

.eyebrow,
.section-tag,
.signal-label {
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--violet-dark);
  background: transparent;
  box-shadow: none;
}

.eyebrow::before,
.section-tag::before,
.signal-label::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(88, 191, 162, 0.13);
  content: "";
}

.lead,
p.hero-copy {
  max-width: 780px;
  color: #6a6671;
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero,
.section {
  border-color: rgba(21, 20, 27, 0.07);
}

.page > .hero,
.page > section,
.wrap > header,
.wrap > .hero,
.wrap > section,
.wrap > article.content {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.page > .hero,
.wrap > header,
.wrap > .hero {
  padding: clamp(26px, 4vw, 48px);
  background:
    radial-gradient(circle at 92% 4%, rgba(111, 75, 242, 0.12), transparent 18rem),
    radial-gradient(circle at 4% 96%, rgba(88, 191, 162, 0.1), transparent 16rem),
    rgba(255, 255, 255, 0.91);
}

.wrap > header::after,
.page > .hero::after {
  content: none;
}

.page > section,
.wrap > section,
.wrap > article.content {
  padding: clamp(24px, 3.2vw, 38px);
}

.page > section + section,
.wrap > section + section,
.wrap > article.content + section,
.wrap > section + article.content {
  margin-top: 18px;
}

.next-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.next-articles > h2 {
  margin-bottom: 28px;
}

.next-articles-grid .next-article-card {
  min-width: 0;
  height: 100%;
  padding: 26px;
}

/*
 * Keep dense content groups visually separate from the copy or controls that
 * introduce them. These combinations recur across the article library,
 * support page and instruction page.
 */
.actions + .category-menu {
  margin-top: 28px;
}

article.content p + .point-grid,
.wrap > section > h2 + .grid,
.extra-header + .notes {
  margin-top: 18px;
}

.hero-grid,
.page .hero-grid {
  gap: 28px;
}

.hero-actions,
.actions,
.card-actions {
  gap: 10px;
}

.hero-actions {
  margin-top: 28px;
}

.hero-panel,
.signal-card,
.benefit-card,
.entry-card,
.card,
.step-card,
.note-card,
.point-card,
.article-card,
.category-link,
.faq-item,
.next-article-card,
.meta-card,
.panel-item,
.panel-link,
.platform-card,
.cta-panel,
.toc,
.callout,
.note {
  border-color: var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 32px rgba(32, 25, 67, 0.045);
}

.hero-panel,
.signal-card,
.benefit-card.emphasis,
.entry-card.emphasis,
.callout,
.next-article-card,
.cta-panel {
  border-color: #d9d3ef;
  background: linear-gradient(145deg, #f3efff, #ffffff);
}

.article-card:hover,
.article-card:focus-visible,
.category-link:hover,
.category-link:focus-visible,
.next-article-card:hover,
.next-article-card:focus-visible,
.step-card:hover,
.note-card:hover,
.point-card:hover,
.card:hover,
.platform-card:hover,
.signal-card:hover {
  border-color: #cfc8e8;
  background: #fff;
  box-shadow: 0 16px 38px rgba(32, 25, 67, 0.08);
  transform: translateY(-2px);
}

.chip,
.meta span,
.article-card .meta span {
  border-color: #d8d3e5;
  border-radius: 999px;
  color: var(--violet-dark);
  background: var(--violet-soft);
  font-family: "Inter", sans-serif;
  font-weight: 700;
}

.step-number,
.note-index {
  border: 0;
  border-radius: 12px;
  color: var(--violet);
  background: var(--violet-soft);
  box-shadow: none;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
}

.step-card:nth-child(2) .step-number,
.note-card:nth-child(2) .note-index {
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.step-card:nth-child(3) .step-number,
.note-card:nth-child(3) .note-index {
  color: #ad7418;
  background: #fff4dd;
}

.step-card:nth-child(4) .step-number,
.note-card:nth-child(4) .note-index {
  color: #c44d72;
  background: #fceaf0;
}

.panel-link em,
.platform-card a,
article.content a,
.section a:not(.button):not(.article-card):not(.category-link):not(.panel-link),
.toc a,
.card a,
.note-card a {
  color: var(--violet-dark);
}

.step-highlight,
.checklist li,
.pricing-note {
  border-color: var(--line);
  border-radius: 14px;
  background: #f7f6fa;
}

.faq details,
.faq-item {
  border-color: var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(32, 25, 67, 0.035);
}

.faq summary::after {
  color: var(--violet);
}

.cta-panel {
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at 84% 20%, rgba(255, 255, 255, 0.18), transparent 15rem),
    linear-gradient(145deg, #7857ee, #5e3bdc);
  box-shadow: 0 24px 56px rgba(111, 75, 242, 0.22);
}

.cta-panel h2,
.cta-panel h3,
.cta-panel strong {
  color: #fff;
}

.cta-panel p,
.cta-panel li {
  color: rgba(255, 255, 255, 0.78);
}

.cta-panel .button-primary,
.cta-panel .button-secondary {
  color: var(--violet-dark);
  border-color: #fff;
  background: #fff;
  box-shadow: 0 10px 24px rgba(39, 22, 101, 0.2);
}

.global-footer {
  margin-top: 48px;
  padding: 48px 0;
  border-top: 0;
  color: #f7f8fb;
  background: #0b0e14;
}

.footer-legal {
  color: #b7b9c1;
}

.global-footer .footer-links a {
  border-color: rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  color: #f4f5f7;
  font-size: 0.82rem;
  font-weight: 650;
}

.global-footer .footer-links a:hover,
.global-footer .footer-links a:focus-visible {
  border-color: rgba(158, 136, 255, 0.7);
  color: #c8baff;
  background: rgba(111, 75, 242, 0.12);
}

.not-found-card {
  border-color: var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 0%, rgba(111, 75, 242, 0.12), transparent 18rem),
    #fff;
  box-shadow: var(--shadow);
}

.not-found-nav a {
  border-color: var(--line);
  border-radius: 12px;
  background: var(--violet-soft);
  color: var(--violet-dark);
}

@media (max-width: 820px) {
  .container,
  .wrap,
  .page {
    width: min(calc(100% - 32px), var(--container));
  }

  .wrap,
  .page {
    padding-top: 30px;
    padding-bottom: 52px;
  }

  .global-header .nav-bar {
    min-height: 68px;
  }

  .global-header .header-buy {
    min-height: 42px;
  }

  .page > .hero,
  .page > section,
  .wrap > header,
  .wrap > .hero,
  .wrap > section,
  .wrap > article.content {
    border-radius: 18px;
  }
}

@media (max-width: 560px) {
  .container,
  .wrap,
  .page {
    width: min(calc(100% - 20px), var(--container));
  }

  .wrap,
  .page {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .page > .hero,
  .wrap > header,
  .wrap > .hero,
  .page > section,
  .wrap > section,
  .wrap > article.content,
  .not-found-card {
    padding: 22px;
    border-radius: 16px;
  }

  h1 {
    font-size: clamp(2.25rem, 12vw, 3.35rem);
  }

  .global-header .header-buy {
    display: none;
  }

  .button,
  .link-card {
    width: 100%;
  }

  .global-footer {
    margin-top: 32px;
    padding: 38px 0;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
