:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #1a2332;
  --text-muted: #5c6b7f;
  --border: #e2e8f0;
  --accent: #2962ff;
  --accent-soft: rgba(41, 98, 255, 0.1);
  --radius: 12px;
  --shadow: 0 8px 30px rgba(26, 35, 50, 0.08);
  --font-sans: "PingFang SC", "PingFang TC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", ui-sans-serif, system-ui, sans-serif;
  --content-width: 42rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 3.25rem);
}

.page-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 48%, #0f172a 100%);
  color: #f1f5f9;
  padding: clamp(2rem, 5vw, 3.25rem) 1.25rem clamp(2.5rem, 6vw, 4rem);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse 80% 50% at 80% -20%,
      rgba(41, 98, 255, 0.35),
      transparent
    ),
    radial-gradient(
      ellipse 60% 40% at 10% 100%,
      rgba(56, 189, 248, 0.12),
      transparent
    );
  pointer-events: none;
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 0.75rem;
}

h1.article-title {
  font-size: clamp(1.5rem, 4vw, 2.125rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 1rem;
  max-width: 22em;
}

.meta-desc {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(241, 245, 249, 0.88);
  max-width: 42rem;
  margin: 0;
}

.doc-meta {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: rgba(241, 245, 249, 0.72);
}

.doc-meta time {
  font-variant-numeric: tabular-nums;
}

.skip-link {
  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:focus {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.6rem 1rem;
  clip: auto;
  overflow: visible;
  white-space: normal;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--accent);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

@media (min-width: 920px) {
  .layout {
    grid-template-columns: 260px minmax(0, var(--content-width));
    align-items: start;
    gap: 3rem;
    padding: 2.5rem 1.5rem 4rem;
  }
}

.toc-panel {
  display: none;
  position: sticky;
  top: 1.25rem;
}

@media (min-width: 920px) {
  .toc-panel {
    display: block;
  }
}

.toc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: var(--shadow);
}

.toc-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

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

.toc-list > li {
  margin: 0;
}

.toc-list a {
  display: block;
  padding: 0.45rem 0.35rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.toc-list a:hover,
.toc-list a:focus-visible {
  background: var(--accent-soft);
  color: var(--accent);
}

.toc-list a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.toc-depth-2 a {
  padding-left: 0.85rem;
  font-weight: 500;
}

.toc-depth-3 a {
  padding-left: 1.35rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 400;
}

details.mobile-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (min-width: 920px) {
  details.mobile-toc {
    display: none;
  }
}

details.mobile-toc summary {
  padding: 1rem 1.15rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

details.mobile-toc summary::-webkit-details-marker {
  display: none;
}

details.mobile-toc summary::after {
  content: "▾";
  float: right;
  opacity: 0.55;
}

details.mobile-toc[open] summary::after {
  transform: rotate(180deg);
}

details.mobile-toc .toc-list {
  padding: 0 1rem 1rem;
}

.article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.75rem);
  box-shadow: var(--shadow);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.article .lead {
  font-size: 1.125rem;
  font-weight: 600;
}

.article p {
  margin: 0 0 1.1em;
}

.article p:last-child {
  margin-bottom: 0;
}

.article strong {
  font-weight: 600;
}

h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2.25rem 0 0.85rem;
  line-height: 1.35;
  scroll-margin-top: 5.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.article > section:first-of-type > h2,
.article > h2:first-child {
  margin-top: 0;
  padding-top: 0;
}

.intro-block h2 {
  border-bottom: none;
  margin-top: 0;
}

h3 {
  font-size: 1.1rem;
  font-weight: 650;
  margin: 1.6rem 0 0.6rem;
  line-height: 1.45;
  scroll-margin-top: 5rem;
}

.note-box {
  background: linear-gradient(
    120deg,
    var(--accent-soft) 0%,
    transparent 55%
  );
  border-left: 4px solid var(--accent);
  padding: 1rem 1.15rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.25rem 0;
}

.note-box p:last-child {
  margin-bottom: 0;
}

ul.plain-list {
  margin: 0 0 1.25em;
  padding-left: 1.35rem;
}

ul.plain-list li {
  margin-bottom: 0.45em;
}

.table-caption {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 1.35rem 0 0.5rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0 1.5rem;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafbfd;
}

.article table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.94rem;
  line-height: 1.55;
}

.article th,
.article td {
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0.85rem;
  vertical-align: top;
  text-align: left;
}

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

.article thead th {
  background: linear-gradient(180deg, #eef2fb 0%, #e8edf7 100%);
  font-weight: 650;
}

.article tbody th {
  font-weight: 600;
  background: rgba(241, 245, 251, 0.65);
  width: 9em;
}

.user-card-grid {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.user-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  background: #fafbfd;
}

.user-card-title {
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.user-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.user-card li {
  margin-bottom: 0.35em;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.15rem 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-q {
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.faq-a {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.article a.ref-out {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  font-weight: 500;
}

.article a.ref-out:hover,
.article a.ref-out:focus-visible {
  color: #1e4bcc;
}

.article a.ref-out:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.conclusion-matrix .table-wrap {
  margin-bottom: 1.75rem;
}

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

.related-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
}

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

.related li {
  margin: 0.55rem 0;
}

.related a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  font-weight: 500;
}

.page-footer {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.figure {
  margin: 1.35rem 0 1.75rem;
}

.figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafbfd;
}

.figure-caption {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* —— Site header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo__mark {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}

.site-logo:hover {
  color: var(--accent);
}

.site-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  padding: 0.35rem;
  cursor: pointer;
  border-radius: 8px;
}

.site-menu-toggle:hover {
  background: var(--accent-soft);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem 0.35rem;
}

.site-nav a {
  padding: 0.4rem 0.55rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

@media (max-width: 900px) {
  .site-menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
  }

  .site-header__inner {
    position: relative;
  }
}

/* —— Site footer —— */
.site-footer {
  background: #0f172a;
  color: rgba(241, 245, 249, 0.82);
  padding: clamp(2rem, 5vw, 3rem) 1.25rem;
  margin-top: auto;
}

.site-footer a {
  color: rgba(241, 245, 249, 0.92);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

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

.site-footer__inner {
  display: grid;
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem 3rem;
  }

  .site-footer__meta {
    grid-column: 1 / -1;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}

.site-footer__name {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.site-footer__name a {
  text-decoration: none;
  color: #fff;
}

.site-footer__tagline {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(241, 245, 249, 0.72);
  max-width: 28rem;
}

.site-footer__heading {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(241, 245, 249, 0.55);
}

.site-footer__nav .site-footer__heading:not(:first-child) {
  margin-top: 1.15rem;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 1;
}

@media (min-width: 520px) {
  .site-footer__links {
    columns: 2;
    column-gap: 1.5rem;
  }
}

.site-footer__links li {
  margin: 0 0 0.45rem;
  break-inside: avoid;
}

.site-footer__links a {
  font-size: 0.875rem;
  text-decoration: none;
}

.site-footer__links a:hover {
  text-decoration: underline;
}

.site-footer__meta p {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  color: rgba(241, 245, 249, 0.55);
}

.site-footer__copy {
  margin-top: 0.5rem !important;
}

.site-footer__inner--compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.site-footer__inner--compact .site-footer__tagline {
  max-width: 32rem;
}

.site-footer__nav--compact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
}

.site-footer__nav--compact a {
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-footer__inner--compact .site-footer__copy {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(241, 245, 249, 0.55);
}

/* —— Articles hub (tutorial index) —— */
.page-header--hub {
  padding-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.page-header--hub .article-title {
  max-width: none;
}

.articles-hub {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.hub-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.hub-categories a {
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.hub-categories a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.article-category {
  margin-bottom: 2.75rem;
  scroll-margin-top: 4.5rem;
}

.article-category h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  border: 0;
  padding: 0;
}

.category-desc {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.article-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

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

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
}

.article-card__meta {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.article-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.4;
  border: 0;
  padding: 0;
}

.article-card h3 a {
  color: inherit;
  text-decoration: none;
}

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

.article-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* —— Breadcrumb —— */
.breadcrumb {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(241, 245, 249, 0.72);
}

.breadcrumb a {
  color: rgba(241, 245, 249, 0.92);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb [aria-current="page"] {
  color: rgba(241, 245, 249, 0.65);
}

/* —— Homepage —— */
.home-page main {
  flex: 1;
}

.home-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.home-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.home-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 48%, #0f172a 100%);
  color: #f1f5f9;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse 80% 50% at 80% -20%,
      rgba(41, 98, 255, 0.35),
      transparent
    ),
    radial-gradient(
      ellipse 60% 40% at 10% 100%,
      rgba(56, 189, 248, 0.12),
      transparent
    );
  pointer-events: none;
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 48rem;
}

.home-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-lead {
  margin: 0 0 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(241, 245, 249, 0.88);
}

.home-lead a {
  color: #93c5fd;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.home-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.home-tags li {
  font-size: 0.8125rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(241, 245, 249, 0.85);
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.home-btn--primary {
  background: var(--accent);
  color: #fff;
}

.home-btn--primary:hover {
  background: #1e4fd6;
  color: #fff;
}

.home-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.2);
}

.home-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.home-btn--outline {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--border);
}

.home-btn--outline:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.home-btn--block {
  width: 100%;
}

.home-btn--lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.home-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.home-section--muted {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.home-section__head {
  margin-bottom: 1.75rem;
}

.home-section__head--center {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.home-section__head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.3;
}

.home-section__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9875rem;
}

.home-grid {
  display: grid;
  gap: 1rem;
}

.home-grid--2 {
  grid-template-columns: 1fr;
}

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

.home-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

.home-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.home-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.home-pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.home-pill-list li {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.home-download-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

@media (min-width: 960px) {
  .home-download-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.home-download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.home-download-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.home-download-card p {
  margin: 0 0 1rem;
  flex: 1;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.home-download-card__stores {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

.home-download-card__stores a {
  display: block;
  text-align: center;
  padding: 0.65rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.home-download-card__stores a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.home-note {
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

.home-learn {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .home-learn {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
  }
}

.home-learn__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.home-learn__links a {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9375rem;
}

.home-learn__links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.home-faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0 1.15rem;
  margin-bottom: 0.65rem;
}

.home-faq__item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 0;
  list-style-position: outside;
}

.home-faq__item p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.home-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  color: #f1f5f9;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  text-align: center;
}

.home-cta__inner {
  max-width: 36rem;
}

.home-cta h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
}

.home-cta p {
  margin: 0 0 1.25rem;
  color: rgba(241, 245, 249, 0.85);
  font-size: 0.9875rem;
}

/* —— 404 —— */
.error-page main {
  flex: 1;
}

.error-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 48%, #0f172a 100%);
  color: #f1f5f9;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 9vw, 6rem);
  min-height: calc(100vh - 3.25rem - 12rem);
  display: flex;
  align-items: center;
}

.error-hero__inner {
  max-width: 36rem;
  text-align: center;
  margin-inline: auto;
}

.error-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.25;
}

.error-lead {
  margin: 0 0 1.5rem;
  color: rgba(241, 245, 249, 0.85);
  line-height: 1.75;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.error-page .home-btn--outline {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.22);
}

.error-page .home-btn--outline:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.error-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

.error-links a {
  color: #93c5fd;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.error-links a:hover {
  color: #fff;
}
