:root {
  --ink: #202321;
  --ink-2: #343a3d;
  --paper: #f8f6f1;
  --paper-2: #ede8de;
  --line: #d8d0c4;
  --accent: #d84e35;
  --accent-strong: #aa3524;
  --blue: #2f6f8f;
  --amber: #b98232;
  --white: #fffdfa;
  --shadow: 0 22px 58px rgba(32, 35, 33, 0.13);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Aptos, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

p,
li,
figcaption {
  overflow-wrap: anywhere;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(32, 35, 33, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(32, 35, 33, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}

a {
  color: inherit;
}

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

code {
  border: 1px solid rgba(32, 35, 33, 0.12);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.05rem 0.34rem;
  font-family: "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
  font-size: 0.92em;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-all;
}

section[id] {
  scroll-margin-top: 92px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 80;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  padding: 0.55rem 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 16px 32px;
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header--solid {
  background: rgba(248, 246, 241, 0.95);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(32, 35, 33, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  font-weight: 850;
  text-decoration: none;
}

.brand img {
  flex: 0 0 auto;
  border-radius: 8px;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 760;
}

.site-nav a {
  border-radius: 999px;
  padding: 0.54rem 0.78rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a:focus-visible,
.site-header--solid .site-nav a:hover,
.site-header--solid .site-nav a:focus-visible {
  background: rgba(32, 35, 33, 0.07);
}

.site-nav .nav-pill {
  border: 1px solid currentColor;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, top 180ms ease;
}

.nav-toggle span:first-child {
  top: 16px;
}

.nav-toggle span:last-child {
  top: 25px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 88vh;
  overflow: hidden;
  background: #202321;
  color: var(--white);
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  filter: saturate(1.05) contrast(1.02);
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(32, 35, 33, 0.96), rgba(32, 35, 33, 0.76) 48%, rgba(47, 111, 143, 0.26)),
    linear-gradient(0deg, rgba(32, 35, 33, 0.82), transparent 42%);
}

.hero__content {
  position: relative;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 160px 0 76px;
}

.hero__kicker,
.eyebrow {
  margin: 0 0 0.78rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1,
.guide-hero h1,
.section h2,
.cta h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 880px;
  font-size: 5.7rem;
}

.hero h1 span {
  display: block;
}

.hero__lead {
  max-width: 760px;
  margin: 1.35rem 0 0;
  font-size: 1.22rem;
  color: rgba(255, 255, 255, 0.86);
}

.hero__actions,
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  font-weight: 860;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(216, 78, 53, 0.24);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.46);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

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

.button--ghost-dark {
  border-color: rgba(32, 35, 33, 0.28);
  color: var(--ink);
  background: rgba(255, 253, 248, 0.72);
}

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

.signal-list li {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.42rem 0.72rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 760;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.intro-band__item {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.75rem;
  min-height: 118px;
  border-right: 1px solid rgba(32, 35, 33, 0.14);
  padding: 1.25rem;
  font-weight: 820;
}

.intro-band__item:last-child {
  border-right: 0;
}

.metric {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 104px 0;
}

.section--tight {
  padding-top: 92px;
}

.section--ink {
  width: 100%;
  margin: 0;
  padding: 108px max(24px, calc((100vw - 1180px) / 2));
  background: var(--ink);
  color: var(--white);
}

.section--guide {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: 3rem;
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__heading {
  max-width: 820px;
  margin-bottom: 2.5rem;
}

.section__heading--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: none;
}

.section h2,
.cta h2,
.guide-hero h1 {
  font-size: 3.4rem;
}

.section__heading p:not(.eyebrow) {
  margin: 0.8rem 0 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  min-width: 0;
  min-height: 268px;
  border: 1px solid rgba(32, 35, 33, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
  padding: 1.25rem;
  box-shadow: 0 10px 24px rgba(32, 35, 33, 0.055);
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 30px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  padding: 0 0.5rem;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 900;
}

.feature-card:nth-child(2) .feature-card__icon {
  background: var(--blue);
}

.feature-card:nth-child(3) .feature-card__icon {
  background: var(--accent);
}

.feature-card:nth-child(4) .feature-card__icon {
  background: var(--amber);
}

.feature-card h3,
.workflow__step h3,
.guide-item h3,
.provider h3,
.settings-grid h3 {
  margin: 1.2rem 0 0.55rem;
  font-size: 1.15rem;
  line-height: 1.2;
}

.feature-card p,
.workflow__step p,
.guide-item p,
.provider p,
.settings-grid p {
  margin: 0;
  color: rgba(32, 35, 33, 0.74);
}

.section--ink .eyebrow {
  color: #f2a08f;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.workflow__step {
  min-width: 0;
  min-height: 240px;
  background: var(--ink);
  padding: 1.4rem;
}

.workflow__step span {
  color: #f2a08f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
}

.workflow__step p {
  color: rgba(255, 255, 255, 0.72);
}

.screenshot-article {
  display: grid;
  gap: 3.5rem;
}

.article-lead {
  max-width: 860px;
  margin: 0;
  color: rgba(32, 35, 33, 0.72);
  font-size: 1.08rem;
}

.article-block {
  display: grid;
  grid-template-columns: minmax(240px, 0.38fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.article-block--compact {
  margin-top: 2rem;
}

.article-copy h3 {
  margin: 0 0 0.72rem;
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.2;
}

.article-copy p {
  margin: 0;
  color: rgba(32, 35, 33, 0.72);
}

.figure-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.article-figure {
  margin: 0;
}

.image-preview {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.image-preview img {
  width: 100%;
  border: 1px solid rgba(32, 35, 33, 0.14);
  border-radius: 6px;
  background: var(--ink);
  box-shadow: 0 14px 34px rgba(32, 35, 33, 0.1);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.image-preview:hover img,
.image-preview:focus-visible img {
  border-color: rgba(216, 78, 53, 0.62);
  box-shadow: 0 18px 42px rgba(32, 35, 33, 0.16);
  transform: translateY(-2px);
}

.article-figure figcaption,
.guide-shot figcaption {
  padding: 0.72rem 0 0;
  color: rgba(32, 35, 33, 0.62);
  font-size: 0.95rem;
}

.text-link {
  color: var(--blue);
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

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

.guide-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.guide-item > div {
  min-width: 0;
}

.guide-item__index {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.section--guide .button {
  grid-column: 2;
  justify-self: start;
  margin-top: 0.8rem;
}

.provider-grid,
.compat-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.provider {
  min-width: 0;
  border: 1px solid rgba(32, 35, 33, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.84);
  padding: 1.4rem;
}

.provider--wide {
  grid-column: 1 / -1;
}

.provider ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.provider li + li {
  margin-top: 0.4rem;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 24px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(32, 35, 33, 0.97), rgba(47, 111, 143, 0.84)),
    var(--ink);
  color: var(--white);
  padding: 58px max(24px, calc((100vw - 1180px) / 2));
}

.cta .eyebrow {
  color: #f2a08f;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 28px 32px;
  border-top: 1px solid var(--line);
  color: rgba(32, 35, 33, 0.66);
  font-size: 0.94rem;
}

.site-footer a {
  color: var(--ink);
  font-weight: 760;
}

.preview-dialog {
  width: min(1120px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  border: 0;
  border-radius: 8px;
  background: var(--paper);
  padding: 1rem;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.44);
}

.preview-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
}

.preview-dialog h2 {
  margin: 0 3rem 1rem 0;
  font-size: 1.2rem;
}

.preview-dialog img {
  width: 100%;
  max-height: calc(100vh - 132px);
  object-fit: contain;
  background: var(--ink);
}

.dialog-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 1.35rem;
  line-height: 1;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 3rem;
  align-items: end;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 150px 0 72px;
}

.guide-hero__copy p:last-child {
  max-width: 760px;
  margin: 1.2rem 0 0;
  font-size: 1.1rem;
  color: rgba(32, 35, 33, 0.72);
}

.guide-toc {
  display: grid;
  gap: 0.45rem;
  border-left: 2px solid var(--ink);
  padding-left: 1rem;
  font-weight: 820;
}

.guide-toc a {
  text-decoration: none;
}

.guide-toc a:hover,
.guide-toc a:focus-visible {
  color: var(--blue);
  outline: none;
}

.guide-section {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 2rem;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 64px 0;
}

.guide-section__label {
  position: sticky;
  top: 96px;
  align-self: start;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.guide-section h2 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: 2.3rem;
  line-height: 1.08;
}

.guide-section p {
  max-width: 860px;
}

.guide-section__content {
  min-width: 0;
}

.steps {
  display: grid;
  gap: 0.72rem;
  margin: 1.2rem 0 1.5rem;
  padding-left: 1.2rem;
}

.action-table {
  display: grid;
  margin: 1.5rem 0;
  border: 1px solid rgba(32, 35, 33, 0.14);
  border-radius: 8px;
  overflow: hidden;
}

.action-table [role="row"] {
  display: grid;
  grid-template-columns: 260px 1fr;
}

.action-table [role="row"] + [role="row"] {
  border-top: 1px solid rgba(32, 35, 33, 0.1);
}

.action-table [role="columnheader"],
.action-table [role="cell"] {
  min-width: 0;
  padding: 0.9rem 1rem;
}

.action-table [role="columnheader"] {
  background: var(--ink);
  color: var(--white);
  font-weight: 860;
}

.action-table [role="cell"]:first-child {
  border-right: 1px solid rgba(32, 35, 33, 0.1);
  background: rgba(255, 255, 255, 0.62);
}

.guide-shot {
  margin-top: 1.5rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.settings-grid article {
  min-width: 0;
  border: 1px solid rgba(32, 35, 33, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
  padding: 1rem;
}

.template-sample {
  overflow-x: auto;
  margin: 1.5rem 0 0;
  border-radius: 8px;
  background: var(--ink);
  color: #f4b29f;
  padding: 1.2rem;
}

.endpoint-sample {
  overflow-x: auto;
  margin: 1.1rem 0 0;
  border-radius: 8px;
  background: #262b2c;
  color: #f2d8cf;
  padding: 1rem;
}

.endpoint-sample code {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}

.template-sample code {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  white-space: pre-wrap;
}

.provider-grid--guide {
  margin: 1.4rem 0;
}

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

  .site-header {
    padding: 14px 20px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    border: 1px solid rgba(32, 35, 33, 0.12);
    border-radius: 8px;
    background: rgba(251, 251, 247, 0.98);
    color: var(--ink);
    padding: 0.6rem;
    max-height: calc(100svh - 92px);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow);
  }

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

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 0.52rem 0.72rem;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .hero {
    min-height: 760px;
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(32, 35, 33, 0.95), rgba(32, 35, 33, 0.7)),
      linear-gradient(0deg, rgba(32, 35, 33, 0.84), transparent 44%);
  }

  .hero h1 {
    font-size: 4rem;
  }

  .feature-grid,
  .workflow,
  .provider-grid,
  .compat-stack,
  .settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-block {
    grid-template-columns: 1fr;
  }

  .section--guide,
  .guide-hero {
    grid-template-columns: 1fr;
  }

  .section--guide .button {
    grid-column: 1;
  }

  .guide-section {
    grid-template-columns: 84px minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 76px;
  }

  body {
    font-size: 15px;
  }

  body::before {
    background-size: 32px 32px;
  }

  section[id] {
    scroll-margin-top: 76px;
  }

  .brand span {
    max-width: 230px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .nav-toggle span:first-child {
    top: 14px;
  }

  .nav-toggle span:last-child {
    top: 23px;
  }

  .hero {
    min-height: auto;
  }

  .hero__image {
    object-position: 58% top;
  }

  .hero__content {
    width: min(100% - 32px, 1180px);
    padding: 88px 0 30px;
  }

  .hero h1,
  .section h2,
  .cta h2,
  .guide-hero h1 {
    font-size: 2.6rem;
    line-height: 1.02;
  }

  .hero__lead {
    margin-top: 0.95rem;
    font-size: 1.04rem;
    line-height: 1.58;
  }

  .hero__kicker,
  .eyebrow {
    font-size: 0.76rem;
    line-height: 1.25;
  }

  .signal-list {
    flex-wrap: nowrap;
    gap: 0.45rem;
    margin: 1rem -16px 0 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0 16px 0.15rem 0;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .signal-list::-webkit-scrollbar {
    display: none;
  }

  .signal-list li {
    flex: 0 0 auto;
    padding: 0.36rem 0.58rem;
    font-size: 0.88rem;
    scroll-snap-align: start;
  }

  .hero__actions {
    gap: 0.55rem;
    margin-top: 1.25rem;
  }

  .button {
    min-height: 42px;
    padding: 0.62rem 0.9rem;
  }

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

  .intro-band__item {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    min-height: 72px;
    border-right: 1px solid rgba(32, 35, 33, 0.16);
    border-bottom: 0;
    padding: 0.72rem 0.58rem;
  }

  .intro-band__item:last-child {
    border-right: 0;
  }

  .intro-band__item span:last-child {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .metric {
    font-size: 1.58rem;
  }

  .section,
  .guide-hero,
  .guide-section {
    width: min(100% - 32px, 1180px);
  }

  .section {
    padding: 58px 0;
  }

  .section--ink {
    width: 100%;
    padding: 58px 16px;
  }

  .section__heading--split {
    align-items: start;
    flex-direction: column;
  }

  .feature-grid,
  .workflow,
  .provider-grid,
  .compat-stack,
  .settings-grid,
  .guide-list {
    display: flex;
    grid-template-columns: none;
    gap: 0.85rem;
    margin-left: -16px;
    margin-right: -16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0 16px 0.75rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .feature-grid::-webkit-scrollbar,
  .workflow::-webkit-scrollbar,
  .provider-grid::-webkit-scrollbar,
  .compat-stack::-webkit-scrollbar,
  .settings-grid::-webkit-scrollbar,
  .guide-list::-webkit-scrollbar {
    display: none;
  }

  .figure-pair {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .workflow__step,
  .provider,
  .settings-grid article,
  .guide-item {
    flex: 0 0 min(84vw, 330px);
    min-height: auto;
    scroll-snap-align: start;
  }

  .provider--wide {
    grid-column: auto;
    flex-basis: min(88vw, 360px);
  }

  .feature-card,
  .provider,
  .settings-grid article {
    padding: 1rem;
  }

  .screenshot-article {
    gap: 2.5rem;
  }

  .article-block {
    gap: 1rem;
    padding-top: 1.35rem;
  }

  .article-block--compact {
    margin-top: 1.5rem;
  }

  .article-copy h3 {
    font-size: 1.12rem;
  }

  .article-copy p,
  .article-lead,
  .provider li {
    font-size: 0.95rem;
  }

  .image-preview img {
    border-radius: 5px;
    box-shadow: 0 10px 26px rgba(32, 35, 33, 0.11);
  }

  .article-figure figcaption,
  .guide-shot figcaption {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .provider ul {
    padding-left: 1rem;
  }

  .template-sample,
  .endpoint-sample {
    padding: 0.9rem;
    font-size: 0.86rem;
  }

  .endpoint-sample code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
    margin: 16px;
    padding: 38px 20px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 20px;
  }

  .guide-hero {
    padding: 92px 0 36px;
  }

  .guide-section {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 42px 0;
  }

  .guide-section__label {
    position: static;
    font-size: 2rem;
  }

  .action-table [role="row"] {
    grid-template-columns: minmax(124px, 0.86fr) minmax(0, 1.14fr);
  }

  .action-table [role="columnheader"],
  .action-table [role="cell"] {
    padding: 0.74rem 0.78rem;
    font-size: 0.88rem;
  }

  .action-table [role="cell"]:first-child {
    border-right: 1px solid rgba(32, 35, 33, 0.1);
    border-bottom: 0;
  }

  .preview-dialog {
    width: calc(100% - 18px);
    max-height: calc(100dvh - 18px);
    padding: 0.75rem;
  }

  .preview-dialog h2 {
    margin: 0 3rem 0.7rem 0;
    font-size: 1rem;
  }

  .preview-dialog img {
    max-height: calc(100dvh - 104px);
  }

  .dialog-close {
    top: 0.58rem;
    right: 0.58rem;
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 440px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand span {
    max-width: 176px;
    font-size: 0.9rem;
  }

  .hero h1,
  .section h2,
  .cta h2,
  .guide-hero h1 {
    font-size: 1.95rem;
  }

  .hero__lead {
    font-size: 0.96rem;
  }

  .hero__content {
    width: min(100% - 24px, 1180px);
    padding-top: 82px;
  }

  .signal-list {
    margin-right: -12px;
    padding-right: 12px;
  }

  .guide-section h2 {
    font-size: 1.86rem;
  }

  .button {
    width: 100%;
  }

  .hero__actions,
  .cta__actions {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .brand span {
    max-width: 145px;
  }

  .hero h1,
  .section h2,
  .cta h2,
  .guide-hero h1 {
    font-size: 1.78rem;
  }

  .hero__lead {
    font-size: 0.92rem;
  }

  .hero__content {
    padding-top: 78px;
    padding-bottom: 24px;
  }

  .hero__content,
  .section,
  .guide-hero,
  .guide-section {
    width: min(100% - 24px, 1180px);
  }

  .feature-grid,
  .workflow,
  .provider-grid,
  .compat-stack,
  .settings-grid,
  .guide-list {
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
