
:root {
  --color-bg-primary: #09090b;
  --color-bg-secondary: #111113;
  --color-bg-tertiary: #18181b;
  --color-surface: #141416;
  --color-text-primary: #fafafa;
  --color-text-secondary: #a1a1aa;
  --color-text-tertiary: #52525b;
  --color-accent: #ff4200;
  --color-accent-hover: #ff5a1f;
  --color-accent-subtle: rgb(255 66 0 / 8%);
  --color-border: rgb(255 255 255 / 6%);
  --color-border-hover: rgb(255 255 255 / 15%);
  --font-primary:
    -apple-system, blinkmacsystemfont, 'Avenir Next', 'Segoe UI', 'Helvetica Neue', helvetica,
    arial, sans-serif;
  --text-display: clamp(2.2rem, 5vw + 0.5rem, 4.5rem);
  --text-heading: clamp(1.6rem, 3vw + 0.5rem, 2.8rem);
  --text-subheading: clamp(1.1rem, 1.5vw, 1.35rem);
  --text-body: clamp(0.95rem, 1.1vw, 1.05rem);
  --text-small: clamp(0.8rem, 0.9vw, 0.9rem);
  --text-label: 0.75rem;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}


*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background: var(--color-bg-primary);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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


.support-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgb(9 9 11 / 92%);
  backdrop-filter: blur(24px) saturate(140%);
  border-bottom: 1px solid var(--color-border);
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.support-header-logo img {
  height: 32px;
}


.legal-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 100px 24px 80px;
}

.legal-content h1 {
  font-size: var(--text-heading);
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.legal-meta {
  display: inline-block;
  font-size: var(--text-label);
  color: var(--color-text-tertiary);
  background: var(--color-bg-tertiary);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: var(--text-subheading);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-content p {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-content li {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--color-text-primary);
}


.guide-hub {
  max-width: 540px;
  margin: 0 auto;
  padding: 100px 24px 80px;
}

.guide-hub-header {
  text-align: center;
  margin-bottom: 32px;
}

.guide-hub-header h1 {
  font-size: var(--text-heading);
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.guide-hub-header p {
  font-size: var(--text-body);
  color: var(--color-text-tertiary);
}

.guide-list {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.guide-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  transition: background 0.15s ease;
}

.guide-list-item:last-child {
  border-bottom: none;
}

.guide-list-item:hover {
  background: rgb(255 255 255 / 4%);
}

.guide-list-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--color-accent-subtle);
  border: 1px solid rgb(255 66 0 / 12%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.guide-list-icon svg {
  width: 17px;
  height: 17px;
}

.guide-list-text {
  flex: 1;
  min-width: 0;
}

.guide-list-text h2 {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 2px;
  line-height: 1.3;
}

.guide-list-text p {
  font-size: var(--text-label);
  color: var(--color-text-tertiary);
  line-height: 1.4;
}

.guide-list-chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--color-text-tertiary);
  transition:
    color 0.15s ease,
    transform 0.15s ease;
}

.guide-list-item:hover .guide-list-chevron {
  color: var(--color-text-secondary);
  transform: translateX(3px);
}


.guide-layout {
  display: flex;
  min-height: 100vh;
}

.guide-sidebar {
  width: 240px;
  position: fixed;
  top: 64px;
  bottom: 0;
  left: 0;
  background: var(--color-bg-secondary);
  border-right: 1px solid var(--color-border);
  padding: 20px 0;
  overflow-y: auto;
}

.guide-sidebar ul {
  list-style: none;
}

.guide-sidebar li {
  border-bottom: 1px solid var(--color-border);
}

.guide-sidebar li:last-child {
  border-bottom: none;
}

.guide-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--color-text-tertiary);
  transition:
    color 0.2s ease,
    background 0.2s ease;
  text-decoration: none;
}

.guide-sidebar a:hover {
  color: var(--color-text-secondary);
  background: var(--color-bg-tertiary);
}

.guide-sidebar a.active {
  color: var(--color-accent);
  background: var(--color-accent-subtle);
  border-left: 3px solid var(--color-accent);
  padding-left: 15px;
}

.guide-sidebar a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.6;
}

.guide-sidebar a.active svg {
  opacity: 1;
}


