
:root {
  color-scheme: light;
  --bg: #efefef;
  --surface: rgba(255, 255, 255, 0.58);
  --surface-strong: rgba(255, 255, 255, 0.74);
  --surface-button: rgba(0, 0, 0, 0.06);
  --surface-button-hover: rgba(0, 0, 0, 0.095);
  --backdrop: rgba(255, 255, 255, 0.14);
  --text: #060606;
  --text-secondary: #636369;
  --text-tertiary: #6a6a6e;
  --link-hover: rgba(0, 0, 0, 0.72);
  --border: rgba(255, 255, 255, 0.58);
  --shadow-1: 0 18px 48px rgba(0, 0, 0, 0.12);
  --shadow-2: 0 2px 10px rgba(0, 0, 0, 0.04);
  --icon-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 12px 24px rgba(18, 125, 240, 0.12);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0c;
  --surface: rgba(34, 34, 38, 0.74);
  --surface-strong: rgba(44, 44, 49, 0.82);
  --surface-button: rgba(255, 255, 255, 0.08);
  --surface-button-hover: rgba(255, 255, 255, 0.12);
  --backdrop: rgba(7, 7, 10, 0.5);
  --text: #f5f5f7;
  --text-secondary: #98989d;
  --text-tertiary: #b0b0b6;
  --link-hover: rgba(255, 255, 255, 0.84);
  --border: rgba(255, 255, 255, 0.12);
  --shadow-1: 0 24px 64px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 2px 12px rgba(0, 0, 0, 0.18);
  --icon-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  z-index: 200;
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 0;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, sans-serif;
  transition: background-color 180ms ease, color 180ms ease;
}

img {
  display: block;
  max-width: 100%;
}

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

.page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 18px 28px;
}

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  line-height: 1;
}

[data-site-header] {
  position: sticky;
  top: 18px;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
  outline: none;
  transition: opacity 180ms ease;
}

.brand:hover {
  opacity: 0.72;
}

.brand:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.brand-mark {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.nav-group {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.back-link {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 8px;
}

.nav-link,
.inline-link,
.back-link {
  color: inherit;
  text-decoration: none;
  position: relative;
  outline: none;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-link::after,
.inline-link::after,
.back-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.72;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.inline-link:hover,
.inline-link:focus-visible,
.back-link:hover,
.back-link:focus-visible {
  color: var(--link-hover);
  transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.inline-link:hover::after,
.inline-link:focus-visible::after,
.back-link:hover::after,
.back-link:focus-visible::after {
  transform: scaleX(1);
}

.theme-toggle {
  height: 28px;
  padding: 0 10px;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--surface-button);
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  gap: 6px;
  transition: background-color 180ms ease, transform 180ms ease, color 180ms ease;
}

[data-theme-toggle] {
  justify-content: flex-start;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: var(--surface-button-hover);
  transform: translateY(-1px);
}

.theme-toggle:active {
  transform: scale(0.97);
}

.hero {
  display: grid;
  place-items: center;
  padding: 32px 16px 70px;
}

.hero-inner {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateY(-2.5vh);
}

.app-icon-wrap {
  --icon-radius: 34px;
  position: relative;
  display: inline-block;
  margin-bottom: 18px;
}

.app-icon-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  clip-path: inset(0 round var(--icon-radius));
}

.app-icon {
  width: 148px;
  height: 148px;
  object-fit: cover;
  border-radius: var(--icon-radius);
  margin-bottom: 0;
  box-shadow: var(--icon-shadow);
  will-change: transform;
  display: block;
}

.app-name {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0.13px;
  font-weight: 600;
}

.hero-title,
.page-title,
.modal-page-title {
  margin: 0;
  letter-spacing: -0.075em;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(64px, 7vw, 108px);
  line-height: 0.92;
  letter-spacing: -1.44px;
}

.content-shell {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 64px 0 80px;
}

.legal,
.modal-legal {
  width: min(700px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1;
  font-weight: 500;
}

.page-title,
.modal-page-title {
  margin-bottom: 18px;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 0.95;
  letter-spacing: 0.14px;
}

.legal p,
.legal li p,
.modal-legal p,
.modal-legal li p {
  margin: 0 0 14px;
  color: var(--text-tertiary);
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.legal-list,
.modal-legal-list {
  margin: 28px 0 0;
  padding-left: 22px;
}

.legal-list li + li,
.modal-legal-list li + li {
  margin-top: 24px;
}

.legal-list h2,
.modal-legal-list h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 600;
}

ol li::marker {
  font-weight: 600;
  font-size: 1.2em;
}

.footer {
  color: var(--text-secondary);
  font-weight: 400;
}

.footer .nav-link {
  border-radius: 4px;
  transition: opacity 180ms ease;
}

.footer .nav-link:hover {
  opacity: 0.72;
  color: inherit;
  transform: none;
}

.footer .nav-link:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
  color: inherit;
  transform: none;
}

.footer .nav-link::after {
  display: none;
}

#brand-menu-overlay {
  place-items: start start;
  padding: 14px 24px 24px;
  z-index: 20;
}

#brand-menu-overlay .modal-card {
  width: min(260px, calc(100vw - 48px));
}

