:root {
  --brand-50: #fff5ec;
  --brand-100: #ffe6d1;
  --brand-300: #ffb07a;
  --brand-500: #f37021;
  --brand-600: #e55a0e;
  --brand-700: #b8430a;
  --bg-cream: #fbf6ee;
  --bg-paper: #fffefa;
  --ink-900: #1a1a1a;
  --ink-700: #333333;
  --ink-600: #4b4b4b;
  --ink-400: #8a8a8a;
  --ink-200: #d9d6d0;
  --line: rgba(26, 26, 26, 0.08);
  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.04);
  --shadow-md: 0 8px 32px rgba(243, 112, 33, 0.10), 0 2px 6px rgba(26, 26, 26, 0.04);
  --shadow-lg: 0 24px 60px -20px rgba(243, 112, 33, 0.25), 0 8px 24px rgba(26, 26, 26, 0.06);
  --radius-pill: 9999px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font: "Lato", "PingFang SC", "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

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

body {
  min-width: 320px;
  overflow-y: auto;
  color: var(--ink-700);
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 176, 122, 0.22), transparent 34rem),
    linear-gradient(180deg, var(--bg-cream), #fffaf3 56%, var(--bg-cream));
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

code,
pre {
  font-family: var(--mono);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 246, 238, 0.74);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  padding: 14px max(24px, calc((100vw - 1240px) / 2 + 32px));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-900);
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.brand span span {
  color: var(--brand-500);
}

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

.mode-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 254, 250, 0.72);
  box-shadow: var(--shadow-sm);
}

.mode-nav a {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  color: var(--ink-600);
  font-size: 13px;
  font-weight: 800;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.mode-nav a:hover {
  color: var(--brand-600);
}

.mode-nav a.is-active {
  background: var(--brand-500);
  box-shadow: 0 8px 18px -12px rgba(229, 90, 14, 0.62);
  color: var(--bg-paper);
}

.mobile-nav {
  display: none;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
}

.mobile-nav a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: var(--ink-600);
  font-size: 13px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.mobile-nav a:hover {
  background: rgba(243, 112, 33, 0.08);
  color: var(--brand-600);
}

.mobile-nav a.is-active {
  background: var(--brand-50);
  color: var(--brand-700);
}

.page-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px 0 244px;
}

.side-nav {
  position: fixed;
  top: 92px;
  left: max(20px, calc((100vw - 1240px) / 2 - 18px));
  width: 190px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 254, 250, 0.78);
  box-shadow: var(--shadow-sm);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
}

.side-nav p {
  margin: 0 0 12px;
  color: var(--ink-400);
  font-size: 12px;
  font-weight: 800;
}

.side-nav nav {
  display: grid;
  gap: 6px;
}

.side-nav a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  color: var(--ink-600);
  font-size: 13px;
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.side-nav a:hover {
  background: rgba(243, 112, 33, 0.09);
  color: var(--brand-600);
  transform: translateX(2px);
}

.side-nav a.is-active {
  background: var(--brand-500);
  box-shadow: 0 8px 18px -12px rgba(229, 90, 14, 0.62);
  color: var(--bg-paper);
}

.side-nav a.is-active:hover {
  background: var(--brand-600);
  color: var(--bg-paper);
}

main {
  min-width: 0;
  width: 100%;
  padding-bottom: 24px;
}

body[data-page="billing"] .page-shell {
  max-width: 1120px;
  padding-left: 32px;
}

body[data-page="billing"] .side-nav,
body[data-page="billing"] .mobile-nav {
  display: none;
}

body[data-page="billing"] .footer {
  max-width: 1120px;
  padding-left: 32px;
}

.wordmark {
  max-width: none;
  margin: 0;
  padding: 54px 0 0;
  text-align: center;
}

.wordmark .mark {
  display: inline-block;
  color: var(--ink-900);
  font-family: "PingFang SC", "Source Han Sans SC", "Noto Sans SC", var(--font);
  font-size: 96px;
  font-weight: 900;
  line-height: 1;
}

.wordmark .mark span,
.wordmark .mark em {
  color: var(--brand-500);
  font-style: normal;
}