.guide-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-label);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.guide-breadcrumb a {
  color: var(--color-text-tertiary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.guide-breadcrumb a:hover {
  color: var(--color-accent);
}

.guide-breadcrumb .separator {
  color: var(--color-text-tertiary);
  opacity: 0.4;
  font-size: var(--text-label);
}

.guide-breadcrumb .current {
  color: var(--color-text-secondary);
  font-weight: 500;
}

.guide-step {
  margin-left: auto;
  color: var(--color-text-tertiary);
  font-size: var(--text-label);
  font-weight: 500;
  background: var(--color-bg-tertiary);
  padding: 2px 10px;
  border-radius: var(--radius-md);
  white-space: nowrap;
}


.guide-content {
  margin-left: 240px;
  padding: 90px 40px 80px;
  flex: 1;
  max-width: 840px;
}

.guide-content h2 {
  font-size: var(--text-heading);
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  margin-top: 48px;
  clear: both;
}

.guide-content h2:first-child,
.guide-content section:first-child h2 {
  margin-top: 0;
}

.guide-content h3 {
  font-size: var(--text-subheading);
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
  margin-top: 32px;
  margin-bottom: 12px;
  clear: both;
}

.guide-content h4 {
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-top: 24px;
  margin-bottom: 8px;
}

.guide-content p {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 650px;
}

.guide-content img {
  border-radius: 20px;
  border: 2px solid rgb(180 180 180 / 15%);
  box-shadow:
    0 4px 20px rgb(0 0 0 / 30%),
    0 0 0 1px rgb(180 180 180 / 6%);
  background: linear-gradient(145deg, #211c18, #161210);
  padding: 3px;
  margin-bottom: 24px;
  height: auto;
  max-height: 35vh;
  cursor: zoom-in;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.guide-content img:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 28px rgb(0 0 0 / 40%),
    0 0 0 1px rgb(255 255 255 / 5%);
}


.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgb(0 0 0 / 92%);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgb(0 0 0 / 50%);
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  cursor: zoom-out;
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

.lightbox-overlay.active img {
  transform: scale(1);
}

.guide-content .image-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.guide-content .image-row img {
  max-width: 30%;
  margin-bottom: 0;
}

.guide-content .image-row--screenshots {
  flex-wrap: wrap;
  align-items: flex-start;
}

.guide-content .image-row--screenshots img {
  max-width: none;
  max-height: none;
  width: 172px;
  height: auto;
  flex-shrink: 1;
}

@media (width <= 600px) {
  .guide-content .image-row--screenshots img {
    max-height: none;
    height: auto;
    width: calc(50% - 6px);
    max-width: calc(50% - 6px);
  }
}

.guide-content .image-row--android-settings img {
  height: 260px;
  width: auto;
  max-width: none;
}

.guide-content section {
  margin-bottom: 48px;
}

.guide-content strong {
  color: var(--color-text-primary);
}

.guide-content a {
  color: var(--color-accent);
}


.guide-content img.guide-screenshot {
  float: right;
  width: 172px;
  max-height: none;
  margin: 0 0 16px 22px;
}

.guide-content section::after {
  content: '';
  display: table;
  clear: both;
}

.guide-content .guide-clear {
  clear: both;
}

.guide-mobile-reorder {
  display: contents;
}

@media (width <= 768px) {
  .guide-mobile-reorder {
    display: flex;
    flex-direction: column;
  }

  .guide-mobile-reorder .image-row--screenshots {
    order: -1;
  }
}

.guide-screenshot-pair {
  float: right;
  display: flex;
  gap: 8px;
  margin: 0 0 16px 22px;
}

.guide-content .guide-screenshot-pair img {
  width: 130px;
  max-height: none;
  margin-bottom: 0;
  float: none;
}

@media (width <= 768px) {
  .guide-screenshot-pair {
    float: none;
    justify-content: center;
    margin: 0 0 24px;
  }

  .guide-content .guide-screenshot-pair img {
    width: calc(50% - 4px);
    max-width: 172px;
  }
}


.guide-scan-alignment {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 24px;
  clear: both;
}

.guide-content .guide-scan-alignment > img {
  flex: 0 0 auto;
  height: 40vh;
  width: auto;
  max-height: 40vh;
  margin-bottom: 0;
}

.guide-scan-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.guide-content .guide-scan-figure img {
  height: 40vh;
  width: auto;
  max-height: 40vh;
  margin-bottom: 0;
}

.guide-scan-figure figcaption {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-text-primary);
  text-align: center;
}

.guide-content img.guide-lock-image {
  border: none;
  box-shadow: none;
  background: none;
  padding: 0;
  max-height: 25vh;
  width: auto;
  height: auto;
  margin-bottom: 0;
}

.guide-product-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex: 0 0 auto;
  width: 25%;
}

.guide-content .image-row--product {
  align-items: stretch;
  gap: 40px;
}

.guide-content .image-row--product .guide-product-figure img,
.guide-content .guide-product-figure img {
  border: none;
  box-shadow: none;
  background: none;
  padding: 0;
  margin-bottom: 0;
  max-height: none;
  width: 100%;
  max-width: 100%;
}

.guide-product-figure figcaption {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  text-align: center;
}

.guide-lock-composite {
  flex: 0 0 auto;
  position: relative;
  align-self: center;
}

.guide-content .guide-lock-composite > img {
  width: auto;
  height: auto;
  max-height: 25vh;
  max-width: 100%;
  display: block;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
  margin: 0;
}

.guide-lock-composite > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (width <= 600px) {
  .guide-scan-alignment {
    flex-flow: row wrap;
    align-items: flex-start;
    justify-content: center;
  }

  .guide-scan-figure {
    width: calc(50% - 6px);
  }

  .guide-content .guide-scan-figure img {
    height: auto;
    max-height: 35vh;
    width: auto;
    max-width: 100%;
  }

  .guide-content img.guide-lock-image {
    width: 60%;
    max-width: 260px;
    height: auto;
    max-height: none;
    margin: 12px auto 0;
  }
}


.guide-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  gap: 16px;
}

