:root {
  color-scheme: light;
  --ink: #151714;
  --ink-soft: #4f554e;
  --muted: #72796f;
  --paper: #f7f8f4;
  --paper-strong: #ffffff;
  --line: #dfe3da;
  --charcoal: #111310;
  --charcoal-soft: #1b1e19;
  --gold: #e5a91f;
  --gold-deep: #b87900;
  --green: #8fbd55;
  --danger: #b84d38;
  --radius: 8px;
  --max: 1180px;
  --shadow: 0 24px 64px rgb(17 19 16 / 18%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  letter-spacing: 0;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--paper-strong);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  color: #f5f3e9;
}

.site-header.solid {
  position: sticky;
  top: 0;
  background: rgb(17 19 16 / 94%);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.nav-shell {
  width: min(calc(100% - 40px), var(--max));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a,
.footer-links a {
  color: rgb(245 243 233 / 72%);
  font-size: 14px;
  font-weight: 560;
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.footer-links a:hover {
  color: #fff;
}

.language-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 5%);
}

.language-switch button {
  min-width: 42px;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: rgb(255 255 255 / 64%);
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  background: #f5f3e9;
  color: var(--charcoal);
}

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.menu-button svg,
.icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  position: relative;
  min-height: min(900px, 94svh);
  overflow: hidden;
  background: var(--charcoal);
  color: #f8f6ed;
  isolation: isolate;
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: min(calc(100% - 40px), var(--max));
  min-height: min(900px, 94svh);
  margin: 0 auto;
  padding: 162px 0 110px;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(540px, 46%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(64px, 8vw, 108px);
  font-weight: 720;
  line-height: 0.92;
}

.hero-lead {
  max-width: 560px;
  margin-bottom: 32px;
  color: rgb(248 246 237 / 72%);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--gold);
  color: #201a0b;
}

.button.primary:hover {
  background: #f1b733;
}

.button.secondary {
  border-color: rgb(255 255 255 / 22%);
  background: rgb(255 255 255 / 5%);
  color: #fff;
}

.button.secondary:hover {
  border-color: rgb(255 255 255 / 42%);
  background: rgb(255 255 255 / 9%);
}

.button.dark {
  background: var(--charcoal);
  color: #fff;
}

.button.outline-dark {
  border-color: #bbc1b7;
  background: transparent;
  color: var(--ink);
}

.hero-notes {
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: rgb(248 246 237 / 56%);
  font-size: 13px;
}

.hero-notes span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-notes span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.hero-visual {
  position: absolute;
  top: 108px;
  right: -140px;
  bottom: -180px;
  width: min(54vw, 680px);
  pointer-events: none;
}

.phone-shot {
  position: absolute;
  width: 42%;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 8px;
  background: #0f100e;
  box-shadow: var(--shadow);
}

.phone-shot.one {
  top: 4%;
  left: 8%;
  transform: rotate(-4deg);
}

.phone-shot.two {
  top: 18%;
  right: 5%;
  z-index: 2;
  transform: rotate(3deg);
}

.phone-shot.three {
  top: 41%;
  left: 27%;
  z-index: 3;
  transform: rotate(-1deg);
}

.hero-stamp {
  position: absolute;
  right: 6%;
  bottom: 17%;
  z-index: 4;
  width: 136px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  border: 1px solid rgb(229 169 31 / 56%);
  border-radius: 50%;
  color: var(--gold);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  transform: rotate(8deg);
}

.section {
  padding: 112px 0;
}

.section.compact {
  padding: 76px 0;
}

.section.dark {
  background: var(--charcoal);
  color: #f6f3e8;
}

.section.green-band {
  background: #dcecc9;
}

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.section-heading {
  max-width: 730px;
  margin-bottom: 56px;
}

.section-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 700;
  line-height: 1.06;
}

.section-heading p {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.dark .section-heading p {
  color: rgb(246 243 232 / 64%);
}

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

.workflow-item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
}

.workflow-item img {
  width: 100%;
  aspect-ratio: 0.68;
  object-fit: cover;
  object-position: top;
  background: var(--charcoal);
}

.workflow-copy {
  min-height: 194px;
  padding: 24px;
}

.step-number {
  display: block;
  margin-bottom: 12px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.workflow-copy h3,
.feature h3,
.guide-link h3 {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 680;
  line-height: 1.3;
}

.workflow-copy p,
.feature p,
.guide-link p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.scene-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(40px, 8vw, 110px);
  align-items: center;
}