.wordmark p {
  margin: 14px 0 0;
  color: var(--ink-400);
  font-size: 13px;
}

.wordmark-rule {
  width: 280px;
  height: 2px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--brand-300), transparent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 44px;
  align-items: center;
  max-width: none;
  margin: 0;
  padding: 42px 0 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg-paper);
  box-shadow: var(--shadow-sm);
  color: var(--ink-600);
  font-size: 13px;
  font-weight: 600;
}

.eyebrow > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(243, 112, 33, 0.18);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 22px 0 18px;
  color: var(--ink-900);
  font-family: "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", var(--font);
  font-size: 64px;
  font-weight: 900;
  line-height: 1.1;
}

.stroke {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.stroke .brush {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -0.18em;
  width: 110%;
  height: 0.34em;
  color: var(--brand-500);
  pointer-events: none;
}

.stroke .brush path {
  fill: currentColor;
}

.lede {
  max-width: 600px;
  margin: 0 0 12px;
  color: var(--ink-600);
  font-size: 20px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  will-change: transform;
}

.primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  box-shadow: 0 8px 20px -8px rgba(229, 90, 14, 0.55);
  color: #fff;
}

.primary:hover {
  box-shadow: 0 14px 28px -10px rgba(229, 90, 14, 0.6);
  transform: translateY(-2px);
}

.secondary {
  border: 1px solid var(--line);
  background: var(--bg-paper);
  color: var(--ink-900);
}

.secondary:hover {
  border-color: var(--brand-300);
  color: var(--brand-600);
}

.arrow {
  transition: transform 0.2s ease;
}

.button:hover .arrow {
  transform: translateX(3px);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
  color: var(--ink-400);
  font-size: 13px;
}

.trust b {
  color: var(--ink-900);
  font-weight: 800;
}

.code-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #171717;
  box-shadow: var(--shadow-lg);
  transform: rotate(0.4deg);
  transition: transform 0.3s ease;
}

.code-card:hover {
  transform: rotate(0) translateY(-2px);
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #2a2a2a;
  background: #1f1f1f;
}

