@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --foreground-rgb: 255, 255, 255;
  --background-start-rgb: 0, 0, 0;
  --background-end-rgb: 0, 0, 0;
  --accent-primary: 99, 102, 241;
  --accent-secondary: 168, 85, 247;
  --accent-teal: 45, 212, 191;
  --surface-primary: 15, 15, 23;
  --surface-secondary: 22, 22, 35;
  --surface-elevated: 30, 30, 48;
  --border-subtle: 38, 38, 58;
  --text-primary: 245, 245, 250;
  --text-secondary: 160, 160, 185;
  --text-muted: 110, 110, 140;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-wrap: anywhere;
  color: rgb(var(--text-primary));
  background: rgb(var(--background-start-rgb));
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(var(--accent-primary), 0.3);
  color: rgb(var(--text-primary));
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgb(var(--surface-primary));
}

::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-primary), 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--accent-primary), 0.5);
}

.glass {
  background: rgba(var(--surface-elevated), 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.glass-strong {
  background: rgba(var(--surface-elevated), 0.8);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
}

.glow-primary {
  box-shadow:
    0 0 20px rgba(var(--accent-primary), 0.15),
    0 0 60px rgba(var(--accent-primary), 0.05);
}

.glow-secondary {
  box-shadow:
    0 0 20px rgba(var(--accent-secondary), 0.15),
    0 0 60px rgba(var(--accent-secondary), 0.05);
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animated-gradient {
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(var(--accent-primary), 0.1);
  }
  50% {
    box-shadow: 0 0 40px rgba(var(--accent-primary), 0.25);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

.card-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(var(--accent-primary), 0.1);
}

.noise-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
:root
  :is(a, button, input, select, textarea, summary, [tabindex]):not(
    .site-button
  ):focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #111827;
  transition: none;
}

[hidden] {
  display: none !important;
}
input,
select,
textarea {
  min-width: 0;
  max-width: 100%;
}
input:not([type="hidden"]),
select,
textarea {
  border-color: #81889a;
}
input[type="file"] {
  width: 100%;
}
button,
a {
  overflow-wrap: anywhere;
}
main {
  scroll-margin-top: 6rem;
}
section,
[id] {
  scroll-margin-top: 6rem;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 20px;
  background: #fff;
  color: #111827;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: translateY(0);
}
[data-animations-paused="true"] *,
[data-animations-paused="true"] *::before,
[data-animations-paused="true"] *::after {
  animation-play-state: paused !important;
}
[data-animations-paused="true"] [inert] * {
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@layer utilities {
  .text-balance {
    text-wrap: balance;
  }
}

.meas-root {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #020617;
  color: #f0f4ff;
  font-family: inherit;
}

.meas-loading-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(99, 102, 241, 0.18) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(168, 85, 247, 0.15) 0%,
      transparent 50%
    ),
    #020617;
}

.meas-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.12);
}

.meas-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.9);
}

.meas-xr-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #2dd4bf;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.25);
  animation: measPulse 2.4s ease-in-out infinite;
}

.meas-camera {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.meas-hidden-canvas {
  display: none;
}

.meas-loading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 40px 32px;
}

.meas-loading-title {
  margin: 0 0 20px;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e0e7ff;
}

.meas-loading-tips {
  width: 100%;
  max-width: 300px;
  margin-top: 32px;
  padding: 18px 20px;
  background: rgba(99, 102, 241, 0.07);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.meas-loading-tips p {
  margin: 0 0 10px;
  color: rgba(200, 210, 255, 0.75);
  font-size: 0.8125rem;
  line-height: 1.5;
  font-weight: 500;
}

.meas-loading-tips p:last-child {
  margin-bottom: 0;
}

.meas-scanner-wrap {
  margin-bottom: 28px;
}

.meas-scanner {
  position: relative;
  width: 180px;
  height: 230px;
  background:
    linear-gradient(rgba(99, 102, 241, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.07) 1px, transparent 1px),
    rgba(30, 30, 60, 0.4);
  background-size: 22px 22px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  overflow: hidden;
}

.meas-scanner-foot {
  position: absolute;
  left: 54px;
  top: 30px;
  width: 70px;
  height: 172px;
  border: 1.5px solid rgba(99, 102, 241, 0.55);
  border-radius: 42% 40% 35% 38%;
  background: rgba(99, 102, 241, 0.06);
}

.meas-scanner-line {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    #6366f1 30%,
    #a855f7 70%,
    transparent
  );
  box-shadow:
    0 0 18px rgba(99, 102, 241, 0.7),
    0 0 36px rgba(99, 102, 241, 0.3);
  animation: measScanSweep 2s ease-in-out infinite;
}

