:root {
  color-scheme: light;
  --pvv-primary: #4f46e5;
  --pvv-primary-strong: color-mix(in srgb, var(--pvv-primary) 78%, black);
  --pvv-primary-soft: color-mix(in srgb, var(--pvv-primary) 9%, white);
  --pvv-secondary: #111827;
  --pvv-bg: #f8fafc;
  --pvv-surface: #ffffff;
  --pvv-surface-soft: #f1f5f9;
  --pvv-text: #111827;
  --pvv-muted: #64748b;
  --pvv-subtle: #94a3b8;
  --pvv-border: #e2e8f0;
  --pvv-success: #15803d;
  --pvv-success-soft: #ecfdf5;
  --pvv-warning: #b45309;
  --pvv-warning-soft: #fffbeb;
  --pvv-danger: #b91c1c;
  --pvv-danger-soft: #fef2f2;
  --pvv-radius-xs: 8px;
  --pvv-radius-sm: 12px;
  --pvv-radius-md: 16px;
  --pvv-radius-lg: 24px;
  --pvv-radius-xl: 32px;
  --pvv-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --pvv-shadow-md: 0 14px 40px rgba(15, 23, 42, .08);
  --pvv-shadow-lg: 0 28px 70px rgba(15, 23, 42, .14);
  --pvv-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pvv-max: 720px;
  --pvv-nav-height: 74px;
  --pvv-safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html {
  background: var(--pvv-bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background:
    radial-gradient(circle at 50% -20%, color-mix(in srgb, var(--pvv-primary) 10%, transparent) 0%, transparent 42%),
    var(--pvv-bg);
  color: var(--pvv-text);
  font-family: var(--pvv-font);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select {
  font: inherit;
}

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

button {
  color: inherit;
}

a {
  color: var(--pvv-primary);
}

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

h1, h2, h3, h4, p {
  margin-top: 0;
}

h1, h2, h3 {
  letter-spacing: -.025em;
  line-height: 1.13;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 8vw, 3.35rem);
  font-weight: 800;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 5vw, 2rem);
  font-weight: 760;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  font-weight: 720;
}

p:last-child {
  margin-bottom: 0;
}

::selection {
  background: color-mix(in srgb, var(--pvv-primary) 22%, white);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--pvv-primary) 38%, transparent);
  outline-offset: 3px;
}

.pvv-app {
  min-height: 100vh;
}

.pvv-shell {
  width: 100%;
  min-height: 100vh;
  padding-bottom: calc(28px + var(--pvv-safe-bottom));
}

.pvv-shell.has-bottom-nav {
  padding-bottom: calc(var(--pvv-nav-height) + 30px + var(--pvv-safe-bottom));
}

.pvv-main {
  width: min(100% - 32px, var(--pvv-max));
  margin: 0 auto;
  padding: 22px 0 44px;
}

.pvv-screen {
  animation: pvv-screen-in .28s ease both;
}

.pvv-screen > * + * {
  margin-top: 18px;
}

.pvv-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--pvv-primary);
  font-size: .78rem;
  font-weight: 780;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.pvv-muted {
  color: var(--pvv-muted);
}

.pvv-small {
  font-size: .88rem;
}

.pvv-center {
  text-align: center;
}

.pvv-sr-only {
  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;
}

.pvv-boot {
  min-height: 65vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--pvv-muted);
}

.pvv-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--pvv-border);
  border-top-color: var(--pvv-primary);
  border-radius: 50%;
  animation: pvv-spin .8s linear infinite;
}

@keyframes pvv-spin { to { transform: rotate(360deg); } }
@keyframes pvv-screen-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

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