.dot-r {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.d1 { background: #ff5f57; }
.d2 { background: #febc2e; }
.d3 { background: #28c840; }

.code-title {
  margin-left: 10px;
  color: #888;
  font: 500 12px/1 var(--mono);
}

pre {
  overflow-x: auto;
  margin: 14px 0;
  padding: 18px;
  padding-right: 58px;
  border-radius: var(--radius-md);
  background: #171717;
  color: #e6e6e6;
  font-size: 13.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.copy-wrap {
  position: relative;
}

.code-frame {
  overflow: hidden;
  margin: 14px 0;
  border-radius: var(--radius-lg);
  background: #171717;
  box-shadow: var(--shadow-sm);
}

.mini-code-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #2a2a2a;
  background: #1f1f1f;
}

.code-frame pre {
  margin: 0;
  border-radius: 0;
}

.code-card .copy-wrap pre {
  margin: 0;
  padding: 22px 22px 26px;
  padding-right: 62px;
  border-radius: 0;
  white-space: pre;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #d9d6d0;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.code-frame > .copy-btn {
  top: 9px;
}

.copy-btn:hover {
  border-color: rgba(255, 176, 122, 0.46);
  background: rgba(243, 112, 33, 0.16);
  color: #fff;
  transform: translateY(-1px);
}

.copy-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-btn::after {
  position: absolute;
  top: 50%;
  right: calc(100% + 8px);
  padding: 5px 8px;
  border-radius: var(--radius-pill);
  background: rgba(26, 26, 26, 0.92);
  color: #fff;
  content: attr(data-state);
  font: 700 12px/1 var(--font);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.copy-btn:hover::after,
.copy-btn.copied::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.copy-btn.copied {
  border-color: rgba(40, 200, 64, 0.42);
  background: rgba(40, 200, 64, 0.16);
  color: #28c840;
}

.c-cm { color: #7a7a7a; }
.c-kw { color: var(--brand-500); font-weight: 700; }
.c-st { color: #a8d49b; }
.c-vr { color: #ffd58a; }
.c-bool,
.c-num { color: #8ab4ff; }

.path {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  max-width: none;
  margin: 0;
  padding: 20px 0 48px;
}

.path article,
.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(243, 112, 33, 0.14);
  border-radius: var(--radius-lg);
  background: var(--bg-paper);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  will-change: transform;
}

.path article::before,
.panel::before {
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(255, 176, 122, 0.16);
  border-radius: calc(var(--radius-lg) - 1px);
  content: "";
  pointer-events: none;
}

.path article {
  min-height: 0;
  padding: 20px;
}

.path article:hover,
.panel:hover {
  border-color: rgba(243, 112, 33, 0.24);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.path span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 22px;
  border: 1px solid var(--brand-100);
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand-50), #fff);
  color: var(--brand-600);
  font-size: 15px;
  font-weight: 900;
}

.path h2 {
  margin: 0 0 6px;
  color: var(--ink-900);
  font-size: 18px;
}

.path p,
.panel p,
.section-head p,
td {
  color: var(--ink-600);
}

.path p,
.panel p {
  margin-bottom: 0;
}

.doc-section {
  max-width: none;
  margin: 0 0 64px;
  padding: 0;
  scroll-margin-top: 92px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 16px 0 10px;
  color: var(--ink-900);
  font-size: 34px;
  line-height: 1.16;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.panel {
  padding: 20px;
}

.panel > :last-child {
  margin-bottom: 0;
}

.split .panel {
  padding: 20px;
}

.split .code-frame {
  margin: 12px 0 14px;
}

.codex-setup-list {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.setup-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.setup-row .code-frame {
  min-width: 0;
  margin: 0;
}

.setup-copy p {
  margin-bottom: 0;
}

.auth-panel > p {
  max-width: 760px;
}

.auth-code-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 14px;
}

.auth-code-list .code-frame {
  margin: 0;
}

.panel.wide {
  margin-top: 16px;
}

.panel h3 {
  margin: 0 0 10px;
  color: var(--ink-900);
  font-size: 18px;
}

.billing-section {
  padding-top: 54px;
}

.billing-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.78fr);
  gap: 18px;
  align-items: start;
}

.billing-flow {
  display: grid;
  gap: 14px;
}

.billing-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-height: auto;
}

.billing-card span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 1px 0 0;
  border: 1px solid var(--brand-100);
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand-50), #fff);
  color: var(--brand-600);
  font-size: 15px;
  font-weight: 900;
}

.billing-card .text-link {
  display: inline-block;
  margin-top: 12px;
}

.direct-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-color: rgba(243, 112, 33, 0.2);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 176, 122, 0.28), transparent 9rem),
    var(--bg-paper);
}

.direct-badge {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 6px 10px;
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-pill);
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 900;
}

.qr-panel {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(243, 112, 33, 0.12);
}

.qr-panel img {
  width: 240px;
  height: auto;
  border: 1px solid rgba(243, 112, 33, 0.18);
  border-radius: 18px;
  background: var(--bg-paper);
  box-shadow: 0 10px 28px -18px rgba(26, 26, 26, 0.38);
}

.qr-panel strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-900);
  font-size: 17px;
}

.qr-panel p {
  font-size: 14px;
}

.install-list {
  display: grid;
  gap: 14px;
}

.install-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.install-card .copy-wrap,
.install-card .code-frame {
  min-width: 0;
}

.install-copy p {
  margin-bottom: 0;
}

.note {
  padding-left: 12px;
  border-left: 3px solid var(--brand-500);
}

.text-link {
  color: var(--brand-600);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.shot {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--brand-50);
}

.ccswitch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
  align-items: start;
}

.ccswitch-steps {
  display: grid;
  gap: 16px;
}

.setup-card .shot {
  margin-top: 18px;
}

.provider-panel {
  position: sticky;
  top: 92px;
}

.provider-mock {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(243, 112, 33, 0.14);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #fff 0%, var(--brand-50) 100%);
}

.mock-row {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid rgba(243, 112, 33, 0.12);
  border-radius: 12px;
  background: var(--bg-paper);
}

.mock-row span {
  color: var(--ink-400);
  font-size: 12px;
  font-weight: 800;
}