.guide-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text-tertiary);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 10px;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.guide-nav-link:hover {
  color: var(--color-accent);
  background: var(--color-accent-subtle);
}

.guide-nav-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.guide-nav-link--next {
  margin-left: auto;
}

.guide-nav-label {
  font-size: var(--text-label);
  color: var(--color-text-tertiary);
  display: block;
  margin-bottom: 2px;
}

.guide-nav-title {
  color: var(--color-text-secondary);
}

.guide-nav-link:hover .guide-nav-title {
  color: var(--color-accent);
}


.guide-hamburger {
  display: none;
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 200;
  width: 38px;
  height: 38px;
  font-size: 20px;
  padding: 0;
  cursor: pointer;
  color: var(--color-text-primary);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  line-height: 1;
  align-items: center;
  justify-content: center;
}


@media (width <= 768px) {
  .guide-sidebar {
    display: none;
    width: 100%;
    position: fixed;
    inset: 56px 0 auto;
    z-index: 150;
    padding: 12px 0;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .guide-sidebar.active {
    display: block;
  }

  .guide-hamburger {
    display: flex;
  }

  .guide-content {
    margin-left: 0;
    padding: 90px 20px 60px;
  }

  .guide-content p {
    max-width: 100%;
  }

  .guide-content
    .image-row:not(.image-row--android-settings, .image-row--product, .image-row--screenshots)
    img {
    max-width: 45%;
  }

  .guide-content img.guide-screenshot {
    float: none;
    width: auto;
    max-height: 35vh;
    margin: 0 0 24px;
  }

  .support-header {
    height: 56px;
    padding: 0 16px;
  }

  .support-header-logo {
    margin-right: auto;
  }

  body:has(.guide-hamburger) .support-header-logo {
    margin-left: 42px;
  }

  .legal-content {
    padding: 90px 16px 60px;
  }

  .guide-hub {
    padding: 90px 16px 60px;
  }

  .guide-nav-link {
    padding: 10px;
    font-size: 0.8rem;
  }
}

@media (width <= 768px) {
  .guide-content .image-row--android-settings {
    flex-direction: column;
    align-items: stretch;
  }

  .guide-content .image-row--android-settings > div {
    width: 100%;
  }

  .guide-content .image-row--android-settings img {
    height: auto;
    width: 100%;
    max-width: 100%;
    max-height: none;
  }
}

@media (width <= 480px) {
  .guide-content
    .image-row:not(.image-row--screenshots, .image-row--android-settings, .image-row--product) {
    flex-direction: column;
  }

  .guide-content
    .image-row:not(.image-row--screenshots, .image-row--android-settings, .image-row--product)
    img {
    max-width: 100%;
  }

  .guide-content .image-row--product {
    justify-content: center;
    gap: 16px;
  }

  .guide-product-figure {
    width: 44%;
  }

  .guide-product-figure figcaption {
    white-space: nowrap;
    font-size: 0.8rem;
  }
}

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