.ios-guide-page {
  background: #0a0a0a;
  padding-bottom: 0;
}

.ios-guide-page [hidden] {
  display: none !important;
}

.ios-guide-page h1,
.ios-guide-page h2 {
  letter-spacing: 0;
}

.guide-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-header .guide-header-inner {
  min-height: 88px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.guide-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.guide-brand img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: contain;
}

.guide-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.guide-language-switcher button {
  min-height: 42px;
  letter-spacing: 0;
}

.guide-language-switcher ul {
  z-index: 10;
}

.guide-back-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.guide-back-link:hover {
  border-color: var(--border-accent);
  color: var(--accent);
}

.guide-main {
  min-height: 100vh;
  padding: 144px 0 72px;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 560px);
  justify-content: center;
  align-items: start;
  gap: clamp(48px, 8vw, 112px);
}

.guide-intro {
  position: sticky;
  top: 136px;
  padding-top: 28px;
}

.guide-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  margin-bottom: 24px;
  border: 1px solid rgba(90, 200, 250, 0.38);
  border-radius: 4px;
  color: #5ac8fa;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.guide-intro h1 {
  max-width: 420px;
  margin-bottom: 18px;
  color: var(--text-primary);
  font-size: clamp(34px, 3.4vw, 42px);
  line-height: 1.12;
}

.guide-subtitle {
  max-width: 360px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.guide-browser-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 360px;
  margin-top: 28px;
  padding: 14px 16px;
  border-left: 3px solid #5ac8fa;
  background: rgba(90, 200, 250, 0.08);
  color: #b8e7fb;
}

.guide-browser-notice.is-warning {
  border-left-color: #ff9f0a;
  background: rgba(255, 159, 10, 0.09);
  color: #ffd28a;
}

.guide-notice-mark {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.guide-browser-notice p {
  font-size: 13px;
  line-height: 1.65;
}

.guide-install-button {
  width: 100%;
  max-width: 360px;
  min-height: 54px;
  gap: 12px;
  margin-top: 24px;
  letter-spacing: 0;
}

.guide-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 360px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.guide-meta div + div {
  padding-left: 24px;
  border-left: 1px solid var(--border);
}

.guide-meta dt {
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}

.guide-meta dd {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
}

.guide-walkthrough {
  width: 100%;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-secondary);
}

.guide-walkthrough-heading {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
}

.guide-walkthrough-heading > div:first-child {
  flex: 0 0 auto;
}

.guide-walkthrough-heading p {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}

.guide-walkthrough-heading strong {
  color: var(--text-primary);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.guide-progress {
  flex: 1;
  height: 3px;
  margin-bottom: 7px;
  overflow: hidden;
  background: var(--border);
}

.guide-progress span {
  display: block;
  width: 16.6667%;
  height: 100%;
  background: #5ac8fa;
  transition: width 0.3s ease;
}

.guide-step-copy {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  min-height: 92px;
  margin-bottom: 18px;
}

.guide-step-copy > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.guide-step-copy h2 {
  margin-bottom: 6px;
  font-family: inherit;
  color: var(--text-primary);
  font-size: 19px;
  line-height: 1.4;
}

.guide-step-copy p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.65;
}

.guide-image-frame {
  width: min(100%, 360px);
  aspect-ratio: 750 / 1333;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #000000;
}

.guide-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.guide-controls {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) auto minmax(96px, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.guide-control-button {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.guide-control-button:hover:not(:disabled) {
  border-color: var(--border-accent);
  color: var(--accent);
}

.guide-control-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.guide-control-next {
  justify-self: end;
  border-color: var(--border-accent);
  color: var(--accent);
}

.guide-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.guide-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #454545;
  cursor: pointer;
  transition: width 0.2s ease, border-radius 0.2s ease, background 0.2s ease;
}

.guide-dots button.active {
  width: 20px;
  border-radius: 4px;
  background: #5ac8fa;
}

.guide-mobile-action {
  display: none;
}

@media (max-width: 900px) {
  .guide-main {
    padding-top: 118px;
  }

  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 620px;
    gap: 46px;
  }

  .guide-intro {
    position: static;
    padding-top: 12px;
  }

  .guide-intro h1,
  .guide-subtitle,
  .guide-browser-notice,
  .guide-install-button,
  .guide-meta {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .ios-guide-page {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .guide-header .guide-header-inner {
    min-height: 68px;
    padding: 10px 18px;
  }

  .guide-brand {
    gap: 10px;
    font-size: 14px;
  }

  .guide-brand img {
    width: 40px;
    height: 40px;
  }

  .guide-header-actions {
    min-width: 0;
    gap: 8px;
    margin-left: auto;
  }

  .ios-guide-page .guide-language-switcher {
    display: block;
  }

  .guide-language-switcher > button {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .guide-language-switcher ul {
    right: 0;
    min-width: 128px;
  }

  .guide-back-link {
    display: none;
  }

  .guide-main {
    padding: 96px 0 30px;
  }

  .guide-layout {
    gap: 34px;
    padding: 0 16px;
  }

  .guide-eyebrow {
    margin-bottom: 16px;
  }

  .guide-intro h1 {
    margin-bottom: 12px;
    font-size: 32px;
  }

  .guide-subtitle {
    font-size: 14px;
  }

  .guide-browser-notice {
    margin-top: 20px;
  }

  .guide-install-button {
    display: none;
  }

  .guide-meta {
    margin-top: 22px;
  }

  .guide-walkthrough {
    padding: 18px 14px;
  }

  .guide-walkthrough-heading {
    margin-bottom: 18px;
  }

  .guide-step-copy {
    min-height: 96px;
  }

  .guide-step-copy h2 {
    font-size: 17px;
  }

  .guide-image-frame {
    width: min(100%, 390px);
  }

  .guide-controls {
    grid-template-columns: minmax(88px, 1fr) auto minmax(88px, 1fr);
    gap: 8px;
  }

  .guide-control-button {
    min-height: 42px;
    padding: 8px;
    font-size: 11px;
  }

  .guide-dots {
    gap: 5px;
  }

  .guide-dots button {
    width: 6px;
    height: 6px;
  }

  .guide-dots button.active {
    width: 16px;
  }

  .guide-mobile-action {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: block;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .guide-mobile-action .btn {
    width: 100%;
    min-height: 52px;
    gap: 10px;
    letter-spacing: 0;
  }
}

@media (max-width: 390px) {
  .guide-step-copy {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
  }

  .guide-step-copy > span {
    width: 36px;
    height: 36px;
  }

  .guide-control-button span:not([aria-hidden="true"]) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-progress span,
  .guide-dots button,
  .guide-control-button {
    transition: none;
  }
}
