:root {
  color-scheme: light;
  --background: #f5f7f9;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #5b6472;
  --accent: #17a56b;
  --accent-soft: #e9f8f1;
  --line: rgba(31, 41, 55, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "TikTok Sans", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--background);
}

.page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background: var(--background);
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 24px 18px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

.module-menu-button,
.module-menu-backdrop {
  display: none;
}

.module-nav h2 {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-nav ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.module-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 0.94rem;
  line-height: 1.25;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.module-nav a:hover,
.module-nav a.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

.content {
  width: 100%;
  min-height: 100vh;
  padding: 36px;
  background-color: #fbfcfd;
  background-image: radial-gradient(circle, #ffffff 1.6px, transparent 1.6px);
  background-size: 18px 18px;
}

p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.module-panel {
  min-height: calc(100vh - 72px);
  display: grid;
}

.module-card {
  display: none;
  width: 100%;
  min-height: calc(100vh - 72px);
  padding: clamp(28px, 5vw, 64px);
  background-color: #fbfbfb;
  background-image: radial-gradient(circle, rgba(31, 41, 55, 0.22) 1px, transparent 1px);
  background-size: 22px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.module-card.is-visible {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.module-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.module-card h3 {
  width: min(880px, 100%);
  margin: 0 auto;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.25;
}

.module-card p {
  max-width: 880px;
  margin-top: 22px;
  margin-right: auto;
  margin-left: auto;
  padding: 18px 20px;
  color: #485260;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 8px;
  font-size: 1.06rem;
  line-height: 1.75;
}

.module-card strong {
  color: var(--text);
}

.module-card a {
  color: var(--accent);
  font-weight: 700;
}

.module-callout {
  border-color: rgba(23, 165, 107, 0.22);
  background: rgba(233, 248, 241, 0.88);
}

.module-video {
  width: min(620px, 100%);
  aspect-ratio: 16 / 9;
  margin: 22px auto 0;
  overflow: hidden;
  background: #101820;
  border: 1px solid rgba(31, 41, 55, 0.1);
  border-radius: 8px;
}

.module-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.module-video-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(880px, 100%);
  margin: 22px auto 0;
}

.module-video-row .module-video {
  width: 100%;
  margin-top: 0;
}

.module-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
  text-decoration: none;
}

.module-feature-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: min(880px, 100%);
  margin: 22px auto 0;
  padding: 20px;
  background: #ffffff;
  border: 1px solid rgba(23, 165, 107, 0.18);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.module-feature-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.module-feature-card h4 {
  margin: 0;
  color: var(--text);
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1.3;
}

.module-feature-card p {
  max-width: none;
  margin: 8px 0 0;
  padding: 0;
  color: #485260;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.module-feature-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 46px;
  padding: 0 18px;
  color: #ffffff !important;
  background: var(--accent);
  border-radius: 8px;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.module-feature-button:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow: 0 12px 24px rgba(23, 165, 107, 0.24);
}

.module-feature-button:focus-visible {
  outline: 3px solid rgba(23, 165, 107, 0.28);
  outline-offset: 3px;
}

.module-steps {
  width: min(880px, 100%);
  margin: 22px auto 0;
  padding: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 8px;
}

.module-steps h4 {
  margin: 0;
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.3;
}

.module-steps ol {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding-left: 22px;
  color: #485260;
  font-size: 1.02rem;
  line-height: 1.65;
}

.module-steps li::marker {
  color: var(--accent);
  font-weight: 900;
}

.module-steps p {
  max-width: none;
  margin: 16px 0 0;
  padding: 0;
  color: #485260;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.65;
}

.module-android-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 360px));
  align-items: stretch;
  justify-content: center;
  gap: 24px;
  width: min(760px, 100%);
  margin: 24px auto 0;
}

.module-android-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  min-height: 520px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.module-android-card h4 {
  width: 100%;
  margin: 0;
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.module-download-area {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  margin: 0;
}

.module-short-video {
  display: block;
  width: min(238px, 100%);
  aspect-ratio: 9 / 16;
  border: 0;
  border-radius: 8px;
  background: #000000;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.module-qr-code {
  display: block;
  width: min(240px, 100%);
  height: auto;
  border-radius: 8px;
}

.module-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(100%, 310px);
  min-height: 74px;
  padding: 11px 20px;
  color: #ffffff;
  background: #000000;
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.module-download-label {
  display: grid;
  gap: 1px;
  color: #ffffff;
  text-align: left;
}

.module-download-label small {
  color: #ffffff;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.1;
}

.module-download-label strong {
  color: #ffffff;
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}

.module-download-button:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.26);
}

.module-download-button:focus-visible {
  outline: 3px solid rgba(23, 165, 107, 0.28);
  outline-offset: 3px;
}

.module-download-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 49px;
}

.module-pro-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(880px, 100%);
  margin: 22px auto 0;
}

.module-pro-steps > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 118px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e4e8ef;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  text-align: left;
}

.module-pro-steps > div::before {
  content: "";
  display: block;
  order: 2;
  width: 100%;
  aspect-ratio: 414 / 747;
  margin-top: 8px;
  background-image: url("passo-a-passo-zapme.png");
  background-repeat: no-repeat;
  background-size: 300% 100%;
  background-position: -2% center;
  border-radius: 6px;
}

.module-pro-steps > div:nth-child(2)::before {
  background-position: 46% center;
}

.module-pro-steps > div:nth-child(3)::before {
  background-position: 98% center;
}

