.pi-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  background: #0f172a;
  color: #ffffff;
  font: 700 14px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.pi-skip-link:focus {
  transform: translateY(0);
}

.pi-site-header {
  --pi-header-ink: #0f172a;
  --pi-header-muted: #475569;
  --pi-header-blue: #2563eb;
  --pi-header-line: #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
  background: rgba(255, 255, 255, 0.9);
  color: var(--pi-header-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.pi-header-shell {
  position: relative;
  width: min(100% - 48px, 1312px);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.pi-header-brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--pi-header-ink);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.pi-header-brand > span {
  white-space: nowrap;
}

.pi-header-brand:hover {
  opacity: 0.8;
}

.pi-header-brand img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.18);
}

.pi-header-desktop {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 19px;
}

.pi-header-primary-links,
.pi-header-account-links {
  display: flex;
  align-items: center;
  gap: 19px;
}

.pi-header-link,
.pi-header-download {
  color: var(--pi-header-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.pi-header-link:hover,
.pi-header-link[aria-current="page"] {
  color: var(--pi-header-blue);
}

.pi-header-download {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--pi-header-ink);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
}

.pi-header-download:hover,
.pi-header-download[aria-current="page"] {
  color: #ffffff;
  background: #1e293b;
  transform: translateY(-1px);
}

.pi-header-language {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--pi-header-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #334155;
}

.pi-header-language-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pi-header-language select {
  width: auto;
  max-width: 104px;
  min-height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: 700 13px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
}

.pi-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pi-header-mobile-controls,
.pi-header-mobile-nav {
  display: none;
}

.pi-header-menu-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--pi-header-line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--pi-header-ink);
  font: 800 13px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
}

.pi-header-menu-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

@media (max-width: 1180px) {
  .pi-header-desktop,
  .pi-header-primary-links,
  .pi-header-account-links {
    gap: 13px;
  }

  .pi-header-link,
  .pi-header-download {
    font-size: 13px;
  }

  .pi-header-brand { font-size: 15px; }
}

@media (max-width: 1120px) {
  .pi-header-shell {
    width: min(100% - 28px, 1312px);
    min-height: 68px;
    gap: 12px;
  }

  .pi-header-desktop {
    display: none;
  }

  .pi-header-mobile-controls {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .pi-header-language--mobile {
    display: inline-flex;
  }

  .pi-header-mobile-nav:not([hidden]) {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    left: 0;
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--pi-header-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  }

  .pi-header-mobile-nav .pi-header-link,
  .pi-header-mobile-nav .pi-header-download {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 14px;
    border-radius: 11px;
    font-size: 14px;
  }

  .pi-header-mobile-nav .pi-header-link:hover,
  .pi-header-mobile-nav .pi-header-link[aria-current="page"] {
    background: #eff6ff;
  }

  .pi-header-mobile-nav .pi-header-download {
    justify-content: center;
    margin-top: 4px;
  }
}

@media (max-width: 480px) {
  .pi-header-brand > span {
    display: none;
  }

  .pi-header-language {
    padding: 0 8px;
  }

  .pi-header-language select {
    max-width: 84px;
  }

  .pi-header-menu-button span {
    display: none;
  }

  .pi-header-menu-button {
    width: 40px;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pi-skip-link,
  .pi-header-brand,
  .pi-header-link,
  .pi-header-download {
    transition-duration: 0.01ms;
  }
}

.pi-tool-conversion {
  padding: 34px 20px;
  background: #0f1b33;
  color: #fff;
}

.pi-tool-conversion-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.pi-tool-conversion-copy p {
  margin: 0 0 7px;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pi-tool-conversion-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.pi-tool-conversion-copy span {
  display: block;
  max-width: 700px;
  margin-top: 9px;
  color: #cbd5e1;
  line-height: 1.55;
}

.pi-tool-conversion-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.pi-tool-conversion-actions a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid #64748b;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
}

.pi-tool-conversion-actions .pi-tool-conversion-primary {
  border-color: #3b82f6;
  background: #2563eb;
}

@media (max-width: 820px) {
  .pi-tool-conversion-inner { grid-template-columns: 1fr; }
  .pi-tool-conversion-actions { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .pi-tool-conversion-actions { display: grid; }
  .pi-tool-conversion-actions a { width: 100%; }
}