.scene-media {
  position: relative;
  min-height: 590px;
}

.scene-media .scene {
  width: 72%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius);
}

.scene-media .screen {
  position: absolute;
  right: 0;
  bottom: -28px;
  width: 43%;
  max-height: 530px;
  object-fit: cover;
  object-position: top;
  border: 8px solid var(--charcoal);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.scene-copy h2 {
  margin-bottom: 20px;
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1.08;
}

.scene-copy > p {
  color: var(--ink-soft);
  font-size: 18px;
}

.feature-list {
  margin-top: 34px;
  display: grid;
  gap: 22px;
}

.feature {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
}

.icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--gold-deep);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgb(255 255 255 / 12%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius);
  overflow: hidden;
}

.trust-item {
  min-height: 280px;
  padding: 34px;
  background: var(--charcoal-soft);
}

.trust-item .icon {
  margin-bottom: 52px;
  color: var(--green);
}

.trust-item h3 {
  margin-bottom: 12px;
  font-size: 21px;
}

.trust-item p {
  margin: 0;
  color: rgb(246 243 232 / 60%);
  font-size: 15px;
}

.guides-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.guides-header .section-heading {
  margin: 0;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.guide-link {
  min-height: 250px;
  padding: 30px 26px 28px 0;
  border-bottom: 1px solid var(--line);
  transition: color 160ms ease, background 160ms ease;
}

.guide-link + .guide-link {
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.guide-link .icon {
  margin-bottom: 44px;
}

.guide-link:hover h3,
.guide-link:hover .coming-soon {
  color: var(--gold-deep);
}

.coming-soon {
  display: inline-block;
  margin-top: 20px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.cta-band {
  padding: 72px 0;
  background: var(--gold);
  color: #201a0b;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-inner h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
}

.site-footer {
  padding: 56px 0 30px;
  background: var(--charcoal);
  color: #f5f3e9;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 52px;
}

.footer-brand p {
  max-width: 390px;
  margin: 18px 0 0;
  color: rgb(245 243 233 / 58%);
  font-size: 14px;
}

.footer-column h3 {
  margin-bottom: 18px;
  color: rgb(245 243 233 / 46%);
  font-size: 12px;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 10%);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgb(245 243 233 / 42%);
  font-size: 12px;
}

/* Legal pages */
.legal-hero {
  padding: 98px 0 72px;
  background: var(--charcoal);
  color: #f7f4ea;
}

.legal-hero .eyebrow {
  margin-bottom: 16px;
}

.legal-hero h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(48px, 7vw, 82px);
}

.legal-hero p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgb(247 244 234 / 62%);
  font-size: 17px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  gap: 80px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 104px;
  padding-top: 8px;
}

.legal-toc strong {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.legal-toc nav {
  display: grid;
  gap: 8px;
}

.legal-toc a {
  color: var(--ink-soft);
  font-size: 13px;
}

.legal-toc a:hover {
  color: var(--gold-deep);
}

.legal-content section {
  padding: 0 0 46px;
  scroll-margin-top: 110px;
}

.legal-content section + section {
  padding-top: 46px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin-bottom: 18px;
  font-size: 28px;
  line-height: 1.25;
}

.legal-content h3 {
  margin: 28px 0 10px;
  font-size: 18px;
}

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

.legal-content ul {
  padding-left: 22px;
}

.legal-content a,
.inline-link {
  color: #996300;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.policy-note {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
  background: #fff7df;
  color: var(--ink-soft);
}

.translation-note {
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 13px;
}

.docs-page {
  background: var(--paper-strong);
}

.docs-hero {
  padding: 76px 0 68px;
  background: var(--charcoal);
  color: #f7f4ea;
}

.docs-hero h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(46px, 7vw, 78px);
  line-height: 0.98;
}

.docs-hero > .shell > p:last-child,
.docs-hero > .shell > p:nth-last-child(2) {
  max-width: 720px;
  margin-bottom: 0;
  color: rgb(247 244 234 / 64%);
  font-size: 18px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 800px);
  gap: 72px;
  align-items: start;
  padding-top: 76px;
  padding-bottom: 110px;
}

.docs-sidebar {
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 128px);
  overflow-y: auto;
  padding: 4px 18px 4px 0;
  scrollbar-width: thin;
}

.docs-nav-group {
  display: grid;
  gap: 7px;
}

