@font-face {
  font-family: "Alexandria";
  src: url("../fonts/Alexandria-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@view-transition {
  navigation: auto;
}

:root {
  --ink: #292929;
  --muted: #999;
  --line: #eaeaea;
  --hover: #f6f6f6;
  --motion-fast: 140ms;
  --motion-base: 180ms;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-opacity: cubic-bezier(.4, 0, .2, 1);
  --font-sans: "Alexandria", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-zh-hans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  font-family: var(--font-sans);
  font-synthesis: none;
}

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

html {
  min-width: 320px;
  min-height: 100%;
  background: #fff;
}

body {
  min-height: 100svh;
  margin: 0;
  background: #fff;
}

.page-content {
  min-height: inherit;
  view-transition-name: page-content;
}

img {
  display: block;
}

a {
  color: inherit;
}

html[data-locale="en"] [data-locale-content="zh-Hans"],
html[data-locale="zh-Hans"] [data-locale-content="en"] {
  display: none !important;
}

[data-locale-content="zh-Hans"] {
  font-family: var(--font-zh-hans);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.site-header,
.product-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  height: 92px;
  pointer-events: none;
}

.icon-button,
.brand-symbol--small,
.site-menu {
  pointer-events: auto;
}

.icon-button {
  display: block;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

.icon-button img {
  width: 100%;
  height: 100%;
}

.menu-button {
  position: absolute;
  top: 24px;
  right: 24px;
}

.menu-dots {
  position: absolute;
  top: 20px;
  left: 12px;
  display: flex;
  width: 20px;
  height: 4px;
  align-items: center;
  justify-content: space-between;
}

.menu-dot {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #666;
  transition: transform 160ms var(--ease-out);
}

.menu-button:hover .menu-dot--left,
.menu-button[aria-expanded="true"] .menu-dot--left {
  transform: translateX(1.5px);
}

.menu-button:hover .menu-dot--center,
.menu-button[aria-expanded="true"] .menu-dot--center {
  transform: none;
}

.menu-button:hover .menu-dot--right,
.menu-button[aria-expanded="true"] .menu-dot--right {
  transform: translateX(-1.5px);
}

.site-menu {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 270px;
  height: 150px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 8%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px) scale(.985);
  transform-origin: top right;
  visibility: hidden;
  transition:
    opacity var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out),
    visibility 0s linear var(--motion-fast);
}

.site-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
  transition-duration: var(--motion-base), var(--motion-base), 0s;
  transition-delay: 0s;
}

.menu-label {
  position: absolute;
  top: 8px;
  left: 9px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 300;
  line-height: normal;
}

.product-link {
  position: absolute;
  top: 28px;
  left: -1px;
  display: flex;
  width: 270px;
  height: 49px;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 9px;
  outline: none;
  text-decoration: none;
  transition: background-color var(--motion-base) var(--ease-out);
}

.product-link:hover,
.product-link:focus-visible {
  background: var(--hover);
}

.product-link:focus-visible {
  box-shadow: inset 0 0 0 2px var(--ink);
}

.asset-surface {
  overflow: hidden;
  background: #ccc;
}

.asset-image {
  opacity: 0;
}

.asset-surface.is-loaded {
  background: transparent;
}

.asset-surface.is-loaded > .asset-image {
  opacity: 1;
}

.asset-surface.is-failed > .asset-image {
  display: none;
}

.product-icon-surface {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: transform var(--motion-base) var(--ease-out);
}