.meas-scanner-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: #6366f1;
  border-style: solid;
}

.meas-scanner-corner--tl {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}
.meas-scanner-corner--tr {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
}
.meas-scanner-corner--bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
}
.meas-scanner-corner--br {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
}

.meas-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(99, 102, 241, 0.3);
  border-top-color: #6366f1;
  animation: measSpin 1s linear infinite;
  margin-bottom: 20px;
}

.meas-processing-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: measFadeIn 0.2s ease-out;
}

.meas-processing-ring {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.meas-processing-ring__inner {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #6366f1;
  border-right-color: #a855f7;
  animation: measSpin 0.9s linear infinite;
}

.meas-processing-label {
  margin: 20px 0 0;
  white-space: pre-line;
  color: #e0e7ff;
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.2px;
}

.meas-processing-label--sub {
  margin: 4px 0 0;
  font-size: 0.875rem;
  font-weight: 400;
  opacity: 0.8;
}

.meas-instruction-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 70px 20px 24px;
  pointer-events: none;
  animation: measFadeIn 0.3s ease-out;
}

.meas-glass-card {
  pointer-events: auto;
  width: 100%;
  max-width: 320px;
  padding: 22px;
  background: rgba(10, 12, 30, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.06) inset,
    0 20px 48px rgba(0, 0, 0, 0.4);
}

.meas-card-title {
  margin: 0 0 16px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #e0e7ff;
}

.meas-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.meas-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

.meas-check-row--done {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
}

.meas-check-icon {
  font-size: 1.125rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.meas-check-label {
  flex: 1;
  margin: 0;
  font-size: 0.84375rem;
  font-weight: 500;
  color: rgba(200, 210, 255, 0.7);
  line-height: 1.3;
  transition: color 0.3s ease;
}

.meas-check-row--done .meas-check-label {
  color: #c7d2fe;
}

.meas-check-tick {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(99, 102, 241, 0.25);
  border-radius: 50%;
  color: #818cf8;
  flex-shrink: 0;
  animation: measPopIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.meas-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meas-progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(99, 102, 241, 0.12);
  overflow: hidden;
}

.meas-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  transition: width 0.35s ease;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.meas-progress-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(200, 210, 255, 0.6);
  text-align: center;
  letter-spacing: 0.3px;
}

.meas-xr-note {
  margin: 12px 0 0;
  padding: 9px 12px;
  font-size: 0.71875rem;
  font-weight: 500;
  color: rgba(251, 191, 36, 0.9);
  background: rgba(251, 191, 36, 0.07);
  border: 1px solid rgba(251, 191, 36, 0.18);
  text-align: center;
  line-height: 1.5;
}

