:root {
  --vd-deep: #2E1065;
  --vd-violet: #6D28D9;
  --vd-lavender: #EDE9FE;
  --vd-white: #FFFFFF;
  --vd-text: #1E1B4B;
  --vd-muted: #5B5678;
  --vd-soft: #DDD6FE;
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  background: var(--vd-lavender);
  color: var(--vd-text);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--vd-violet);
  text-decoration: none;
}

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--vd-white);
  color: var(--vd-deep);
  border-radius: 8px;
}

.skip-link:focus {
  top: 10px;
}

:focus-visible {
  outline: 2px solid #A78BFA;
  outline-offset: 3px;
}

.vd-bar {
  background: var(--vd-white);
  border-bottom: 1px solid var(--vd-soft);
  padding-top: var(--safe-top);
}

.vd-bar-inner {
  width: min(430px, 100%);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vd-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.vd-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: block;
}

.vd-brand-name {
  font-size: clamp(15px, 4.2vw, 17px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.vd-age {
  flex-shrink: 0;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--vd-lavender);
  color: var(--vd-deep);
  font-size: 11px;
  font-weight: 800;
}

.vd-hero {
  background:
    radial-gradient(120% 90% at 10% 0%, #5B21B6 0%, transparent 55%),
    linear-gradient(160deg, #2E1065 0%, #4C1D95 48%, #6D28D9 100%);
  color: var(--vd-white);
}

.vd-hero-inner {
  width: min(430px, 100%);
  margin: 0 auto;
  padding: 28px 16px 36px;
}

.vd-hero h1 {
  font-size: clamp(24px, 7vw, 30px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.vd-hero-text {
  margin-top: 10px;
  font-size: clamp(13px, 3.6vw, 15px);
  line-height: 1.45;
  color: #EDE9FE;
  max-width: 36ch;
}

.vd-dash,
.vd-process,
.vd-tiles-wrap,
.vd-faq,
.vd-foot {
  width: min(430px, 100%);
  margin: 0 auto;
  padding-inline: 16px;
}

.vd-dash {
  margin-top: -18px;
}

.vd-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.vd-mod {
  background: var(--vd-white);
  border-radius: 16px;
  padding: 14px;
  border: 1px solid #DDD6FE;
}

.vd-mod-amount,
.vd-mod-term,
.vd-mod-action {
  grid-column: 1 / -1;
}

.vd-mod-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vd-violet);
}

.vd-mod-title {
  margin-top: 4px;
  font-size: clamp(15px, 4vw, 17px);
  font-weight: 800;
}

.vd-amount {
  margin: 10px 0 8px;
  font-size: clamp(28px, 8vw, 34px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--vd-deep);
}

.vd-slider-wrap {
  margin-top: 4px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  background: transparent;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--vd-violet) var(--progress, 11%), #DDD6FE var(--progress, 11%));
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--vd-white);
  border: 3px solid var(--vd-violet);
  box-shadow: 0 2px 8px rgba(46, 16, 101, 0.18);
}

input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: #DDD6FE;
}

input[type="range"]::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--vd-violet);
}

input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--vd-white);
  border: 3px solid var(--vd-violet);
}

.vd-scale,
.vd-pick,
.vd-note,
.vd-result-hint,
.vd-faq-a,
.vd-track-text,
.vd-tile p,
.vd-foot p {
  color: var(--vd-muted);
  line-height: 1.45;
}

.vd-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  font-size: 12px;
}

.vd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.vd-chip {
  min-height: 54px;
  padding: 8px 12px;
  border: 1px solid #DDD6FE;
  border-radius: 999px;
  background: #F5F3FF;
  color: var(--vd-text);
  font-weight: 700;
  font-size: 13px;
}

.vd-chip.is-on {
  background: var(--vd-deep);
  border-color: var(--vd-deep);
  color: var(--vd-white);
}

.vd-pick {
  margin: 10px 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--vd-text);
}

.vd-pick-sep {
  margin-inline: 6px;
  color: #A78BFA;
}

.vd-note {
  font-size: 13px;
  margin-bottom: 14px;
}

.vd-btn,
.vd-chip,
.vd-faq-q,
.cp-btn {
  cursor: pointer;
}

.vd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  background: var(--vd-violet);
  color: var(--vd-white);
  font-weight: 800;
  font-size: 16px;
}

.vd-btn-ghost {
  margin-top: 8px;
  background: var(--vd-lavender);
  color: var(--vd-deep);
}

