:root {
  --background: #ffffff;
  --surface: #f7f8fa;
  --surface-raised: #ffffff;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --text: #17191c;
  --muted: #667085;
  --subtle: #98a2b3;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff6ff;
  --amber: #b54708;
  --amber-soft: #fffaeb;
  --red: #b42318;
  --red-soft: #fef3f2;
  --code: #111827;
  --code-text: #e5e7eb;
  --sidebar-width: 272px;
  --content-width: 760px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
}

* {
  box-sizing: border-box;
}

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

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

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

a {
  color: var(--blue-dark);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue);
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--blue-dark);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.page-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid var(--border);
  background: rgba(250, 250, 251, 0.96);
}

.sidebar-inner {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 26px 24px 22px;
}

.brand,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  background: var(--text);
  border-radius: 9px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-copy strong {
  font-size: 13px;
  letter-spacing: 0.035em;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.toc {
  margin-top: 45px;
}

.toc-label {
  margin: 0 0 10px 12px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  padding: 7px 12px;
  color: var(--muted);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 520;
  text-decoration: none;
  transition:
    color 150ms ease,
    background-color 150ms ease;
}

.toc a:hover {
  color: var(--text);
  background: #f0f1f3;
}

.toc a.active {
  color: var(--blue-dark);
  background: #eaf1ff;
  font-weight: 650;
}

.sidebar-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 10px 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface-raised);
  border-radius: 9px;
  font-size: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #12b76a;
  border-radius: 999px;
  box-shadow: 0 0 0 3px #d1fadf;
}

.mobile-header {
  display: none;
}

main {
  min-width: 0;
}

article,
footer {
  width: min(calc(100% - 64px), var(--content-width));
  margin-inline: auto;
}

.doc-section {
  padding: 80px 0 12px;
  scroll-margin-top: 20px;
}

.hero {
  padding-top: 88px;
}

.eyebrow,
.section-kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 16px 0 20px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.052em;
}

