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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Roboto Mono", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background-color: #edecec;
  color: #000;
  overflow: hidden; /* desktop default: no scroll */
}

/* Viewport wrapper */
.page {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fixed design canvas: 1280x832, JS scales it */
.canvas {
  position: relative;
  width: 1280px;
  height: 832px;
  background-color: #edecec;
  overflow: hidden;
  transform-origin: center center;
}

/* Absolute positions based on design pixels */
.logo-link {
  position: absolute;
  left: 63px;
  top: 76px;
  width: 173.28px;
  height: 70px;
  display: inline-flex;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.language-link {
  position: absolute;
  left: 1153px;
  top: 74px;
  width: 50px;
  height: 50px;
  display: inline-flex;
}

.language-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.camarsh-image {
  position: absolute;
  left: 171px;
  top: 20px;
  width: 938px;
  height: 793px;
  object-fit: contain;
}

.headline {
  position: absolute;
  left: 63px;
  top: 316px;
  width: 488px;
}

.headline-line-1 {
  margin: 0;
  font-family: "Roboto Mono", monospace;
  font-weight: 500;
  font-size: 64px;
  line-height: 1.1;
  text-align: left;
}

.headline-line-2 {
  position: absolute;
  left: 0;
  top: 67px; /* 383 - 316 */
  margin: 0;
  font-family: "Roboto Slab", serif;
  font-weight: 900;
  font-size: 128px;
  line-height: 1;
  text-align: left;
}

.learn-more-button {
  position: absolute;
  left: 63px;
  top: 558px;
  width: 292px;
  height: 70px;
  border-radius: 30px;
  background-color: #edecec;
  border: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.learn-more-label {
  font-family: "Roboto Mono", monospace;
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  color: #000000;
}

.lifetime-link {
  position: absolute;
  left: 77px;
  top: 704px;
  width: 178px;
  height: 46px;
  display: inline-flex;
}

.lifetime-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.scroll-top-button {
  position: absolute;
  left: 1095px;
  top: 685px;
  width: 100px;
  height: 97px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.scroll-top-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer {
  position: absolute;
  left: 521px;
  top: 804px;
  width: 239px;
  height: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.footer-link {
  font-family: "Roboto Mono", monospace;
  font-weight: 400;
  font-size: 12px;
  line-height: 24px;
  color: #000000;
  text-decoration: none;
}

/* PDF overlay */
.pdf-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  z-index: 10;
}

.pdf-overlay.is-open {
  display: flex;
}

.pdf-frame {
  width: 685px;
  height: 969px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.pdf-scroll {
  width: 100%;
  height: 100%;
  padding: 50px;
  box-sizing: border-box;
  overflow-y: auto;
  background: transparent;
}

.pdf-pages {
  width: 100%;
}

.pdf-page-wrapper {
  margin-bottom: 50px;
  padding: 25px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.pdf-page-wrapper:last-child {
  margin-bottom: 0;
}

.pdf-page-wrapper canvas {
  display: block;
  width: 100%;
  height: auto;
}

/* Mobile: keep same layout, just allow scrolling if needed */
@media (max-width: 768px) {
  body {
    overflow: auto;
  }
}