.meas-feedback {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  z-index: 30;
  transform: translateX(-50%);
  pointer-events: auto;
  width: calc(100% - 32px);
  max-width: 320px;
  padding: 10px 14px;
  text-align: center;
  color: #fca5a5;
  font-size: 0.8125rem;
  font-weight: 600;
  background: rgba(127, 29, 29, 0.55);
  border: 1px solid rgba(248, 113, 113, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: measFadeIn 0.2s ease-out;
}

.meas-result-overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 40px;
  animation: measSlideUp 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.meas-result-card {
  width: 100%;
  max-width: 360px;
  padding: 20px;
  background: rgba(8, 10, 28, 0.93);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-bottom: none;
  box-shadow:
    0 -20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(99, 102, 241, 0.06) inset;
}

.meas-size-hero {
  text-align: center;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.meas-size-system-label {
  margin: 0 0 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(165, 180, 252, 0.6);
}

.meas-size-value {
  display: block;
  font-size: 4.5rem;
  line-height: 1;
  font-weight: 800;
  background: linear-gradient(135deg, #c7d2fe, #a5b4fc, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 4px 0 6px;
  letter-spacing: -2px;
}

.meas-size-width {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #818cf8;
}

.meas-dims-grid {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 16px;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.meas-dim-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  gap: 3px;
}

.meas-dim-icon {
  font-size: 1rem;
  color: rgba(165, 180, 252, 0.5);
  line-height: 1;
}

.meas-dim-value {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #e0e7ff;
}

.meas-dim-label {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(165, 180, 252, 0.5);
}

.meas-dim-divider {
  width: 1px;
  height: 40px;
  background: rgba(99, 102, 241, 0.12);
}

.meas-systems {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 12px;
}

.meas-size-disclaimer {
  margin: 0 0 10px;
  text-align: center;
  font-size: 0.6875rem;
  line-height: 1.4;
  color: rgba(165, 180, 252, 0.58);
}

.meas-result-help {
  margin: 2px 0 0;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(199, 210, 254, 0.72);
}

.meas-source-badge {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(165, 180, 252, 0.4);
  letter-spacing: 0.3px;
}

.meas-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  padding-top: 12px;
}
.meas-root {
  overflow-y: auto;
}
.meas-card {
  width: calc(100% - 32px);
  max-width: 400px;
  margin: 5rem auto 2rem;
  padding: 24px;
  background: #0a0c1e;
}
.meas-title {
  font-size: 1.5rem;
  font-weight: 700;
}
.meas-subtitle {
  color: #cbd5e1;
  line-height: 1.5;
  margin: 16px 0;
}
.scanner-help {
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 16px 0;
}
.scanner-help p {
  margin: 0 0 12px;
}
.scanner-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #e0e7ff;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 16px 0;
}
.scanner-option input {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  accent-color: #6366f1;
}
.scanner-help a,
.meas-help-link {
  color: #c7d2fe;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.meas-instruction-overlay {
  justify-content: flex-start;
  overflow-y: auto;
  padding-top: 100px;
  padding-bottom: 24px;
}
.meas-instruction-overlay > .meas-glass-card {
  margin-block: auto;
  flex-shrink: 0;
}
.meas-glass-card {
  background: #0a0c1e;
}
.meas-result-overlay {
  max-height: calc(100dvh - 6rem);
  overflow-y: auto;
  padding: 16px 16px 32px;
}
.meas-result-card {
  background: #080a1c;
}
.meas-processing-overlay {
  overflow-y: auto;
  padding: 100px 20px 24px;
}
.meas-processing-label {
  overflow-wrap: anywhere;
}
.meas-size-system-label,
.meas-dim-label,
.meas-source-badge,
.meas-progress-label,
.meas-size-disclaimer {
  color: #c7d2fe;
}
.meas-feedback {
  top: 88px;
  background: #7f1d1d;
  max-height: 25dvh;
  overflow-y: auto;
}
.meas-active-session {
  display: flex;
  flex-direction: column;
}
.meas-active-session
  :is(
    .meas-instruction-overlay,
    .meas-processing-overlay,
    .meas-result-overlay
  ) {
  position: relative;
  inset: auto;
  flex: 1;
  min-height: 8rem;
  max-height: none;
  width: 100%;
  padding: 24px 20px;
}
.meas-active-session .meas-result-overlay > * {
  flex-shrink: 0;
}
.meas-feedback {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  margin: 16px auto;
  flex-shrink: 0;
}

@keyframes measSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes measScanSweep {
  0%,
  100% {
    top: 14px;
  }
  50% {
    top: 208px;
  }
}

@keyframes measFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes measSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes measPopIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes measPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.65;
  }
}

