/* Racto overrides on top of Facto v2 CSS */

@media (width >= 1181px) {
  .v2-nav-panel-header,
  .v2-nav-utility { display: none; }
}

.v2-nav {
  display: flex;
}
.v2-brand { order: 1; }
.v2-nav-panel { order: 2; }
.v2-nav-actions { order: 3; }
.v2-menu-toggle { order: 4; }

.racto-x {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #0d0e11;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.racto-x svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  display: block;
}
.racto-x:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
}
.racto-x:active {
  transform: translateY(0) scale(0.98);
}

.v2-nav-actions {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

@media (width <= 1180px) {
  .v2-nav {
    justify-content: flex-end;
    gap: 8px;
  }
  .v2-brand { margin-right: auto; }
  .v2-nav-actions .v2-button { display: none; }
  .racto-x {
    width: 38px;
    height: 38px;
  }
}

.v2-phone-status > div { opacity: 0; }
.v2-phone-status > div:first-child { opacity: 1; }
.v2-money-connectors > div {
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.site-footer-mobile { display: none; }
@media (width <= 765px) {
  .site-footer-mobile { display: block; }
}

.v2-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.v2-brand img {
  width: auto !important;
  height: 28px !important;
  max-width: none;
}
@media (width <= 765px) {
  .v2-brand img { height: 22px !important; }
}

.v2-trust-strip { display: none !important; }

.v2-api-live {
  display: flex;
  align-items: center;
  gap: 8px;
}
.v2-api-live i { display: block; }

.v2-money-brand-icon {
  background: transparent !important;
  border-radius: 8px;
  overflow: hidden;
}
.v2-money-brand-icon img,
.v2-account-logo img {
  border-radius: 8px;
  object-fit: cover;
}
.v2-money-list-left {
  width: 18% !important;
  left: 7.5% !important;
}
.v2-money-list-left > div span:first-child {
  white-space: nowrap;
}

.v2-phone-card-mark {
  object-fit: contain;
  width: 72px !important;
  height: 72px !important;
  top: 50px !important;
  left: 51px !important;
}
.v2-payment-card-mark {
  object-fit: contain;
}

.v2-hero-copy h1 span.racto-name {
  display: inline;
}

.footer-mega-wordmark {
  width: 100%;
  height: auto;
  display: block;
}

.v2-nav-panel-header .v2-brand img {
  height: 24px !important;
}

/* Launch App page */
.launch-page {
  min-height: 100svh;
  background: #f4f4f4;
  color: #0d0e11;
  font-family: Archivo, Arial, sans-serif;
}
.launch-hero {
  padding: 140px 32px 48px;
  text-align: center;
}
.launch-hero h1 {
  margin: 0 auto;
  max-width: 720px;
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.launch-hero p {
  margin: 18px auto 0;
  max-width: 520px;
  color: #0d0e1180;
  font-size: 18px;
  line-height: 1.45;
}
.launch-plans {
  width: min(calc(100% - 64px), 1180px);
  margin: 0 auto 96px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.plan-card {
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 12px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  position: relative;
  overflow: hidden;
}
.plan-card.is-featured {
  border-color: #0d0e11;
  box-shadow: 0 18px 40px #0d0e1114;
}
.plan-card.is-featured::before {
  content: "Most popular";
  position: absolute;
  top: 18px;
  right: 18px;
  background: #f243ac;
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 6px 10px;
}
.plan-kicker {
  color: #0d0e1180;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.plan-card h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.plan-price {
  margin: 18px 0 0;
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan-price span {
  color: #0d0e1180;
  font-size: 16px;
  letter-spacing: 0;
}
.plan-blurb {
  color: #0d0e1180;
  font-size: 14px;
  line-height: 1.45;
  margin: 16px 0 24px;
}
.plan-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.plan-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.4;
}
.plan-features li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  background: #58e78f;
  border-radius: 50%;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M6.2 11.4 3.4 8.6l1.2-1.2 1.6 1.6 4.2-4.2 1.2 1.2z'/></svg>") center / 12px no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M6.2 11.4 3.4 8.6l1.2-1.2 1.6 1.6 4.2-4.2 1.2 1.2z'/></svg>") center / 12px no-repeat;
}
.plan-card .v2-button {
  width: 100%;
}
.launch-note {
  width: min(calc(100% - 64px), 720px);
  margin: 0 auto 80px;
  text-align: center;
  color: #0d0e1180;
  font-size: 14px;
  line-height: 1.5;
}
.wallet-connected {
  display: none;
  width: min(calc(100% - 64px), 720px);
  margin: 0 auto 48px;
  background: #0d0e11;
  color: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  text-align: center;
}
.wallet-connected.is-on { display: block; }
.wallet-connected strong {
  font-weight: 500;
  letter-spacing: -0.02em;
}
.wallet-connected code {
  font-family: SFMono-Regular, Consolas, monospace;
  color: #58e78f;
  font-size: 14px;
}

@media (width <= 980px) {
  .launch-plans {
    grid-template-columns: 1fr;
    width: calc(100% - 32px);
  }
  .plan-card { min-height: 0; }
  .launch-hero { padding: 110px 16px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .v2-money-lines .v2-money-path-active { stroke-dashoffset: 0 !important; }
}
