/* Vaultion static overlay — helpers on top of dumped Tailwind bundle */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  background: #f5f8fc;
  color: #0e2340;
}

#app {
  min-height: 100vh;
}

/* Hide number input spinners (Chrome, Safari, Edge, Firefox) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.wizard-step {
  display: none;
}

.wizard-step.is-active {
  display: block;
}

.site-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  max-width: 320px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #0a1b34;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(14, 35, 64, 0.25);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.site-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.escrow-type-card.is-selected,
.token-chip.is-selected,
.network-chip.is-selected,
.window-chip.is-selected {
  border-color: #1268ff !important;
  background: rgba(18, 104, 255, 0.08) !important;
  box-shadow: 0 0 0 1px rgba(18, 104, 255, 0.35);
}

.stepper-item.is-done {
  color: #1268ff;
}

.stepper-item.is-current {
  background: #f5f8fc;
}

.faq-answer {
  display: none;
}

.faq-item.is-open .faq-answer,
div.is-open > .faq-answer {
  display: block;
}

/* Main FAQ accordion */
button.w-full.flex.items-center.justify-between.gap-4 {
  cursor: pointer;
  background: transparent;
  border: 0;
}

button.w-full.flex.items-center.justify-between.gap-4 svg {
  transition: transform 0.18s ease;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hide-mobile {
    display: none !important;
  }
}

/* Trust strip under hero — 3 items centered after networks column removed */
.v-proof-bar {
  justify-items: center;
  align-items: center;
  max-width: 980px;
  margin-inline: auto;
}

.v-proof-bar > div {
  width: 100%;
  justify-content: center !important;
}

.v-proof-bar .text-center {
  text-align: center;
}

/* First item should not keep the old column divider */
.v-proof-bar > div:first-child,
.v-proof-bar > .v-proof-divider:first-child {
  border-left: none !important;
}

/* Footer: compact full-width brand + Resources + Legal */
footer .w-full.mx-auto {
  padding-top: 32px !important;
  padding-bottom: 24px !important;
}

.v-footer-grid {
  display: grid !important;
  gap: 20px 24px !important;
  grid-template-columns: 1fr !important;
  width: 100% !important;
  max-width: none !important;
}

.v-footer-grid > div > a.block {
  padding-block: 3px !important;
}

.v-footer-grid > div > .mt-3 {
  margin-top: 8px !important;
  max-width: 280px !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

footer .mt-10.pt-6 {
  margin-top: 24px !important;
  padding-top: 16px !important;
}

@media (min-width: 640px) {
  .v-footer-grid {
    grid-template-columns: minmax(200px, 1.2fr) repeat(2, minmax(120px, 0.7fr)) !important;
    gap: 16px 32px !important;
    align-items: start !important;
  }
}

@media (min-width: 1024px) {
  .v-footer-grid {
    grid-template-columns: minmax(260px, 1.4fr) repeat(2, minmax(140px, 0.55fr)) !important;
    column-gap: 40px !important;
    justify-content: space-between !important;
  }

  .v-footer-grid > div:first-child {
    margin-right: auto;
  }
}

/* Strict professional grids — no card chrome / icon bubbles */
.v-strict-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #c5d2e4;
  background: #fff;
  margin-top: 3rem;
}

.v-strict-cell {
  padding: 22px 20px 20px;
  border-right: 1px solid #e2e9f3;
  border-bottom: 1px solid #e2e9f3;
}

.v-strict-grid .v-strict-cell:nth-child(2n) {
  border-right: none;
}

.v-strict-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0e2340;
  line-height: 1.25;
}

.v-strict-body {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #3c4e68;
}

@media (min-width: 1024px) {
  .v-strict-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .v-strict-grid--4 .v-strict-cell {
    border-right: 1px solid #e2e9f3;
  }

  .v-strict-grid--4 .v-strict-cell:nth-child(4n) {
    border-right: none;
  }

  .v-strict-grid--4 .v-strict-cell:nth-last-child(-n + 4) {
    border-bottom: none;
  }
}

@media (max-width: 1023px) {
  .v-strict-grid .v-strict-cell:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}

/* ——— Mobile shell ——— */
html,
body {
  overflow-x: hidden;
}

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

/* Mobile drawer */
.v-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  visibility: hidden;
}

.v-mobile-nav.is-open {
  pointer-events: auto;
  visibility: visible;
}

.v-mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 21, 43, 0.55);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.v-mobile-nav.is-open .v-mobile-nav__backdrop {
  opacity: 1;
}

.v-mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: #06152b;
  color: #fff;
  padding: 18px 18px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(104%);
  transition: transform 0.24s ease;
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.28);
}

.v-mobile-nav.is-open .v-mobile-nav__panel {
  transform: translateX(0);
}

.v-mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.v-mobile-nav__head img {
  height: 28px;
  width: auto;
  display: block;
}

.v-mobile-nav__close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.v-mobile-nav__link {
  display: block;
  padding: 13px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.v-mobile-nav__link:hover,
.v-mobile-nav__link:active {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.v-mobile-nav__cta {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v-mobile-nav__cta .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.v-mobile-nav__cta .btn-connect {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.v-mobile-nav__cta .btn-create {
  background: #1268ff;
  color: #fff;
}

body.v-nav-open {
  overflow: hidden;
}

@media (max-width: 1023px) {
  /* Let dumped app shells scroll naturally on phones */
  #app .h-screen {
    height: auto !important;
    min-height: 100dvh;
  }

  #app .overflow-hidden {
    overflow: visible !important;
  }

  #app .overflow-y-auto {
    overflow: visible !important;
  }

  .v-footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 18px 20px !important;
  }

  .v-footer-grid > div:first-child {
    grid-column: 1 / -1;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 4px;
  }

  .v-strict-grid {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }

  .v-strict-grid .v-strict-cell {
    border-right: none !important;
    border-bottom: 1px solid #e2e9f3;
    padding: 18px 16px;
  }

  .v-strict-grid .v-strict-cell:last-child {
    border-bottom: none;
  }

  .v-hero h1 {
    font-size: clamp(32px, 9vw, 44px) !important;
  }

  .v-hero p {
    font-size: 16px !important;
  }

  /* Hero flow steps: same horizontal layout as desktop */
  .v-hero-steps {
    max-width: 100% !important;
    gap: 0;
  }

  .v-hero-steps > .flex.items-center {
    min-width: 0;
  }

  .v-hero-steps .flex.flex-col.items-center {
    width: auto !important;
    min-width: 56px;
    max-width: 72px;
  }

  .v-hero-steps .rounded-full {
    width: 40px !important;
    height: 40px !important;
  }

  .v-hero-steps .rounded-full svg {
    width: 18px !important;
    height: 18px !important;
  }

  .v-hero-steps .mt-2.font-medium {
    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  /* Live feed: keep readable on narrow screens */
  #vaultion-live-rows .v-live-row,
  #vaultion-live .font-mono > .flex {
    gap: 4px;
  }

  main .max-w-3xl {
    padding-left: 16px;
    padding-right: 16px;
  }

  main h1.text-4xl,
  main h1.text-5xl {
    font-size: clamp(28px, 8vw, 40px) !important;
    line-height: 1.12 !important;
  }
}

@media (max-width: 639px) {
  header.sticky .cw-connect-button {
    padding-inline: 12px !important;
    font-size: 13px !important;
  }
}