.vd-btn:disabled {
  opacity: 0.6;
}

.vd-state {
  display: block;
  background: var(--vd-white);
  border: 1px solid #DDD6FE;
  border-radius: 16px;
  padding: 20px 16px;
}

.vd-load-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
}

.vd-progress {
  height: 10px;
  border-radius: 999px;
  background: #DDD6FE;
  overflow: hidden;
}

.vd-progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #6D28D9, #A78BFA);
  border-radius: inherit;
}

.vd-receipt {
  border: 1px dashed #A78BFA;
  border-radius: 12px;
  padding: 16px;
  background:
    repeating-linear-gradient(
      180deg,
      #FAF5FF 0,
      #FAF5FF 12px,
      #F5F3FF 12px,
      #F5F3FF 13px
    );
}

.vd-receipt-brand {
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--vd-violet);
}

.vd-receipt-caption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--vd-muted);
}

.vd-receipt-code {
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(36px, 10vw, 44px);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--vd-deep);
  margin: 4px 0 12px;
}

.vd-receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px dashed #C4B5FD;
  font-size: 14px;
}

.vd-result-hint {
  margin: 12px 0 16px;
  font-size: 13px;
}

.vd-process,
.vd-tiles-wrap,
.vd-faq {
  padding-top: 28px;
}

.vd-h2 {
  font-size: clamp(20px, 5.6vw, 24px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.vd-track {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
}

.vd-track li {
  position: relative;
  flex: 1 1 120px;
  min-width: 132px;
  background: var(--vd-white);
  border-radius: 14px;
  padding: 14px;
  scroll-snap-align: start;
}

.vd-track li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 26px;
  right: -10px;
  width: 10px;
  height: 2px;
  background: #A78BFA;
}

.vd-node {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--vd-deep);
  color: var(--vd-white);
  font-size: 12px;
  font-weight: 800;
}

.vd-track-title {
  margin-top: 8px;
  font-weight: 800;
  font-size: 14px;
}

.vd-track-text {
  margin-top: 4px;
  font-size: 13px;
}

.vd-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.vd-tile {
  background: var(--vd-white);
  border-radius: 14px;
  padding: 14px;
  border: 1px solid #DDD6FE;
}

.vd-tile h3 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 6px;
}

.vd-tile p {
  font-size: 12px;
}

.vd-faq-item {
  background: var(--vd-white);
  border-radius: 14px;
  margin-bottom: 8px;
  border: 1px solid #DDD6FE;
  overflow: hidden;
}

.vd-faq-q {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  text-align: left;
  font-weight: 800;
  color: var(--vd-text);
}

.vd-faq-a {
  display: none;
  padding: 0 14px 14px;
  font-size: 14px;
}

.vd-faq-item.is-open .vd-faq-a {
  display: block;
}

.vd-foot {
  padding: 28px 16px calc(24px + var(--safe-bottom));
  font-size: 13px;
}

.vd-foot-brand {
  font-weight: 800;
  color: var(--vd-deep);
  margin-bottom: 8px;
}

.vd-foot p + p {
  margin-top: 6px;
}

.vd-foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 14px;
}

.vd-legal-head {
  background:
    linear-gradient(160deg, #2E1065 0%, #4C1D95 50%, #6D28D9 100%);
  color: var(--vd-white);
  padding-top: calc(14px + var(--safe-top));
  padding-bottom: 28px;
}

.vd-legal-head .vd-bar-inner,
.vd-legal-head .vd-legal-wrap {
  width: min(430px, 100%);
  margin: 0 auto;
  padding-inline: 16px;
}

.vd-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #EDE9FE;
  font-weight: 700;
  font-size: 14px;
}

.vd-legal-head h1 {
  margin-top: 10px;
  font-size: clamp(24px, 7vw, 30px);
  letter-spacing: -0.03em;
}

.vd-legal-card {
  width: min(430px, 100%);
  margin: -16px auto 0;
  padding: 20px 16px 8px;
  background: var(--vd-white);
  border-radius: 18px 18px 0 0;
}

.vd-legal-card h2 {
  margin: 18px 0 8px;
  font-size: 17px;
}

.vd-legal-card p,
.vd-legal-card li {
  font-size: 14px;
  line-height: 1.55;
  color: var(--vd-muted);
}

.vd-legal-card p + p,
.vd-legal-card ul {
  margin-top: 10px;
}

.vd-legal-card ul {
  padding-left: 18px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