.hero-summary {
  max-width: 670px;
  margin: 0;
  color: #475467;
  font-size: 20px;
  line-height: 1.55;
  letter-spacing: -0.012em;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

h2 {
  margin: 12px 0 18px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

h3 {
  margin: 38px 0 8px;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.018em;
}

p {
  margin: 0 0 18px;
}

.doc-section > p,
.doc-section > ul,
.doc-section > dl {
  color: #475467;
}

strong {
  color: var(--text);
}

.step-number {
  display: inline-grid;
  width: 36px;
  height: 36px;
  margin-right: 11px;
  place-items: center;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-radius: 10px;
  font-size: 17px;
  vertical-align: 4px;
}

.video-placeholder,
.screenshot-placeholder {
  margin: 34px 0 0;
}

.video-frame {
  display: flex;
  aspect-ratio: 16 / 8.4;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #344054;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 20%, rgba(37, 99, 235, 0.08), transparent 40%),
    linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  border-radius: 16px;
  box-shadow: var(--shadow);
  font-size: 15px;
  font-weight: 650;
}

.video-frame small {
  margin-top: 5px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 500;
}

.play-button {
  position: relative;
  display: block;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  background: var(--blue);
  border-radius: 999px;
  box-shadow: 0 9px 20px rgba(37, 99, 235, 0.25);
}

.play-button::after {
  position: absolute;
  top: 19px;
  left: 23px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #ffffff;
  content: "";
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.callout {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  margin: 28px 0;
  padding: 18px 20px;
  border: 1px solid;
  border-radius: 12px;
}

.callout strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.callout p {
  margin: 0;
  color: #475467;
  font-size: 14px;
  line-height: 1.6;
}

.callout-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.callout-tip {
  border-color: #bfdbfe;
  background: var(--blue-soft);
}

.callout-tip .callout-icon {
  color: #ffffff;
  background: var(--blue);
}

.callout-warning {
  border-color: #fedf89;
  background: var(--amber-soft);
}

.callout-warning .callout-icon {
  color: #ffffff;
  background: var(--amber);
}

.callout-danger {
  border-color: #fecdca;
  background: var(--red-soft);
}

.callout-danger .callout-icon {
  color: #ffffff;
  background: var(--red);
}

.check-list {
  display: grid;
  gap: 11px;
  margin: 22px 0 28px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 31px;
}

.check-list li::before {
  position: absolute;
  top: 4px;
  left: 0;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  content: "✓";
  font-size: 11px;
  font-weight: 800;
}

.screenshot-placeholder > div {
  position: relative;
  display: flex;
  min-height: 285px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  overflow: hidden;
  padding: 34px;
  border: 1px dashed var(--border-strong);
  background:
    linear-gradient(90deg, rgba(229, 231, 235, 0.42) 1px, transparent 1px),
    linear-gradient(rgba(229, 231, 235, 0.42) 1px, transparent 1px),
    #fafbfc;
  background-size: 24px 24px;
  border-radius: 14px;
}

.placeholder-window {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  gap: 5px;
  height: 30px;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.placeholder-window span {
  width: 7px;
  height: 7px;
  background: #d0d5dd;
  border-radius: 999px;
}

.placeholder-lines {
  display: grid;
  width: 68%;
  gap: 12px;
}

.placeholder-lines span,
.placeholder-title,
.chat-answer {
  display: block;
  height: 12px;
  background: #e4e7ec;
  border-radius: 999px;
}

.placeholder-lines span:nth-child(2) {
  width: 86%;
}

.placeholder-lines span:nth-child(3) {
  width: 72%;
}

.placeholder-lines span:nth-child(4) {
  width: 91%;
}

.placeholder-sidebar {
  width: 28%;
  align-self: stretch;
  margin: -34px 0 -34px -34px;
  border-right: 1px solid var(--border);
  background: #f2f4f7;
}

.placeholder-lines.wide {
  width: 62%;
}

.tabs {
  margin-top: 28px;
  border: 1px solid var(--border);
  background: var(--surface-raised);
  border-radius: 13px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.tab-list {
  display: flex;
  gap: 4px;
  padding: 5px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  border-radius: 13px 13px 0 0;
}

.tab-list button {
  padding: 8px 14px;
  color: var(--muted);
  border: 0;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}

.tab-list button:hover {
  color: var(--text);
}

.tab-list button[aria-selected="true"] {
  color: var(--text);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
}

[role="tabpanel"] {
  padding: 24px 26px 20px;
}

[role="tabpanel"] p {
  color: #475467;
}

[role="tabpanel"][hidden] {
  display: none;
}

.compact-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 23px;
  color: #475467;
  font-size: 14px;
}

code {
  padding: 2px 5px;
  color: #344054;
  background: #f2f4f7;
  border-radius: 5px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

.code-block {
  position: relative;
  overflow: hidden;
  margin: 18px 0 30px;
  border: 1px solid #293244;
  background: var(--code);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.12);
}

.code-toolbar {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px 7px 16px;
  color: #9ca3af;
  border-bottom: 1px solid #293244;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.copy-button {
  min-width: 66px;
  padding: 7px 11px;
  color: #344054;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    color 140ms ease;
}

.copy-button:hover {
  color: var(--blue-dark);
  border-color: #9dbcfb;
  background: var(--blue-soft);
}

.code-toolbar .copy-button {
  color: #d1d5db;
  border-color: #3b4558;
  background: #1f2937;
}

.code-toolbar .copy-button:hover {
  color: #ffffff;
  border-color: #62708a;
  background: #283549;
}

.copy-button.copied {
  color: #067647;
  border-color: #6ce9a6;
  background: #ecfdf3;
}

.code-block pre {
  overflow-x: auto;
  margin: 0;
  padding: 22px;
  color: var(--code-text);
  font-size: 13px;
  line-height: 1.75;
  tab-size: 2;
}

.code-block pre code {
  padding: 0;
  color: inherit;
  background: transparent;
  border-radius: 0;
  font-size: inherit;
}

.token-key,
.token-command {
  color: #93c5fd;
}

.token-string {
  color: #86efac;
}

.token-punctuation {
  color: #d1d5db;
}

.token-flag {
  color: #f0abfc;
}

.token-number {
  color: #fcd34d;
}

.copy-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.definition-list {
  overflow: hidden;
  margin: 25px 0 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.definition-list > div {
  display: grid;
  grid-template-columns: 210px 1fr;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.definition-list > div:last-child {
  border-bottom: 0;
}

.definition-list dt,
.definition-list dd {
  margin: 0;
}

.definition-list dd {
  font-size: 14px;
}

.placeholder-connector {
  display: grid;
  width: min(100%, 490px);
  grid-template-columns: auto 1fr auto;
  gap: 15px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.placeholder-logo {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  background: var(--text);
  border-radius: 9px;
  font-weight: 800;
}

.placeholder-title {
  width: 57%;
}

.placeholder-toggle {
  position: relative;
  width: 38px;
  height: 22px;
  background: var(--blue);
  border-radius: 999px;
}

.placeholder-toggle::after {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-radius: 999px;
  content: "";
}

.placeholder-chat {
  display: grid;
  width: min(100%, 510px);
  gap: 15px;
}

.chat-question {
  width: 62%;
  height: 42px;
  margin-left: auto;
  background: #eaf1ff;
  border-radius: 13px 13px 3px 13px;
}

.chat-answer {
  width: 84%;
  height: 14px;
}

.chat-answer.short {
  width: 58%;
}

.prompt-grid {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.prompt-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
  margin: 25px 0;
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
}

.prompt-grid .prompt-card {
  margin: 0;
}

.prompt-card p {
  margin: 6px 0 0;
  color: #344054;
  font-size: 14px;
  line-height: 1.65;
}

.prompt-label {
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.prompt-copy {
  white-space: nowrap;
}

.faq-list {
  margin-top: 25px;
  border-top: 1px solid var(--border);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  position: relative;
  padding: 20px 42px 20px 0;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 22px;
  right: 8px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  content: "+";
  font-size: 19px;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details > div {
  padding: 0 42px 18px 0;
  color: #475467;
  font-size: 14px;
}

.faq-list details p {
  margin: 0;
}

.support-section {
  margin-top: 70px;
  padding: 38px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 90% 0%, rgba(37, 99, 235, 0.07), transparent 35%),
    var(--surface);
  border-radius: 16px;
}

.support-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.support-links a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 15px;
  color: var(--text);
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 10px;
  text-decoration: none;
}

.support-links a:hover {
  border-color: #9dbcfb;
}

.support-links a > span:first-child {
  color: var(--blue);
  font-size: 19px;
}

.support-links a > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.support-links strong {
  font-size: 13px;
}

.support-links small {
  overflow: hidden;
  margin-top: 2px;
  color: var(--subtle);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.placeholder-note {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.local-section {
  padding-top: 72px;
}

footer {
  display: flex;
  justify-content: space-between;
  margin-top: 85px;
  padding: 28px 0 45px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 12px;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--muted);
}

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

  .page-shell {
    display: block;
  }

  .mobile-header {
    position: sticky;
    z-index: 30;
    top: 0;
    display: flex;
    height: 64px;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
  }

  .mobile-brand {
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.04em;
  }

  .mobile-brand .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 13px;
  }

  .menu-button {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 7px 10px;
    color: var(--text);
    border: 1px solid var(--border);
    background: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 650;
  }

  .menu-icon {
    position: relative;
    width: 15px;
    height: 10px;
    border-top: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
  }

  .menu-icon::after {
    position: absolute;
    top: 3px;
    right: 0;
    left: 0;
    border-top: 1.5px solid currentColor;
    content: "";
  }

  .sidebar {
    position: fixed;
    z-index: 25;
    top: 64px;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.12);
  }

  .sidebar.open {
    display: block;
  }

  .sidebar-inner {
    position: static;
    height: auto;
    padding: 15px 20px 20px;
  }

  .sidebar .brand,
  .sidebar-note,
  .toc-label {
    display: none;
  }

  .toc {
    margin: 0;
  }

  .toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .toc a {
    padding: 9px 10px;
  }

  .doc-section {
    scroll-margin-top: 70px;
  }

  .hero {
    padding-top: 64px;
  }
}

@media (max-width: 600px) {
  article,
  footer {
    width: min(calc(100% - 36px), var(--content-width));
  }

  .doc-section {
    padding-top: 64px;
  }

  .hero {
    padding-top: 52px;
  }

  .hero h1 {
    font-size: 39px;
  }

  .hero-summary {
    font-size: 17px;
  }

  .hero-meta {
    display: grid;
    gap: 2px;
  }

  .hero-meta span[aria-hidden="true"] {
    display: none;
  }

  .video-frame {
    aspect-ratio: 4 / 3;
  }

  h2 {
    font-size: 29px;
  }

  .step-number {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    font-size: 15px;
    vertical-align: 3px;
  }

  .screenshot-placeholder > div {
    min-height: 230px;
    padding: 24px;
  }

  .placeholder-sidebar {
    margin: -24px 0 -24px -24px;
  }

  .tab-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .tab-list button {
    padding: 8px 6px;
    font-size: 11px;
  }

  [role="tabpanel"] {
    padding: 20px;
  }

  .definition-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .prompt-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .prompt-copy {
    justify-self: start;
  }

  .support-section {
    margin-inline: -4px;
    padding: 26px 22px;
  }

  .support-links {
    grid-template-columns: 1fr;
  }

  .toc ol {
    grid-template-columns: 1fr;
  }

  footer {
    display: grid;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