.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  color: #fff;
  background: #4f46e5;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.site-button:hover:not(:disabled) {
  background: #4338ca;
}
.site-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.site-button:focus-visible {
  outline: 2px solid #a5b4fc;
  outline-offset: 3px;
}
.site-button[data-tone="light"]:focus-visible {
  outline-color: #4338ca;
}
.site-button__state {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.site-button[data-size="sm"] {
  min-height: 2.25rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
}
.site-button[data-size="lg"] {
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}
.site-button[data-size="icon"] {
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0.5rem;
}
.site-button[data-variant="destructive"] {
  background: #b91c1c;
}
.site-button[data-variant="destructive"]:hover:not(:disabled) {
  background: #991b1b;
}
.site-button[data-variant="success"] {
  background: #047857;
}
.site-button[data-variant="success"]:hover:not(:disabled) {
  background: #065f46;
}
.site-button:is([data-variant="secondary"], [data-variant="outline"]) {
  color: #e5e7eb;
  background: #262938;
}
.site-button:is([data-variant="secondary"], [data-variant="outline"]):hover:not(
    :disabled
  ) {
  color: #fff;
  background: #35394d;
}
.site-button[data-tone="light"]:is(
    [data-variant="secondary"],
    [data-variant="outline"]
  ) {
  color: #1f2937;
  background: #e5e7eb;
}
.site-button[data-tone="light"]:is(
    [data-variant="secondary"],
    [data-variant="outline"]
  ):hover:not(:disabled) {
  background: #d1d5db;
  color: #111827;
}
.site-button[data-variant="subtle"] {
  background: #161a36;
  color: #c7d2fe;
}
.site-button[data-variant="subtle"]:hover:not(:disabled) {
  background: #242954;
}
.site-button[data-variant="ghost"],
.site-button[data-variant="link"] {
  background: transparent;
  color: #d1d5db;
}
.site-button[data-variant="ghost"]:hover:not(:disabled) {
  background: #262938;
  color: #fff;
}
.site-button[data-variant="link"] {
  color: #a5b4fc;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.site-button[data-variant="link"]:hover:not(:disabled) {
  background: transparent;
  color: #c7d2fe;
}
.site-button[data-tone="light"]:is(
    [data-variant="ghost"],
    [data-variant="link"]
  ) {
  color: #3730a3;
}
.site-button[data-variant="photo"] {
  flex-direction: column;
  min-height: 4.5rem;
  width: 100%;
  background: #171923;
  color: #d1d5db;
  border: 1px dashed #64748b;
}
.site-button[data-variant="photo"]:hover:not(:disabled) {
  background: #262938;
}
.site-button[aria-pressed="true"]:not([data-size="icon"]) {
  background: #4f46e5;
  color: #fff;
}
.site-button[aria-pressed="true"]:not([data-size="icon"]):hover:not(:disabled) {
  background: #4338ca;
  color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .site-button {
    transition: none;
  }
}

.legal-document {
  color: #111827;
  background: #fff;
  margin: 0 auto;
  padding: 24px;
  max-width: 75rem;
  font-family: Arial, sans-serif;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.legal-document nav,
.legal-document footer {
  padding: 16px 0;
}
.legal-document a {
  color: #2424aa;
  text-decoration: underline;
}
.legal-document [role="heading"] {
  display: block;
  margin-top: 1.5em;
  line-height: 1.5;
}
.legal-document main {
  scroll-margin-top: 1rem;
}
.legal-document li {
  line-height: 1.5 !important;
}
.hero-globe {
  cursor: grab;
  touch-action: pan-y pinch-zoom;
}
.hero-globe:active {
  cursor: grabbing;
}
.hero-globe canvas {
  opacity: 0.35;
  touch-action: pan-y pinch-zoom;
}
@media (min-width: 768px) {
  .hero-globe canvas {
    opacity: 0.7;
  }
}

.motion-toggle {
  position: fixed;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
}
.motion-toggle > button {
  box-shadow: 0 4px 20px #0008;
}
