.theme-transcribe {
  --accent: #67e8f9;
  --accent-2: #a78bfa;
  --accent-rgb: 103, 232, 249;
}

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

.guide-page {
  font-family: "Vazir", Tahoma, "Segoe UI", Arial, sans-serif;
}

.skip-link {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 20;
  transform: translateY(-160%);
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--accent);
  color: #071018;
  font-weight: 800;
  text-decoration: none;
}

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

.guide-page h1,
.guide-page h2,
.guide-page h3,
.guide-page p,
.guide-page li,
.guide-page a,
.guide-page button,
.guide-page span {
  letter-spacing: normal;
}

.guide-page .product-hero h1 {
  font-size: clamp(3.2rem, 6.4vw, 6.2rem);
  line-height: 1.08;
}

.guide-page .product-hero h1 span {
  line-height: 1.15;
}

.guide-page .product-lede {
  max-width: 64ch;
  line-height: 1.95;
}

.guide-page .micro-note {
  line-height: 1.8;
}

.guide-page .section-intro h2,
.guide-page .privacy-copy h2,
.guide-page .final-cta h2 {
  line-height: 1.18;
}

.guide-page .section-intro > p,
.guide-page .requirement-card p,
.guide-page .notice-card p,
.guide-page .notice-card li,
.guide-page .install-steps span {
  line-height: 1.95;
}

.guide-page .section-kicker,
.guide-page .release-badge,
.guide-page .requirement-card > span,
.guide-page .notice-label {
  letter-spacing: normal;
  text-transform: none;
}

.guide-page .back-link:hover {
  transform: translateX(2px);
}

.guide-page .benefit-card::before {
  right: auto;
  left: 20px;
}

.guide-page .privacy-panel::after,
.guide-page .final-cta::after {
  right: auto;
  left: -80px;
}

.guide-page .visual-frame::after,
.guide-page .final-cta::after {
  display: none;
  content: "";
}

.guide-page .privacy-list li {
  grid-template-columns: 26px minmax(0, 1fr);
}

.guide-page .notice-card ul {
  padding: 0 20px 0 0;
}

.guide-page .product-footer a:last-child {
  justify-self: end;
}

.guide-visual-frame {
  overflow: visible;
}

.visual-chip {
  position: absolute;
  display: grid;
  min-width: 58px;
  min-height: 34px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  border-radius: 999px;
  background: rgba(8, 12, 21, 0.88);
  box-shadow: 0 0 26px rgba(var(--accent-rgb), 0.16);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
}

.chip-gpu {
  top: 12%;
  left: -5%;
}

.chip-txt {
  right: -2%;
  bottom: 25%;
}

.chip-srt {
  bottom: 4%;
  left: 18%;
}

.guide-toc {
  position: sticky;
  top: 12px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  background: rgba(9, 13, 22, 0.9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  scrollbar-width: none;
}

.guide-toc::-webkit-scrollbar {
  display: none;
}

.guide-page .content-section {
  scroll-margin-top: 86px;
}

.guide-toc span,
.guide-toc a {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.76rem;
  white-space: nowrap;
}

.guide-toc span {
  color: var(--accent);
  font-weight: 900;
}

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

.guide-toc a:hover {
  background: rgba(var(--accent-rgb), 0.09);
  color: var(--ink);
}

.step-stack {
  display: grid;
  gap: 14px;
}

.guide-step {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(22px, 4vw, 36px);
  background:
    linear-gradient(120deg, rgba(var(--accent-rgb), 0.07), transparent 44%),
    rgba(16, 22, 36, 0.72);
}

.step-number {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.34);
  border-radius: 16px;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 900;
}

.guide-step h3 {
  margin: 3px 0 0;
  font-size: 1.24rem;
}

.guide-step p {
  max-width: 88ch;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.95;
}

.guide-step a,
.source-panel a,
.trouble-grid a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.command-list {
  display: grid;
  gap: 16px;
}

.command-panel,
.code-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(6, 10, 17, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.command-heading,
.code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 15px 18px;
  background: rgba(255, 255, 255, 0.025);
}

.command-heading span {
  color: #edf0f8;
  font-size: 0.88rem;
  font-weight: 800;
}

.command-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.command-heading button,
.code-actions button,
.code-actions a,
.inline-command button {
  min-height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  border-radius: 11px;
  padding: 8px 14px;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

.command-heading button:hover,
.code-actions button:hover,
.code-actions a:hover,
.inline-command button:hover {
  border-color: rgba(var(--accent-rgb), 0.62);
  background: rgba(var(--accent-rgb), 0.14);
}

.code-actions button:disabled {
  cursor: wait;
  opacity: 0.5;
}

.command-panel pre,
.code-panel pre {
  direction: ltr;
  max-width: 100%;
  margin: 0;
  overflow: auto;
  padding: 22px;
  text-align: left;
  white-space: pre;
  tab-size: 4;
}

.command-panel code,
.code-panel code,
.inline-command code {
  color: #d9e6f3;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.79rem;
  line-height: 1.75;
  unicode-bidi: plaintext;
}

.command-note,
.code-status,
.noscript-note {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 12px 18px;
  color: var(--muted);
  font-size: 0.72rem;
}

.copy-announcement {
  min-height: 1.5em;
  margin: 12px 0 0;
  color: var(--success);
  font-size: 0.78rem;
}

.code-toolbar > div,
.code-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.code-toolbar bdi {
  margin-right: 7px;
  color: #dce5f2;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.78rem;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff6b78; }
.dot-yellow { background: #ffd166; }
.dot-green { background: #68e0a5; }

.code-panel pre {
  max-height: 680px;
  min-height: 260px;
}

.code-actions a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trouble-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.trouble-grid details {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: rgba(16, 22, 36, 0.72);
}

.trouble-grid details[open] {
  border-color: rgba(var(--accent-rgb), 0.3);
}

.trouble-grid summary {
  color: #edf1f8;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 800;
}

.trouble-grid p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.9;
}

.inline-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px;
  background: rgba(4, 8, 14, 0.68);
}

.inline-command code {
  direction: ltr;
  overflow-x: auto;
  padding: 0 6px;
  text-align: left;
  white-space: nowrap;
}

.source-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(34px, 7vw, 90px);
  margin: 80px 0;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 28px;
  padding: clamp(28px, 6vw, 64px);
  background:
    radial-gradient(circle at 0 100%, rgba(var(--accent-rgb), 0.13), transparent 36%),
    rgba(16, 22, 36, 0.76);
}

.source-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.2;
}

.source-panel p:not(.section-kicker) {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.9;
}

.source-panel ul {
  display: grid;
  align-content: start;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-panel li {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px 14px;
  background: rgba(5, 9, 15, 0.42);
  font-size: 0.8rem;
}

@media (max-width: 760px) {
  .guide-page .product-hero h1 {
    font-size: clamp(3rem, 13vw, 5rem);
  }

  .guide-toc {
    top: 7px;
    margin-inline: -8px;
  }

  .trouble-grid,
  .source-panel {
    grid-template-columns: 1fr;
  }

  .guide-step {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
  }

  .step-number {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .command-heading,
  .code-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .code-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .inline-command {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .guide-page .product-hero h1 {
    font-size: clamp(2.75rem, 14vw, 4.3rem);
  }

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

  .command-heading button,
  .code-actions button,
  .code-actions a,
  .inline-command button {
    justify-content: center;
    min-height: 46px;
  }

  .command-heading button {
    width: 100%;
  }

  .code-actions > * {
    flex: 1 1 140px;
  }

  .source-panel {
    border-radius: 22px;
  }
}
