@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap");

:root {
  color-scheme: light;
  --ink: #0F1B33;
  --ink-soft: #2E3A52;
  --muted: #5B6680;
  --paper: #F5F5F7;
  --paper-strong: #FFFFFF;
  --line: #E2E8F3;
  --brand: #0071E3;
  --brand-dark: #005BB5;
  --brand-soft: #EAF4FF;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "ss01", "cv11", "calt";
  font-variant-ligatures: contextual;
  letter-spacing: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

::selection {
  background: var(--brand);
  color: #fff;
}

.section-shell {
  margin-inline: auto;
  width: calc(100% - 32px);
  max-width: 1200px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
}

.site-header__inner {
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.site-brand:hover {
  text-decoration: none;
}

.site-brand img {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 8px;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms ease;
}

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

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.download-button {
  display: inline-flex;
  height: 40px;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 150ms ease, transform 150ms ease;
}

.download-button:hover {
  background: var(--brand-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.download-button svg {
  width: 15px;
  height: 15px;
}

.menu-toggle {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle__lines {
  display: grid;
  width: 16px;
  gap: 4px;
}

.menu-toggle__lines span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: opacity 150ms ease, transform 150ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
}

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

.mobile-nav__inner {
  display: grid;
  padding: 8px 0;
}

.mobile-nav a {
  border-radius: 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  padding: 12px 8px;
  text-decoration: none;
}

.legal-main {
  padding: 112px 0 88px;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: 0;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 800;
  line-height: 0.98;
}

h2 {
  margin: 44px 0 10px;
  font-size: 24px;
  font-weight: 750;
  line-height: 1.15;
}

h3 {
  margin: 28px 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

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

p {
  margin: 0 0 16px;
}

.muted {
  color: var(--muted);
  font-size: 15px;
}

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

li {
  margin-bottom: 7px;
}

strong {
  color: var(--ink);
  font-weight: 700;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}

.note {
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: 0 1px 2px rgba(15, 27, 51, 0.04),
              0 8px 32px -8px rgba(15, 27, 51, 0.08);
  color: var(--ink-soft);
  font-size: 15px;
  padding: 16px 18px;
}

.article-main {
  padding: 88px 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 28px;
}

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

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

.article-hero,
.article-index-hero {
  padding: 28px 0 56px;
}

.article-hero__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.article-eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-hero h1,
.article-index-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: 44px;
  font-weight: 850;
  line-height: 1;
}

.article-summary,
.article-index-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.article-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 5px 10px;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.keyword-list li {
  margin: 0;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.article-hero__media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px -30px rgba(15, 27, 51, 0.35);
  overflow: hidden;
  padding: 10px;
}

.article-hero__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  background: var(--paper);
  object-fit: cover;
}

.article-layout {
  display: grid;
  gap: 36px;
  align-items: start;
  padding-bottom: 88px;
}

.article-body {
  max-width: 760px;
}

.article-body section + section {
  margin-top: 42px;
}

.article-body h2,
.article-sidebar h2 {
  margin: 0 0 12px;
  font-size: 25px;
  line-height: 1.18;
}

.article-body p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.78;
}

/* Comparison tables inside article bodies. The wrapper scrolls horizontally on
   narrow screens so wide tables never overflow the layout. */
.article-table-wrap {
  margin: 24px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
  background: var(--paper-strong);
}

.article-table th,
.article-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.article-table th + th,
.article-table td + td {
  border-left: 1px solid var(--line);
}

.article-table thead th {
  background: var(--brand-soft);
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.article-table tbody td {
  color: var(--ink-soft);
}

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

.article-table tbody tr:nth-child(even) {
  background: var(--paper);
}

.takeaway-box,
.sidebar-panel,
.article-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 27, 51, 0.04),
              0 8px 32px -8px rgba(15, 27, 51, 0.08);
}

.takeaway-box {
  padding: 22px;
}

.takeaway-box ul {
  margin: 0;
}

.takeaway-box li {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.faq-section details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px 18px;
}

.faq-section details + details {
  margin-top: 12px;
}

.faq-section summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.faq-section details p {
  margin: 12px 0 0;
  font-size: 16px;
}

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

.source-section li {
  display: grid;
  gap: 4px;
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.source-section li:first-child {
  border-top: 0;
}

.source-section a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.source-section a:hover {
  color: var(--brand);
}

.source-section span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.article-cta {
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 26px;
}

.article-cta h2,
.article-cta p {
  color: #fff;
}

.article-cta p {
  max-width: 560px;
}

.article-cta .download-button {
  margin-top: 6px;
}

.article-sidebar {
  display: grid;
  gap: 16px;
}

.sidebar-panel {
  padding: 20px;
}

.sidebar-panel h2 {
  font-size: 17px;
}

.sidebar-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.sidebar-list {
  margin: 0;
  padding-left: 18px;
}

.sidebar-list li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-list li {
  display: grid;
  gap: 3px;
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 13px 0;
}

.related-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.related-list li:last-child {
  padding-bottom: 0;
}

.related-list a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.related-list a:hover {
  color: var(--brand);
}

.related-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.article-index-grid {
  display: grid;
  gap: 16px;
  padding-bottom: 88px;
}

.article-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  color: var(--ink);
  padding: 22px;
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.article-card:hover {
  border-color: #bcd1f0;
  box-shadow: 0 18px 42px -28px rgba(15, 27, 51, 0.35);
  text-decoration: none;
  transform: translateY(-2px);
}

.article-card__keyword {
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-card h2 {
  margin: 14px 0 10px;
  font-size: 24px;
  line-height: 1.15;
}

.article-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.article-card__meta {
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 48px 0 32px;
}

.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.site-footer__brand {
  max-width: 420px;
}

.site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.site-footer__logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.site-footer__brand p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.site-footer__downloads {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  margin-top: 20px;
}

.site-footer__download {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 12px -6px rgba(15, 27, 51, 0.45);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.site-footer__download:hover {
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 8px 16px -10px rgba(15, 27, 51, 0.55);
}

.site-footer__download--play {
  background: #eaf8ef;
  color: #168a45;
}

.site-footer__download svg {
  width: 18px;
  height: 18px;
}

.site-footer__download span {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  border-radius: 999px;
  background: var(--brand);
  padding: 1px 5px;
  color: #fff;
  font-size: 7px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 2px 5px -2px rgba(0, 113, 227, 0.7);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.site-footer__links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.site-footer__links a:hover {
  color: var(--brand);
}

.site-footer__bottom {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: var(--muted);
  font-size: 12px;
}

@media (min-width: 640px) {
  .section-shell {
    width: calc(100% - 48px);
  }
}

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

  .menu-toggle,
  .mobile-nav {
    display: none;
  }

  .site-footer__top {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .article-hero h1,
  .article-index-hero h1 {
    font-size: 58px;
  }

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

@media (min-width: 1024px) {
  .article-hero__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  }

  .article-layout {
    grid-template-columns: minmax(0, 760px) minmax(260px, 1fr);
  }

  .article-sidebar {
    position: sticky;
    top: 96px;
  }

  .article-index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .download-button {
    padding-inline: 12px;
  }

  .download-button span {
    display: none;
  }

  .article-hero h1,
  .article-index-hero h1 {
    font-size: 36px;
  }

  .article-summary,
  .article-index-hero p,
  .article-body p {
    font-size: 16px;
  }
}