.brand-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  background: transparent;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition: opacity 240ms ease, background-color 280ms ease, backdrop-filter 280ms ease, -webkit-backdrop-filter 280ms ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
  background: var(--backdrop);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-card {
  width: min(760px, calc(100vw - 48px));
  max-height: min(85vh, 900px);
  overflow: auto;
  padding: 18px 18px 16px;
  border-radius: 26px;
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1), var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  opacity: 0;
  transform: scale(0.94) translateY(10px);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms ease, background-color 180ms ease, border-color 180ms ease;
}

.modal-overlay.active .modal-card {
  opacity: 1;
  transform: scale(1) translateY(0);
}

#contact-popover {
  place-items: start end;
  padding: 14px 24px 24px;
  z-index: 20;
}

#privacy-popover,
#terms-popover {
  z-index: 20;
}

#contact-popover .modal-card {
  width: min(360px, calc(100vw - 48px));
}

#privacy-popover .modal-card,
#terms-popover .modal-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

#privacy-popover .modal-header,
#terms-popover .modal-header {
  flex-shrink: 0;
  padding: 18px 18px 0;
}

#privacy-popover .modal-body,
#terms-popover .modal-body {
  overflow-y: auto;
  flex: 1;
  padding: 0 18px 16px;
}


.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.modal-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-title,
.modal-title {
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 500;
}

.modal-body {
  padding-right: 4px;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  position: relative;
  transition: background-color 180ms ease, transform 180ms ease;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: var(--surface-button-hover);
  transform: scale(1.03);
}

.icon-button:active {
  transform: scale(0.93);
  background: var(--surface-button-hover);
}

.theme-toggle:focus-visible,
.glass-button:focus-visible,
.icon-button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.contact-email {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.contact-actions {
  display: flex;
  gap: 10px;
}

.glass-button {
  flex: 1;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-button);
  color: inherit;
  font: inherit;
  font-size: 16px;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.glass-button:hover,
.glass-button:focus-visible {
  background: var(--surface-button-hover);
  transform: translateY(-1px);
}

.glass-button:active {
  transform: scale(0.985);
}

.glass-button.copied {
  background: var(--text);
  color: var(--bg);
}

.glass-button.secondary {
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .page {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-inner {
    transform: translateY(-1vh);
  }

  .app-icon-wrap {
    --icon-radius: 30px;
  }

  .app-icon {
    width: 128px;
    height: 128px;
  }

  .app-name {
    font-size: 28px;
  }

  .hero-title {
    font-size: clamp(52px, 11vw, 86px);
  }
}

@media (max-width: 560px) {
  .page {
    padding: 18px 20px;
  }

  .topbar,
  .footer {
    font-size: 16px;
  }

  .nav-group {
    gap: 12px;
  }

  .hero {
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .app-icon-wrap {
    --icon-radius: 26px;
    margin-bottom: 14px;
  }

  .app-icon {
    width: 108px;
    height: 108px;
  }

  .app-name {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .hero-title {
    font-size: clamp(44px, 12vw, 64px);
  }

  .content-shell {
    padding: 48px 0 56px;
  }

  .legal p,
  .legal li p,
  .modal-legal p,
  .modal-legal li p {
    font-size: 16px;
  }

  .modal-card {
    width: 100%;
    max-height: 78vh;
    max-height: 78dvh;
    padding: 16px;
    border-radius: 24px;
  }

  #privacy-popover,
  #terms-popover {
    align-items: flex-start;
    padding-top: 48px;
  }

  .contact-title,
  .modal-title {
    font-size: 20px;
  }

  .contact-email {
    font-size: 17px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

