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

html {
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #fff;
  color: #111;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#parrotCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.landing {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  pointer-events: none;
}

/* Hovering buttons: lift the whole content layer above the mascot canvas */
body.is-ui-hover .landing,
.landing:has(.btn:hover),
.landing:has(.btn:focus-visible),
.landing:has(.lang-btn:hover),
.landing:has(.lang-btn:focus-visible),
.landing:has(.vip-section:hover) {
  z-index: 10;
}

.landing a,
.landing button {
  pointer-events: auto;
}

.hero-tagline {
  margin: 0 0 1.75rem;
  font-size: 0.9375rem;
  font-style: italic;
  color: #d4622a;
  letter-spacing: 0.01em;
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  max-width: 920px;
  margin-bottom: 1.25rem;
}

.hero-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.title-main {
  display: block;
  color: #111;
}

.title-accent {
  display: block;
  font-style: italic;
  color: #d4622a;
}

.hero-sub {
  margin: 0 0 2.25rem;
  max-width: 28rem;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: #666;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 220px;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}

.btn-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.btn-mac {
  background: #111;
  color: #fff;
  border: 1px solid #111;
}

.btn-mac:hover {
  opacity: 0.88;
}

.btn-win {
  background: #fff;
  color: #111;
  border: 1px solid #ccc;
}

.btn-win:hover {
  border-color: #111;
}

.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.release-note,
.coming-soon,
.download-hint,
.download-smartscreen,
.download-offline {
  margin: 0.5rem 0 0;
  max-width: 32rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #888;
}

.download-smartscreen {
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
}

.download-offline a {
  color: #d4622a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.coming-soon {
  color: #b45309;
}

.hero-stat {
  margin: 2.5rem 0 0;
  font-size: 0.875rem;
  color: #d4622a;
  letter-spacing: 0.02em;
}

.vip-section {
  margin-top: 3.5rem;
  max-width: 28rem;
  text-align: left;
  pointer-events: auto;
}

.vip-heading {
  margin: 0 0 0.5rem;
  font-family: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: #111;
}

.vip-lead {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #555;
}

.vip-prices {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: #333;
}

.vip-prices li {
  margin: 0.35rem 0;
}

.vip-prices strong {
  font-weight: 600;
  color: #111;
}

.vip-pricing-link {
  margin: 0.65rem 0 1rem;
  font-size: 0.8rem;
}

.vip-pricing-link a {
  color: #0b6bcb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vip-how {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  line-height: 1.55;
  color: #888;
}

.vip-merchant {
  margin: -0.35rem 0 1rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #444;
  font-weight: 560;
}

.vip-user-label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  color: #555;
  text-align: left;
}

.vip-username {
  display: block;
  width: 100%;
  max-width: 28rem;
  box-sizing: border-box;
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font: inherit;
  font-size: 0.875rem;
  background: #fff;
  color: #111;
  pointer-events: auto;
}

.vip-username:focus {
  outline: 2px solid #d4622a55;
  border-color: #d4622a;
}

.vip-providers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
}

.vip-providers[hidden] {
  display: none;
}

.vip-provider-btn {
  appearance: none;
  margin: 0;
  padding: 0.4rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #444;
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.3;
  cursor: pointer;
  pointer-events: auto;
}

.vip-provider-btn:hover {
  border-color: #c9c9c9;
  color: #222;
}

.vip-provider-btn[aria-checked="true"] {
  border-color: #d4622a;
  background: #fff7f2;
  color: #b14a1c;
  font-weight: 560;
}

.vip-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.vip-pay-btn {
  min-width: auto;
  padding: 0.55rem 0.95rem;
  font-size: 0.8125rem;
  pointer-events: auto;
  cursor: pointer;
}

.vip-pay-msg {
  margin: 0.75rem 0 0;
  min-height: 1.2em;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #888;
  text-align: left;
}

.vip-pay-msg[data-kind="error"] {
  color: #b45309;
}

.vip-pay-msg[data-kind="ok"] {
  color: #15803d;
}

.vip-pay-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}

.vip-pay-modal[hidden] {
  display: none !important;
}

.vip-pay-dialog {
  position: relative;
  width: min(100%, 20rem);
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: 14px;
  background: #fff;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.vip-pay-close {
  position: absolute;
  top: 0.35rem;
  right: 0.5rem;
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #888;
  cursor: pointer;
}

.vip-pay-title {
  margin: 0 0 0.5rem;
  font-family: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  font-size: 1.1rem;
  font-weight: 400;
}

.vip-pay-merchant {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #333;
  font-weight: 560;
}

.vip-pay-hint {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #666;
}

.vip-pay-qr {
  display: block;
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border-radius: 8px;
  background: #f5f5f5;
}

.vip-pay-status {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  color: #555;
}

.vip-pay-status[data-kind="ok"] {
  color: #15803d;
}

.vip-pay-status[data-kind="error"] {
  color: #b45309;
}

.lang-row {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.parrot-legal-footer {
  margin-top: 1.75rem;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.55rem;
  font-size: 0.75rem;
  color: #888;
}

.parrot-legal-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.parrot-legal-footer a:hover {
  color: #111;
}

html.site-intl .lang-row,
body.site-intl .lang-row {
  display: none !important;
}

.lang-btn {
  padding: 0.25rem 0.35rem;
  border: none;
  background: none;
  color: #888;
  cursor: pointer;
  font: inherit;
}

.lang-btn:hover,
.lang-btn.active {
  color: #111;
}

.lang-sep {
  color: #ccc;
}

@media (max-width: 640px) {
  .btn {
    min-width: 100%;
    width: 100%;
    max-width: 320px;
  }
}

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