/* Shared styles for guide pages: pairing.html, link.html */

html, body {
  margin: 0;
  padding: 0;
  background-color: #fff;
  width: 100%;
  min-height: 100vh;
  height: auto;
}

body {
  display: flex;
  flex-direction: column;
}

.legal-text {
  position: relative;
  margin-left: var(--content-left);
  margin-top: var(--logo-margin-top);
  width: var(--content-width);
  overflow-x: visible;
  overflow-y: visible;
  flex: 1;
  padding-bottom: 80px;
  color: rgba(51, 51, 51, 0.70);
  font-family: 'Satoshi', sans-serif;
  font-size: clamp(14px, 1.65vw, 22px);
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
}

.page-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 24px;
}

.header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-title {
  font-family: 'Satoshi', sans-serif;
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 700;
  color: #000000;
  margin: 0;
  letter-spacing: 0px;
  line-height: 1.15;
}

.page-subtitle {
  font-family: 'Satoshi', sans-serif;
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 400;
  color: rgba(51, 51, 51, 0.6);
  margin: 8px 0 0 0;
  line-height: 1.5;
}

.app-badges {
  display: flex;
  gap: 12px;
}

.app-badge-link img {
  height: 44px;
  width: auto;
}

/* Steps Section */
.steps-section {
  padding: 20px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: fit-content;
  margin-bottom: 24px;
}

.steps-title {
  font-family: 'Satoshi', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #333;
  margin-bottom: 14px;
}

.steps-row {
  font-family: 'Satoshi', sans-serif;
  font-size: 15px;
  color: rgba(51, 51, 51, 0.8);
  line-height: 1.6;
  margin-bottom: 14px;
}

.steps-text {
  font-family: 'Satoshi', sans-serif;
  font-size: 13px;
  color: rgba(51, 51, 51, 0.8);
  margin-bottom: 12px;
  line-height: 1.5;
}

.steps-list {
  font-family: 'Satoshi', sans-serif;
  font-size: 13px;
  color: rgba(51, 51, 51, 0.7);
  margin-bottom: 12px;
}

.steps-list p {
  margin: 0 0 6px 0;
}

.steps-list ol {
  margin: 0 0 0 16px;
  padding: 0;
}

.steps-list li {
  margin-bottom: 4px;
}

.steps-note {
  font-family: 'Satoshi', sans-serif;
  font-size: 15px;
  color: rgba(51, 51, 51, 0.8);
  margin-bottom: 16px;
  line-height: 1.6;
}

.steps-note a {
  color: #333333;
  text-decoration: underline;
}

.eligibility-section-simple {
  margin-bottom: 24px;
}

.app-download-mini {
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.app-download-mini .app-download-title {
  font-size: 14px;
  margin-bottom: 10px;
}

.app-download-mini .app-badges {
  flex-direction: column;
  gap: 8px;
}

.app-download-mini .app-badge-link img {
  height: 36px;
}

/* PDF Guide Section */
.guide-section {
  flex: 1;
  min-width: 0;
}

.pdf-mobile-btn,
.pdf-mobile-btn:hover,
.pdf-mobile-btn:active,
.pdf-mobile-btn:visited,
.pdf-mobile-btn:focus {
  text-decoration: none !important;
}

.pdf-mobile-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 200px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.pdf-mobile-btn:hover,
.pdf-mobile-btn:active {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.pdf-mobile-btn img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.pdf-mobile-btn-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdf-mobile-btn span {
  font-family: 'Satoshi', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #333333;
  line-height: 1.3;
}

.pdf-mobile-btn-arrow {
  color: #666666;
  transition: transform 0.2s ease;
}

.pdf-mobile-btn:hover .pdf-mobile-btn-arrow,
.pdf-mobile-btn:active .pdf-mobile-btn-arrow {
  transform: translate(3px, -3px);
  color: #000000;
}

@media (max-width: 1024px) {
  .pdf-container {
    display: none;
  }

  .pdf-mobile-btn {
    display: flex;
  }
}

.pdf-container {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.pdf-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Satoshi', sans-serif;
  font-size: 14px;
  color: rgba(51, 51, 51, 0.5);
  z-index: 1;
  border-radius: 12px;
}

.pdf-container iframe {
  position: relative;
  z-index: 2;
}

.pdf-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, rgba(255,255,255,0.95) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 0 0 12px 12px;
}

.scroll-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Satoshi', sans-serif;
  font-size: 11px;
  color: rgba(51, 51, 51, 0.5);
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.scroll-hint svg {
  width: 12px;
  height: 12px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* Expand Button */
.expand-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
  color: #333;
}

.expand-btn:hover {
  background: #000;
  color: #fff;
  transform: scale(1.05);
}

/* Fullscreen PDF Modal */
.pdf-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-sizing: border-box;
}