.module-pro-steps span {
  display: flex;
  align-items: center;
  justify-content: center;
  order: 1;
  flex: 1;
  width: 100%;
  min-height: 92px;
  padding: 14px;
  margin-top: 0;
  color: #4b5563;
  background: #f8fafc;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}

.module-license-activation {
  width: min(880px, 100%);
  margin: 22px auto 0;
  padding: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(23, 165, 107, 0.22);
  border-radius: 8px;
}

.module-license-activation h4 {
  margin: 0;
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.3;
}

.module-license-activation p {
  max-width: none;
  margin: 12px 0 0;
  padding: 0;
  color: #485260;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 1rem;
  line-height: 1.65;
}

.pro-floating-button {
  display: none;
  visibility: hidden;
  position: fixed;
  right: 28px;
  bottom: 24px;
  z-index: 20;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #34d399 0%, #17a56b 46%, #087f5b 100%);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(23, 165, 107, 0.3), 0 6px 14px rgba(52, 211, 153, 0.34);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.pro-floating-button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 20px 42px rgba(23, 165, 107, 0.38), 0 8px 18px rgba(52, 211, 153, 0.42);
  filter: saturate(1.08);
}

.pro-floating-button img {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.feedback-floating {
  position: fixed;
  right: 28px;
  bottom: 24px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 10px 8px 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(31, 41, 55, 0.12), 0 6px 14px rgba(31, 41, 55, 0.08);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
}

.feedback-floating > div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feedback-button,
.feedback-message-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.feedback-button:hover,
.feedback-message-button:hover {
  transform: translateY(-1px);
  background: var(--accent-soft);
  box-shadow: 0 8px 18px rgba(31, 41, 55, 0.12);
}

.feedback-floating > .feedback-popup {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: min(360px, calc(100vw - 28px));
  padding: 18px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(31, 41, 55, 0.14), 0 6px 14px rgba(31, 41, 55, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.feedback-popup p {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.feedback-textarea {
  width: 100%;
  min-height: 240px;
  margin-top: 0;
  padding: 10px 12px;
  color: var(--text);
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.4;
  resize: vertical;
}

.feedback-textarea:focus {
  outline: 2px solid rgba(23, 165, 107, 0.25);
  border-color: var(--accent);
}

.feedback-send-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin-top: 0;
  padding: 0 14px;
  color: #ffffff;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  transition: transform 160ms ease, filter 160ms ease;
}

.feedback-send-button:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
}

.feedback-floating.is-popup-open .feedback-popup {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.feedback-floating.is-sent {
  pointer-events: none;
}

.feedback-floating.is-sent span {
  color: var(--accent);
}

.feedback-floating.is-sent .feedback-button {
  opacity: 0.45;
}

@media (max-width: 860px) {
  .page {
    grid-template-columns: 1fr;
  }

  .module-menu-button {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 35;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    height: 44px;
    padding: 0 14px 0 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(31, 41, 55, 0.14);
    cursor: pointer;
  }

  .module-menu-icon {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
  }

  .module-menu-icon span {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .module-menu-text {
    color: var(--text);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
  }

  body.is-module-menu-open .module-menu-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  body.is-module-menu-open .module-menu-icon span:nth-child(2) {
    opacity: 0;
  }

  body.is-module-menu-open .module-menu-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .module-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 25;
    display: block;
    background: rgba(31, 41, 55, 0.38);
    border: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
  }

  body.is-module-menu-open .module-menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 30;
    width: min(320px, 86vw);
    height: 100vh;
    max-height: none;
    padding-top: 72px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    box-shadow: 18px 0 34px rgba(31, 41, 55, 0.14);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  body.is-module-menu-open .sidebar {
    transform: translateX(0);
  }

  .module-nav ul {
    grid-template-columns: 1fr;
  }

  .content {
    min-height: 100vh;
    padding: 0;
  }

  .module-panel,
  .module-card {
    min-height: 100vh;
  }

  .module-card {
    border: 0;
    border-radius: 0;
    padding: 76px 18px 96px;
  }

  .module-video {
    width: 100%;
  }

  .module-video-row {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .module-feature-card {
    grid-template-columns: 1fr;
    align-items: start;
    width: 100%;
  }

  .module-feature-button {
    width: 100%;
  }

  .module-pro-steps {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .module-download-area {
    width: 100%;
  }

  .module-android-media {
    grid-template-columns: 1fr;
    justify-items: center;
    width: 100%;
  }

  .module-android-card {
    width: min(360px, 100%);
    min-height: 520px;
  }

  .module-short-video {
    width: min(238px, 100%);
  }

  .pro-floating-button {
    right: 18px;
    bottom: 18px;
  }

  .feedback-floating {
    right: 18px;
    bottom: 18px;
  }
}

@media (max-width: 520px) {
  .module-nav ul {
    grid-template-columns: 1fr;
  }

  .module-download-button {
    gap: 10px;
    min-height: 66px;
    padding: 10px 14px;
    border-radius: 10px;
  }

  .module-download-icon {
    width: 36px;
    height: 40px;
  }

  .module-download-label small {
    font-size: 13px;
  }

  .module-download-label strong {
    font-size: 28px;
  }

  .pro-floating-button {
    right: 14px;
    bottom: 14px;
    min-height: 48px;
    padding: 0 18px;
    font-size: 0.92rem;
  }

  .feedback-floating {
    right: 14px;
    left: 14px;
    bottom: 14px;
    justify-content: space-between;
    border-radius: 8px;
    font-size: 0.78rem;
  }

  .feedback-popup {
    width: calc(100vw - 28px);
  }
}
