* {
  box-sizing: border-box;
}

:root {
  color: #15171b;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #ffffff;
}

.landing-page {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 0 32px 56px;
}

.hero {
  min-height: 64vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 56px 0 40px;
}

.brand-logo {
  display: block;
  /* Keep the compact logo sharp on Retina displays using the 431 px source. */
  width: min(107.75px, 70vw);
  height: auto;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 17px 12px 22px;
  border: 1px solid #d9dde4;
  border-radius: 999px;
  color: #3f4755;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.tool-link svg {
  display: block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 160ms ease;
}

.tool-link:hover {
  border-color: #8f98a8;
  color: #15171b;
  transform: translateY(-1px);
}

.tool-link:hover svg {
  transform: translateX(2px);
}

.tool-link:focus-visible,
.qr-code:focus-visible {
  outline: 3px solid rgb(83 92 108 / 22%);
  outline-offset: 4px;
}

.help {
  padding-top: 72px;
  border-top: 1px solid #eceef2;
}

.help-heading {
  max-width: 620px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-label {
  margin: 0 0 10px;
  color: #747d8c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.help-heading h1 {
  margin: 0;
  color: #2f3540;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.help-heading > p:last-child {
  margin: 14px 0 0;
  color: #6c7482;
  font-size: 15px;
  line-height: 1.75;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  position: relative;
  min-width: 0;
  padding: 32px;
  overflow: hidden;
  border: 1px solid #e2e5ea;
  border-radius: 24px;
  background: #fbfbfc;
}

.step-number {
  position: absolute;
  top: 22px;
  right: 24px;
  color: #d9dde4;
  font-size: 40px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.06em;
}

.step-content {
  position: relative;
}

.step-content h2 {
  margin: 0 0 10px;
  color: #303641;
  font-size: 20px;
  line-height: 1.35;
}

.step-content > p {
  max-width: 34em;
  margin: 0;
  color: #6c7482;
  font-size: 14px;
  line-height: 1.75;
}

.qr-code {
  position: relative;
  display: block;
  width: fit-content;
  margin: 28px auto 0;
  padding: 12px;
  overflow: hidden;
  border: 1px solid #e1e4e9;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgb(27 31 38 / 6%);
  text-decoration: none;
}

.qr-code img {
  display: block;
  width: 176px;
  height: 176px;
}

.qr-url {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 9px 8px;
  border-radius: 9px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 4px 16px rgb(27 31 38 / 12%);
  color: #454e5d;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.qr-code:hover .qr-url,
.qr-code:focus-visible .qr-url {
  opacity: 1;
  transform: translateY(0);
}

.device-help {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.device-help li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 17px 0;
  border-top: 1px solid #e3e6eb;
}

.device-help strong {
  color: #3f4652;
  font-size: 13px;
  line-height: 1.65;
}

.device-help span {
  color: #6a7280;
  font-size: 13px;
  line-height: 1.65;
}

.support-link {
  margin: 26px 0 0;
  color: #747c89;
  font-size: 13px;
  text-align: center;
}

.support-link a,
.support-back,
.support-tool-link {
  color: #4b5565;
  font-weight: 650;
  text-underline-offset: 3px;
}

.support-page {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 64px 28px 72px;
}

.support-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.support-header .brand-logo {
  margin-bottom: 30px;
}

.support-header h1 {
  margin: 0;
  color: #303641;
  font-size: clamp(30px, 6vw, 44px);
  letter-spacing: -0.035em;
}

.support-header p {
  max-width: 34em;
  margin: 14px 0 0;
  color: #6c7482;
  font-size: 15px;
  line-height: 1.75;
}

.support-sections {
  display: grid;
  gap: 18px;
  margin-top: 48px;
}

.support-section {
  padding: 30px 32px;
  border: 1px solid #e2e5ea;
  border-radius: 20px;
  background: #fbfbfc;
}

.support-section h2 {
  margin: 0 0 20px;
  color: #353c48;
  font-size: 20px;
  line-height: 1.4;
}

.support-step-list {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: support-step;
}

.support-step-list li {
  position: relative;
  padding-left: 42px;
  counter-increment: support-step;
}

.support-step-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #535c6c;
  color: #ffffff;
  content: counter(support-step);
  font-size: 12px;
  font-weight: 750;
}

.support-step-list strong {
  display: block;
  margin-bottom: 4px;
  color: #414956;
  font-size: 14px;
  line-height: 1.6;
}

.support-step-list p,
.support-note,
.support-contact p {
  margin: 0;
  color: #69717f;
  font-size: 14px;
  line-height: 1.8;
}

.inline-url {
  color: #4d5665;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.support-note {
  margin-top: 22px;
  padding: 14px 16px;
  border-left: 3px solid #aeb5c1;
  border-radius: 0 10px 10px 0;
  background: #f1f3f6;
  font-size: 13px;
}

.support-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 32px;
  align-items: center;
  margin-top: 48px;
  padding: 34px;
  border: 1px solid #dfe3e8;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgb(35 42 52 / 6%);
}

.support-contact h2 {
  margin: 0 0 10px;
  color: #353c48;
  font-size: 21px;
  line-height: 1.4;
}

.support-contact-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 18px;
  border: 1px dashed #cbd1da;
  border-radius: 18px;
  background: #f8f9fa;
  text-align: center;
}

.support-contact-placeholder img {
  display: block;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border-radius: 50%;
  image-rendering: auto;
}

.support-contact-placeholder strong {
  color: #4a5260;
  font-size: 13px;
  line-height: 1.55;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 34px;
  font-size: 14px;
}

kbd {
  padding: 2px 5px;
  border: 1px solid #d5d9e0;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #ffffff;
  color: #4d5563;
  font: inherit;
  font-size: 11px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .landing-page {
    padding-right: 20px;
    padding-bottom: 40px;
    padding-left: 20px;
  }

  .hero {
    min-height: 58vh;
    padding-top: 48px;
  }

  .help {
    padding-top: 48px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .support-contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .step-card {
    padding: 26px 22px;
    border-radius: 20px;
  }

  .step-number {
    top: 19px;
    right: 20px;
    font-size: 34px;
  }

  .device-help li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .qr-code img {
    width: min(176px, 52vw);
    height: auto;
    aspect-ratio: 1;
  }

  .support-page {
    padding: 44px 20px 56px;
  }

  .support-section {
    padding: 22px;
  }

  .support-step-list li {
    padding-left: 38px;
  }

  .support-contact {
    padding: 24px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tool-link {
    transition: none;
  }
}