.pdf-modal.active {
  display: flex;
}

.pdf-modal iframe {
  width: 100%;
  height: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.08);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: rgba(0, 0, 0, 0.15);
  transform: scale(1.1);
}

.step-label {
  font-family: 'Satoshi', sans-serif;
  font-weight: 500;
  font-size: 11px;
  color: rgba(51, 51, 51, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.app-download-title {
  font-family: 'Satoshi', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
}

.help-section {
  margin-top: 48px;
  margin-bottom: 48px;
}

.help-title {
  font-family: 'Satoshi', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #333;
  margin-bottom: 8px;
}

.help-text {
  font-family: 'Satoshi', sans-serif;
  font-size: 16px;
  color: rgba(51, 51, 51, 0.7);
}

.help-email {
  color: #333333;
  text-decoration: underline;
}

/* Video Section */
.video-section {
  flex: 1;
  min-width: 0;
}

.video-container {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.video-container video {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.mute-btn:hover {
  background: rgba(0,0,0,0.85) !important;
  transform: translate(-50%, -50%) scale(1.1);
}

@media (max-width: 1024px) {
  .mute-btn {
    width: 60px !important;
    height: 60px !important;
  }

  .mute-btn svg {
    width: 28px;
    height: 28px;
  }
}

/* Content row - Video and PDF side by side */
.content-row {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  align-items: stretch;
}

.content-row .video-section,
.content-row .guide-section {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.content-row .video-container {
  flex: 1;
  position: relative;
}

.content-row .pdf-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.content-row .pdf-container iframe {
  flex: 1;
  min-height: 400px;
}

.content-row .video-container video {
  flex: 1;
  object-fit: contain;
  background: #000;
}

@media (max-width: 1024px) {
  .content-row {
    flex-direction: row;
    gap: 12px;
    margin-bottom: 24px;
    height: 200px;
  }

  .content-row .video-section,
  .content-row .guide-section {
    flex: 1;
    min-width: 0;
    height: 200px;
  }

  .content-row .video-container {
    flex: 1;
    position: relative;
    height: 200px;
  }

  .content-row .video-container video {
    height: 200px;
    object-fit: cover;
  }

  .content-row .pdf-container {
    flex: 1;
  }

  .content-row .pdf-container iframe {
    min-height: 250px;
  }
}

/* Modal content row */
.modal-content-row {
  display: flex;
  gap: 24px;
  width: 100%;
  height: 100%;
  max-width: 1400px;
  max-height: 85vh;
}

.modal-content-row .video-container,
.modal-content-row iframe {
  flex: 1;
  min-width: 0;
  height: 100%;
  border-radius: 12px;
}

.modal-content-row .video-container {
  position: relative;
}

.modal-content-row .video-container video {
  max-height: 85vh;
  width: 100%;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .modal-content-row {
    flex-direction: column;
    gap: 16px;
    max-height: none;
    overflow-y: auto;
    padding: 20px;
  }

  .modal-content-row .video-container {
    flex: none;
    height: auto;
    min-height: 300px;
    position: relative;
  }

  .modal-content-row iframe {
    flex: none;
    height: auto;
    min-height: 300px;
  }

  .modal-content-row .video-container video {
    max-height: 50vh;
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .legal-text {
    font-family: 'Satoshi', sans-serif;
    font-size: 15px !important;
    line-height: 20px;
    padding-bottom: 40px;
    padding-left: 2.5vw;
    padding-right: 2.5vw;
    font-weight: 400;
  }
  .guide-section {
    flex: 1;
    max-width: 100%;
  }
  .pdf-container iframe {
    height: 350px;
  }
  .app-badges {
    flex-direction: column;
    gap: 10px;
  }
  .app-badge-link img {
    height: 40px;
  }
  .steps-section {
    padding: 20px;
  }
}