.docs-nav-group + .docs-nav-group {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.docs-nav-group a {
  padding-left: 12px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  transition: color 150ms ease, border-color 150ms ease;
}

.docs-nav-group a:hover,
.docs-nav-group a.active {
  border-left-color: var(--gold);
  color: var(--ink);
}

.docs-nav-group .docs-nav-title {
  padding-left: 0;
  border-left: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.docs-mobile-toc {
  display: none;
}

.docs-content {
  min-width: 0;
}

.docs-content > section {
  padding: 0 0 62px;
  scroll-margin-top: 108px;
}

.docs-content > section + section {
  padding-top: 62px;
  border-top: 1px solid var(--line);
}

.docs-content > .doc-chapter {
  padding-top: 0;
  border-top: 0;
}

.docs-content > section + .doc-chapter {
  margin-top: 24px;
  padding-top: 86px;
  border-top: 3px solid var(--charcoal);
}

.doc-kicker,
.doc-step-number {
  display: block;
  margin: 0 0 12px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
  text-transform: uppercase;
}

.docs-content h2 {
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.05;
}

.docs-content h3 {
  margin: 0 0 16px;
  font-size: 27px;
  line-height: 1.2;
}

.docs-content p,
.docs-content li,
.docs-content dd {
  color: var(--ink-soft);
}

.docs-content strong,
.docs-content dt {
  color: var(--ink);
}

.docs-content a:not(.button) {
  color: #946100;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.doc-lead {
  max-width: 720px;
  margin-bottom: 28px;
  font-size: 20px;
  line-height: 1.55;
}

.doc-flow,
.doc-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 28px 0;
}

.doc-flow span,
.doc-path span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.doc-flow b,
.doc-path b {
  color: var(--gold-deep);
  font-weight: 700;
}

.doc-steps,
.doc-checklist {
  margin: 26px 0 30px;
  padding: 0;
  list-style: none;
  counter-reset: docs-step;
}

.doc-steps li {
  position: relative;
  min-height: 36px;
  padding: 0 0 22px 48px;
  counter-increment: docs-step;
}

.doc-steps li::before {
  content: counter(docs-step);
  position: absolute;
  top: -2px;
  left: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #d6b76e;
  border-radius: 50%;
  color: #805400;
  font-size: 12px;
  font-weight: 750;
}

.doc-checklist li {
  position: relative;
  padding: 0 0 16px 30px;
}

.doc-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #5f8d28;
  font-weight: 800;
}

.doc-callout {
  margin: 28px 0;
  padding: 20px 22px;
  border-left: 3px solid var(--gold);
  background: #fff7df;
}

.doc-callout.subtle {
  border-left-color: var(--green);
  background: #f1f7e9;
}

.doc-callout.warning {
  border-left-color: #c58216;
  background: #fff4d5;
}

.doc-callout.danger {
  border-left-color: var(--danger);
  background: #fff0eb;
}

.doc-callout strong {
  display: block;
  margin-bottom: 5px;
}

.doc-callout p {
  margin: 0;
}

.doc-figure {
  margin: 34px 0;
}

.doc-figure img {
  width: min(100%, 390px);
  max-height: 720px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 44px rgb(17 19 16 / 12%);
}

.doc-figure.scene-figure img {
  width: min(100%, 500px);
}

.doc-figure figcaption {
  max-width: 500px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.doc-figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.doc-figure-grid .doc-figure img {
  width: 100%;
}

.doc-definitions {
  margin: 28px 0;
}

.doc-definitions > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.doc-definitions > div:last-child {
  border-bottom: 1px solid var(--line);
}

.doc-definitions dt {
  font-weight: 700;
}

.doc-definitions dd {
  margin: 0;
}

.doc-source {
  color: var(--muted) !important;
  font-size: 13px;
}

.doc-table-wrap {
  margin: 28px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.doc-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--paper-strong);
  font-size: 14px;
}

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

.doc-table th {
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
}

.doc-table td:first-child {
  width: 34%;
  color: var(--ink);
  font-weight: 650;
}

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

.docs-content code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #eef0ea;
  color: #3f453e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.docs-end {
  margin-top: 22px;
  padding: 44px 0 0;
  border-top: 1px solid var(--line);
}

.docs-end h2 {
  margin-bottom: 10px;
  font-size: 30px;
}

.docs-end .button {
  margin-top: 10px;
}

.compact-footer {
  padding: 28px 0;
}

.compact-footer .footer-bottom {
  padding: 0;
  border: 0;
}

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