.mock-row strong,
.mock-row code {
  color: var(--ink-900);
  font-size: 14px;
  word-break: break-all;
}

.mock-row code {
  color: var(--brand-700);
}

.copy-field {
  position: relative;
  padding-right: 54px;
}

.inline-copy {
  top: 50%;
  right: 12px;
  width: 30px;
  height: 30px;
  border-color: var(--line);
  background: #fff;
  color: var(--ink-400);
  transform: translateY(-50%);
}

.inline-copy:hover {
  border-color: var(--brand-300);
  background: var(--brand-50);
  color: var(--brand-600);
  transform: translateY(-50%);
}

.inline-copy.copied {
  border-color: rgba(40, 200, 64, 0.28);
  background: rgba(40, 200, 64, 0.08);
}

.inline-copy::after {
  right: 0;
  top: -12px;
  transform: translateY(-100%);
}

.inline-copy:hover::after,
.inline-copy.copied::after {
  transform: translateY(-100%);
}

.mock-save {
  justify-self: end;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: var(--brand-500);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(243, 112, 33, 0.14);
  border-radius: var(--radius-md);
  background: rgba(243, 112, 33, 0.12);
}

.kv div {
  padding: 14px;
  background: linear-gradient(135deg, #fff 0%, var(--brand-50) 100%);
}

.kv div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.kv dt {
  color: var(--ink-400);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.kv dd {
  margin: 4px 0 0;
  color: var(--ink-700);
}

.kv code {
  color: var(--brand-700);
  word-break: break-all;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(243, 112, 33, 0.14);
  border-radius: var(--radius-lg);
  background: var(--bg-paper);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink-900);
  font-size: 13px;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.refs {
  margin-bottom: 54px;
}

.ref-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ref-list a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg-paper);
  color: var(--ink-700);
  font-weight: 700;
}

.ref-list a:hover {
  border-color: var(--brand-300);
  color: var(--brand-600);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  max-width: 1240px;
  margin: 64px auto 0;
  padding: 24px 32px 40px 244px;
  border-top: 1px solid var(--line);
  color: var(--ink-400);
  font-size: 13px;
}

.footer a {
  color: var(--ink-600);
}

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

@media (max-width: 960px) {
  .topbar {
    padding: 12px 20px;
  }

  .mobile-nav {
    display: flex;
  }

  .mode-nav {
    margin-left: auto;
  }

  .page-shell {
    display: block;
    max-width: none;
    padding: 0;
  }

  .side-nav {
    display: none;
  }

  .wordmark {
    padding: 40px 24px 0;
  }

  .wordmark .mark {
    font-size: 74px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 36px 24px 42px;
  }

  h1 {
    font-size: 56px;
  }

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

  .install-card,
  .setup-row,
  .ccswitch-layout,
  .billing-layout {
    grid-template-columns: 1fr;
  }

  .provider-panel {
    position: static;
  }

  .path,
  .doc-section {
    padding-right: 24px;
    padding-left: 24px;
  }

  .footer {
    padding: 24px 24px 40px;
  }

  body[data-page="billing"] .page-shell {
    max-width: none;
    padding: 0;
  }

  body[data-page="billing"] .footer {
    max-width: none;
    padding: 24px 24px 40px;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .mode-nav {
    width: 100%;
  }

  .mode-nav a {
    flex: 1;
    text-align: center;
  }

  .mobile-nav {
    width: 100%;
    padding-bottom: 2px;
  }

  .wordmark .mark {
    font-size: 46px;
  }

  .wordmark p {
    font-size: 12px;
  }

  .wordmark-rule {
    width: 210px;
  }

  h1 {
    font-size: 42px;
  }

  .lede {
    font-size: 17px;
  }

  .path,
  .grid,
  .split,
  .billing-layout,
  .auth-code-list,
  .install-card,
  .setup-row,
  .ccswitch-layout,
  .kv {
    grid-template-columns: 1fr;
  }

  .qr-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .qr-panel img {
    width: min(280px, 76vw);
    border-radius: 16px;
  }

  .path article {
    min-height: auto;
  }

  .footer {
    flex-direction: column;
    gap: 10px;
    margin-top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .code-card {
    transform: none;
  }
}
