/* Visual layer over the shipped snapshot. Motion stays on transform/opacity. */

:root {
  --color-brand-bg: #10141c;
  --color-brand-surface: #1a2130;
  --color-brand-border: #343e52;
  --color-brand-primary: #3ee0c5;
  --color-brand-secondary: #c4b2ff;
  --color-brand-text-light: #f4f7fb;
  --color-brand-text-dark: #a8b3c7;
  --color-ink: #0b0e14;
  --font-sans: Inter, ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-display: Inter, ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: dark;
}

html {
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

body {
  min-height: 100dvh;
  font-family: var(--font-sans);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(720px 420px at 50% 18%, color-mix(in oklab, var(--color-brand-primary) 14%, transparent), transparent 68%),
    radial-gradient(560px 360px at 100% 100%, color-mix(in oklab, var(--color-brand-secondary) 10%, transparent), transparent 70%),
    var(--color-brand-bg);
}

::selection {
  background: color-mix(in oklab, var(--color-brand-primary) 32%, transparent);
  color: var(--color-brand-text-light);
}

.skip {
  position: absolute;
  left: max(0.75rem, env(safe-area-inset-left));
  top: max(0.75rem, env(safe-area-inset-top));
  z-index: 20;
  transform: translateY(-150%);
  border-radius: 0.6rem;
  background: var(--color-brand-text-light);
  color: var(--color-ink);
  padding: 0.55rem 0.8rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

#root > .min-h-screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}

#root header {
  position: sticky;
  top: 0;
  z-index: 5;
  padding-top: env(safe-area-inset-top);
  border-bottom-color: transparent;
  background: color-mix(in oklab, var(--color-brand-bg) 74%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 -1px 0 color-mix(in oklab, white 9%, transparent);
}

#root h1 {
  font-weight: 600;
  letter-spacing: -0.034em;
  line-height: 1.08;
  font-optical-sizing: auto;
}

#root header p {
  line-height: 1.45;
  letter-spacing: -0.006em;
}

#root main {
  flex: 1 1 auto;
  width: 100%;
  justify-content: center;
}

#root main:has(video),
#root main:has(img) {
  justify-content: flex-start;
}

#root section[aria-labelledby="pick-label"] {
  width: min(100%, 40rem);
  align-self: center;
}

#root main > section {
  opacity: 1;
  transform: none;
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}

#root main > section:nth-child(2) {
  transition-delay: 45ms;
}

@starting-style {
  #root main > section {
    opacity: 0;
    transform: translateY(8px);
  }
}

#root label.border-dashed {
  min-height: 17.5rem;
  border-style: solid;
  border-width: 1px;
  border-color: color-mix(in oklab, var(--color-brand-text-light) 14%, transparent);
  background:
    radial-gradient(420px 160px at 50% 0%, color-mix(in oklab, var(--color-brand-primary) 16%, transparent), transparent 72%),
    color-mix(in oklab, var(--color-brand-surface) 92%, white);
  box-shadow:
    inset 0 1px 0 color-mix(in oklab, white 10%, transparent),
    0 24px 50px -32px rgb(0 0 0 / 0.85);
  transition:
    transform 160ms var(--ease-out),
    border-color 160ms ease,
    background-color 160ms ease,
    opacity 160ms ease;
}

#root label.border-dashed > svg {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.05rem;
  padding: 0.7rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--color-brand-primary) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-brand-primary) 42%, transparent);
}

#root label.border-dashed > p:first-of-type {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.2;
}

#root label.border-dashed > p:last-of-type {
  max-width: 22.5rem;
  line-height: 1.5;
}

#root label.border-dashed.border-brand-primary {
  border-color: var(--color-brand-primary);
  background:
    radial-gradient(420px 180px at 50% 30%, color-mix(in oklab, var(--color-brand-primary) 22%, transparent), transparent 70%),
    color-mix(in oklab, var(--color-brand-primary) 8%, var(--color-brand-surface));
}

#root label.border-dashed:focus-within {
  outline: 2px solid var(--color-brand-text-light);
  outline-offset: 3px;
}

#root label.border-dashed:active {
  transform: scale(0.985);
}

#root .sr-only:focus,
#root .sr-only:focus-visible {
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  #root label.border-dashed:hover {
    border-color: color-mix(in oklab, var(--color-brand-primary) 72%, transparent);
  }
}

#root [aria-busy="true"] label.border-dashed {
  opacity: 0.62;
  pointer-events: none;
}

#root section[aria-labelledby="pick-label"] > div {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  justify-content: center;
  align-items: center;
  gap: 0.7rem 1.25rem;
  padding: 0.55rem 0.7rem 0.55rem 1rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--color-brand-surface) 88%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, white 8%, transparent);
}

#root button {
  transition-property: transform, background-color, border-color, opacity;
  transition-duration: 160ms;
  transition-timing-function: var(--ease-out);
  touch-action: manipulation;
  user-select: none;
}

#root button:active:not(:disabled) {
  transform: scale(0.97);
}

#root button:focus-visible,
#root :focus-visible {
  outline: 2px solid var(--color-brand-text-light);
  outline-offset: 3px;
}

#root [role="progressbar"] {
  background: color-mix(in oklab, white 8%, var(--color-brand-border));
}

#root [role="progressbar"] > div {
  width: 100%;
  transform-origin: left center;
  transition: transform 180ms var(--ease-out);
}

#root .animate-spin {
  animation-duration: 0.55s;
}

#root main > section.rounded-2xl {
  box-shadow:
    inset 0 1px 0 color-mix(in oklab, white 7%, transparent),
    0 18px 40px -30px rgb(0 0 0 / 0.9);
}

#root article {
  box-shadow: 0 14px 28px -20px rgb(0 0 0 / 0.85);
}

#root ol {
  scroll-snap-type: x proximity;
  scroll-padding-inline: 0.25rem;
}

#root ol > li {
  scroll-snap-align: start;
}

#root input[type="range"] {
  height: 1.75rem;
  cursor: pointer;
  touch-action: manipulation;
}

@media (pointer: coarse) {
  #root input,
  #root select,
  #root textarea {
    font-size: 16px;
  }
}

@media (max-width: 639px) {
  #root label.border-dashed {
    min-height: 15.5rem;
  }

  #root section[aria-labelledby="pick-label"] > div {
    width: 100%;
    border-radius: 1rem;
    align-items: stretch;
    padding: 0.85rem;
  }

  #root section[aria-labelledby="pick-label"] > div > button {
    width: 100%;
  }
}

@media (min-width: 64rem) {
  #root header p {
    max-width: 44rem;
  }
}

@media (prefers-reduced-transparency: reduce) {
  #root header {
    background: var(--color-brand-bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #root main > section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  #root label.border-dashed,
  #root button,
  #root [role="progressbar"] > div {
    transition: none !important;
  }

  #root label.border-dashed:active,
  #root button:active:not(:disabled) {
    transform: none;
  }
}

@media (prefers-contrast: more) {
  #root label.border-dashed,
  #root header,
  #root main > section.rounded-2xl,
  #root section[aria-labelledby="pick-label"] > div {
    box-shadow: inset 0 0 0 1px var(--color-brand-text-light);
  }
}