html:not([data-language="zh"]) .lang-zh,
html[data-language="zh"] .lang-en {
  display: none !important;
}

@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    inset: 76px 16px auto;
    padding: 22px;
    display: none;
    align-items: stretch;
    background: #1a1c18;
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: grid;
  }

  .nav-links a {
    padding: 8px 2px;
    font-size: 16px;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero-copy {
    width: 63%;
  }

  .hero-visual {
    right: -240px;
    width: 62vw;
    opacity: 0.76;
  }

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

  .scene-layout {
    grid-template-columns: 1fr;
  }

  .scene-media {
    width: min(720px, 100%);
  }

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

  .guide-link + .guide-link {
    padding-left: 0;
    border-left: 0;
  }

  .trust-item {
    min-height: 0;
  }

  .trust-item .icon {
    margin-bottom: 24px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .docs-layout {
    grid-template-columns: 1fr;
    padding-top: 54px;
  }

  .docs-sidebar {
    display: none;
  }

  .docs-mobile-toc {
    position: sticky;
    top: 76px;
    z-index: 10;
    display: block;
    border-bottom: 1px solid var(--line);
    background: rgb(255 255 255 / 96%);
    backdrop-filter: blur(12px);
  }

  .docs-mobile-toc details {
    width: min(calc(100% - 40px), var(--max));
    margin: 0 auto;
  }

  .docs-mobile-toc summary {
    padding: 14px 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
  }

  .docs-mobile-toc nav {
    padding: 0 0 16px;
  }

  .docs-mobile-toc nav a {
    display: block;
    padding: 8px 0;
    color: var(--ink-soft);
    font-size: 14px;
  }

  .legal-toc {
    position: static;
    padding: 0 0 24px;
    border-bottom: 1px solid var(--line);
  }

  .legal-toc nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
  }
}

@media (max-width: 700px) {
  .nav-shell,
  .shell,
  .hero-inner {
    width: min(calc(100% - 32px), var(--max));
  }

  .nav-actions {
    gap: 8px;
  }

  .hero {
    min-height: 94svh;
  }

  .hero-inner {
    min-height: 94svh;
    padding: 110px 0 140px;
    align-items: start;
  }

  .hero-copy {
    width: 100%;
  }

  h1 {
    font-size: clamp(58px, 21vw, 84px);
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-visual {
    inset: auto -70px -370px auto;
    width: 540px;
    height: 680px;
    opacity: 0.82;
  }

  .hero-stamp {
    display: none;
  }

  .section {
    padding: 78px 0;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .workflow-item {
    display: grid;
    grid-template-columns: 42% 1fr;
  }

  .workflow-item img {
    height: 100%;
    aspect-ratio: auto;
  }

  .workflow-copy {
    min-height: 250px;
    padding: 22px;
  }

  .scene-media {
    min-height: 490px;
  }

  .scene-media .scene {
    width: 82%;
    height: 460px;
  }

  .scene-media .screen {
    width: 48%;
    max-height: 400px;
  }

  .guides-header,
  .cta-inner,
  .footer-bottom {
    align-items: start;
    flex-direction: column;
  }

  .cta-inner {
    display: flex;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .legal-hero {
    padding: 74px 0 54px;
  }

  .docs-hero {
    padding: 62px 0 54px;
  }

  .docs-hero h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .docs-layout {
    padding-top: 42px;
    padding-bottom: 78px;
  }

  .docs-content > section {
    padding-bottom: 48px;
    scroll-margin-top: 136px;
  }

  .docs-content > section + section {
    padding-top: 48px;
  }

  .docs-content > section + .doc-chapter {
    padding-top: 64px;
  }

  .docs-content h2 {
    font-size: 38px;
  }

  .docs-content h3 {
    font-size: 23px;
  }

  .doc-lead {
    font-size: 18px;
  }

  .doc-figure-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .doc-figure img,
  .doc-figure.scene-figure img {
    width: 100%;
    max-height: none;
  }

  .doc-definitions > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .brand span {
    display: none;
  }

  .workflow-item {
    grid-template-columns: 39% 1fr;
  }

  .workflow-copy {
    min-height: 228px;
    padding: 18px;
  }

  .workflow-copy h3 {
    font-size: 18px;
  }

  .scene-media {
    min-height: 420px;
  }

  .scene-media .scene {
    height: 390px;
  }

  .hero-actions .button {
    width: auto;
    flex: 1 1 145px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .cta-actions .button {
    width: 100%;
  }
}

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