.product-icon {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.product-copy {
  display: flex;
  width: 196px;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: normal;
  transition: transform var(--motion-base) var(--ease-out);
}

.product-link:hover .product-icon-surface,
.product-link:focus-visible .product-icon-surface {
  transform: scale(1.04);
}

.product-link:hover .product-copy,
.product-link:focus-visible .product-copy {
  transform: translateX(2px);
}

.product-name {
  width: 100%;
  font-size: 14px;
  font-weight: 400;
}

.product-description {
  width: 100%;
  font-size: 12px;
  font-weight: 300;
  text-align: center;
}

.support-label {
  top: 97px;
}

.support-link {
  position: absolute;
  top: 124px;
  left: 10px;
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  text-decoration: none;
}

.support-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-page {
  position: relative;
  overflow-x: hidden;
}

.home-main {
  display: flex;
  min-height: 768px;
  align-items: center;
  flex-direction: column;
  padding: 159px 24px 96px;
  text-align: center;
}

.brand-symbol {
  display: grid;
  overflow: hidden;
  place-items: center;
  background: transparent;
  view-transition-name: brand-logo;
}

@keyframes page-content-fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes page-content-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

::view-transition-group(root),
::view-transition-old(root),
::view-transition-new(root),
::view-transition-group(page-content) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-old(root) {
  opacity: 0;
}

::view-transition-old(page-content) {
  animation: page-content-fade-out 500ms var(--ease-opacity) both;
  mix-blend-mode: normal;
}

::view-transition-new(page-content) {
  animation: page-content-fade-in 700ms var(--ease-opacity) 1050ms both;
  mix-blend-mode: normal;
}

::view-transition-group(brand-logo) {
  animation-duration: 1700ms;
  animation-timing-function: cubic-bezier(.05, .95, .15, 1);
}

::view-transition-old(brand-logo),
::view-transition-new(brand-logo) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-new(brand-logo) {
  opacity: 0;
}

html.transition-huelor-tip .brand-symbol {
  view-transition-name: none;
}

html.transition-huelor-tip .huelor-shared-icon {
  view-transition-name: huelor-app-icon;
}

::view-transition-group(huelor-app-icon) {
  animation-duration: 1700ms;
  animation-timing-function: cubic-bezier(.05, .95, .15, 1);
}

::view-transition-old(huelor-app-icon),
::view-transition-new(huelor-app-icon) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-new(huelor-app-icon) {
  opacity: 0;
}

.brand-symbol--home {
  width: 110px;
  height: 110px;
}

.brand-symbol--home img {
  width: 87.6px;
  height: auto;
}

.brand-logotype {
  width: 158px;
  height: auto;
  margin-top: 3.8px;
}

.company-statement {
  margin: 54.9px 0 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 300;
  line-height: 24px;
}

.disciplines {
  margin: 79px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 300;
  line-height: 24px;
}

.site-footer {
  position: absolute;
  right: 24px;
  bottom: 16px;
  left: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 4px;
  color: var(--muted);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 24px;
  text-align: center;
}

.filing-primary {
  white-space: nowrap;
}

.public-security-filing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.public-security-filing img {
  width: 15px;
  height: 16px;
  object-fit: cover;
}

.site-footer a,
.privacy a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible,
.privacy a:hover,
.privacy a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.huelor-page,
.huelor-tip-page {
  position: relative;
}

.back-button {
  position: absolute;
  top: 24px;
  left: 24px;
}

.back-button img {
  opacity: .92;
  transition:
    transform 160ms var(--ease-out),
    opacity 160ms var(--ease-out);
}

.back-button:hover img,
.back-button:focus-visible img {
  opacity: 1;
  transform: translateX(-3px);
}

.back-button:active img {
  transform: translateX(-1px);
}

.brand-symbol--small {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 60px;
  height: 60px;
  transform: translateX(-50%);
}

.brand-symbol--small img {
  width: 47.8px;
  height: auto;
}

.product-main {
  display: flex;
  min-height: 768px;
  align-items: center;
  flex-direction: column;
  padding: 140px 24px 80px;
  text-align: center;
}

.huelor-icon-surface {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.huelor-icon {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.huelor-wordmark-lockup {
  position: relative;
  width: 100px;
  height: 25.018px;
  margin-top: 12px;
}

.huelor-wordmark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
}

.huelor-wordmark-lockup.is-loaded .huelor-wordmark {
  visibility: visible;
}

.wordmark-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 24px;
}

.huelor-wordmark-lockup.is-loaded .wordmark-fallback {
  opacity: 0;
}

.product-introduction {
  width: min(709px, 100%);
  margin: 24px 0 0;
  font-size: 12px;
  font-weight: 300;
  line-height: 24px;
}

.app-store-badge {
  position: relative;
  display: block;
  width: 120px;
  height: 40px;
  flex: 0 0 auto;
  margin-top: 24px;
  overflow: hidden;
  text-decoration: none;
}

.app-store-badge:not([href]) {
  cursor: default;
}

.app-store-badge img {
  position: absolute;
  max-width: none;
}

.app-store-badge-art {
  position: absolute;
  inset: 0;
}

.app-store-badge-frame {
  inset: 0;
  width: 120px;
  height: 40px;
}

.app-store-badge-apple {
  top: 7.848px;
  left: 9.636px;
  width: 18.475px;
  height: 22.645px;
}

.app-store-badge-title {
  top: 17.872px;
  left: 34.524px;
  width: 75.271px;
  height: 15.62px;
}

.app-store-badge-kicker {
  top: 8.436px;
  left: 35.772px;
  width: 69.338px;
  height: 6.358px;
}

html[data-locale="zh-Hans"] .app-store-badge {
  width: 108.852px;
}

.app-store-badge-zh-hans-frame {
  inset: 0;
  width: 108.852px;
  height: 40px;
}

.app-store-badge-zh-hans-apple {
  top: 7.848px;
  left: 9.609px;
  width: 18.423px;
  height: 22.645px;
}

.app-store-badge-zh-hans-app-store {
  top: 8.62px;
  left: 34.426px;
  width: 64.248px;
  height: 13.37px;
}

.app-store-badge-zh-hans-download {
  top: 23.636px;
  left: 34.426px;
  width: 16.658px;
  height: 7.732px;
}

.huelor-tip-link {
  margin-top: 24px;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  text-underline-offset: 2px;
}

.huelor-tip-link [data-locale-content="zh-Hans"] {
  font-weight: 500;
}

.privacy {
  width: min(709px, 100%);
  margin-top: 48px;
  scroll-margin-top: 24px;
}

.privacy h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.privacy-body {
  width: min(460px, 100%);
  margin: 9px auto 0;
  text-align: left;
}

.privacy h3 {
  margin: 24px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
}

.privacy p {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 300;
  line-height: 24px;
}

.privacy-body > p:first-child {
  margin-top: 0;
}

.privacy p + p {
  margin-top: 12px;
}

.privacy-content--zh-hans h3 {
  font-weight: 500;
}

.privacy-content--zh-hans p {
  font-weight: 400;
}

.tip-icon-surface {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  transform: translateX(-50%);
}

.tip-main {
  display: flex;
  min-height: 544px;
  align-items: center;
  flex-direction: column;
  padding: 212px 24px 48px;
  text-align: center;
}

.tip-title {
  display: flex;
  height: 25px;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.tip-wordmark-lockup {
  flex: 0 0 auto;
  margin-top: 0;
}

.tip-introduction {
  width: min(709px, 100%);
  margin: 24px 0 0;
  font-size: 12px;
  font-weight: 300;
  line-height: 24px;
}

.tip-disclaimer {
  width: min(418px, 100%);
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 300;
  line-height: normal;
}

.tip-options {
  display: flex;
  width: min(356px, 100%);
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.tip-option {
  width: 80px;
  height: 50px;
  flex: 0 0 80px;
  padding: 0;
  border: 1px solid #dedede;
  border-radius: 16px;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
  cursor: pointer;
  transition:
    background-color var(--motion-base) var(--ease-out),
    border-color var(--motion-base) var(--ease-out);
}

.tip-option:hover,
.tip-option:focus-visible {
  border-color: #dedede;
  outline: none;
  background: #f2f2f2;
}

.tip-option[aria-pressed="true"],
.tip-option[aria-pressed="true"]:hover,
.tip-option[aria-pressed="true"]:focus-visible {
  border: 2px solid #000;
  background: #fff;
}

.tip-custom-amount {
  position: relative;
  display: flex;
  width: 172px;
  height: 50px;
  align-items: center;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #000;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 4px 4px rgb(0 0 0 / 8%);
}

.tip-custom-amount[hidden] {
  display: none;
}

.tip-custom-amount:has(input:focus-visible) {
  box-shadow:
    inset 0 0 4px 4px rgb(0 0 0 / 8%),
    0 0 0 3px #dedede;
}

.tip-custom-prefix {
  position: absolute;
  left: 15px;
  z-index: 1;
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
  pointer-events: none;
}

.tip-custom-amount input {
  width: 100%;
  height: 100%;
  padding: 0 15px 0 34px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #000;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  text-align: right;
  appearance: textfield;
}

.tip-custom-amount input::placeholder {
  color: #999;
  opacity: 1;
}

.tip-custom-amount input::-webkit-inner-spin-button,
.tip-custom-amount input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

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

.paypal-cta {
  width: min(356px, 100%);
  height: 40px;
  flex: 0 0 auto;
  margin-top: 24px;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  background: #000;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
  cursor: pointer;
}

.paypal-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #dedede;
}

.paypal-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 300;
  line-height: 24px;
}

.tip-status-main {
  display: flex;
  min-height: 456px;
  align-items: center;
  flex-direction: column;
  padding: 212px 24px 48px;
  text-align: center;
}

.tip-status-title {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.tip-status-body {
  width: min(709px, 100%);
  margin: 24px 0 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 300;
  line-height: 24px;
}

.tip-status-amount {
  margin: 10px 0 0;
  color: #000;
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
}

.tip-status-primary {
  display: flex;
  width: min(356px, 100%);
  height: 40px;
  align-items: center;
  justify-content: center;
  margin-top: 56px;
  border: 1px solid #000;
  border-radius: 16px;
  color: #000;
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
  text-decoration: none;
}

.tip-status-page[data-result-state="success"] .tip-status-primary {
  margin-top: 20px;
}

.tip-status-primary:focus-visible,
.tip-status-secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #dedede;
}

.tip-status-secondary {
  margin-top: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  text-underline-position: from-font;
}

.tip-status-footer {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 300;
  line-height: 24px;
}

.tip-status-main [hidden] {
  display: none;
}

@media (max-height: 767px) and (min-width: 601px) {
  .home-main {
    min-height: 100svh;
    padding-top: max(112px, 20.7svh);
  }

  .product-main {
    min-height: 100svh;
    padding-top: max(112px, 18.2svh);
  }
}

@media (max-width: 600px) {
  .menu-button,
  .site-menu {
    top: 16px;
    right: 16px;
  }

  .site-menu {
    width: min(270px, calc(100vw - 32px));
  }

  .home-main {
    min-height: 100svh;
    padding: clamp(116px, 18svh, 146px) 20px 104px;
  }

  .brand-symbol--home {
    width: 100px;
    height: 100px;
  }

  .brand-symbol--home img {
    width: 80px;
  }

  .brand-logotype {
    margin-top: 4px;
  }

  .company-statement {
    margin-top: clamp(42px, 7svh, 55px);
  }

  .disciplines {
    max-width: 280px;
    margin-top: clamp(38px, 6svh, 55px);
  }

  .site-footer {
    right: 16px;
    bottom: 12px;
    left: 16px;
    font-size: 10px;
  }

  .back-button {
    top: 16px;
    left: 16px;
  }

  .brand-symbol--small {
    top: 8px;
  }

  .tip-icon-surface {
    top: 8px;
  }

  .product-main {
    min-height: 100svh;
    padding: 120px 20px 64px;
  }

  .huelor-wordmark-lockup {
    margin-top: 12px;
  }

  .tip-wordmark-lockup {
    margin-top: 0;
  }

  .product-introduction br {
    display: none;
  }

  .privacy {
    margin-top: 28px;
  }

  .tip-main {
    padding-right: 20px;
    padding-left: 20px;
  }

  .tip-status-main {
    padding-right: 20px;
    padding-left: 20px;
  }

  .tip-options {
    gap: 10px;
  }
}

@media (max-width: 360px) {
  .tip-options {
    width: 170px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .tip-disclaimer {
    width: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-menu,
  .menu-dot,
  .back-button img,
  .product-link,
  .product-icon-surface,
  .product-copy,
  .tip-option {
    transition: none !important;
  }

  .site-menu,
  .site-menu.is-open,
  .menu-button:hover .menu-dot,
  .menu-button[aria-expanded="true"] .menu-dot,
  .back-button:hover img,
  .back-button:focus-visible img,
  .back-button:active img,
  .product-link:hover .product-icon-surface,
  .product-link:focus-visible .product-icon-surface,
  .product-link:hover .product-copy,
  .product-link:focus-visible .product-copy {
    transform: none;
  }

  .brand-symbol {
    view-transition-name: none;
  }

  .page-content {
    view-transition-name: none;
  }

  html.transition-huelor-tip .huelor-shared-icon {
    view-transition-name: none;
  }

  ::view-transition-group(root),
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 1ms !important;
    animation-delay: 0s !important;
  }
}
