/* XAS Form landing brand overrides */
:root {
  --color-primary-500: #0066ff;
  --color-secondary: #141414;
  --color-accent: #ffffff;
  --color-background-2: #ffffff;
  --color-background-3: #f5f7fb;
  --color-background-4: #eef2fb;
  --color-background-5: #141414;
  --color-background-7: #1a1a1a;
  --color-background-8: #0c0c0c;
  --color-background-12: #e7e7e7;
  --color-background-13: #f5f5f7;
  --color-background-14: #141414;
  --color-stroke-1: #e7e7e7;
  --color-stroke-2: #d7ddea;
  --color-stroke-3: #dfe4eb;
  --color-gradient-14: linear-gradient(180deg, #4da3ff 0%, #0066ff 100%);
}

body {
  background: #f5f5f7;
  color: #141414;
}

.header-scroll {
  border: 1px solid rgba(20, 20, 20, 0.08);
  box-shadow: 0 18px 48px rgba(10, 30, 80, 0.08);
}

/* Navbar: hanya Product + Inner pages (Platform & Plans & Resources disembunyikan) */
li.nav-item[data-menu="platform-mega-menu-v2"],
li.nav-item[data-menu="product-mega-menu"] {
  display: none !important;
}

/* Logo: geser ke kanan agar tidak mepet lengkungan pil */
header .header-scroll > div:first-child {
  padding-left: 12px;
}

header img[src*="xasform-logo-dark"] {
  width: 56px;
  height: auto;
  object-fit: contain;
}

header img[src*="xasform-icon"] {
  width: 33px;
  height: 33px;
  object-fit: contain;
}

.bg-\(image\:--color-gradient-14\),
.after\:bg-\(image\:--color-gradient-14\)::after {
  background-image: var(--color-gradient-14);
}

.to-\[\#864FFE\] {
  --tw-gradient-to: #0066ff;
}

.button .button-icon {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.bg-secondary.group:hover,
.group-hover\:bg-primary-500:is(:where(.group):hover *) {
  background-color: #0066ff;
}

.fill-primary-500 {
  fill: #0066ff;
}

.text-primary-500 {
  color: #0066ff;
}

.footer img[src*="xasform-logo-dark"] {
  max-width: 190px;
  height: auto;
}

.footer {
  border-top: 1px solid rgba(20, 20, 20, 0.08);
}

.footer-link-v2:hover {
  color: #0066ff;
}

[data-mini-prompt-form] [data-colored-border] {
  box-shadow: 0 18px 55px rgba(15, 35, 75, 0.14);
}

[data-mini-prompt-form] input[name="prompt"] {
  background: transparent;
}

.xas-ocr-action:hover,
.xas-ocr-action:focus-within {
  background-color: rgba(0, 102, 255, 0.1);
}

.xas-ocr-action:hover svg path,
.xas-ocr-action:focus-within svg path {
  stroke: #0066ff;
  stroke-opacity: 1;
}

[data-file-upload-filename] {
  max-width: 132px;
}

@media (min-width: 1024px) {
  header img[src*="xasform-logo-dark"] {
    width: 64px;
  }
}

@media (max-width: 767px) {
  [data-mini-prompt-form] {
    max-width: calc(100vw - 28px);
  }

  [data-mini-prompt-form] [data-colored-border] {
    gap: 8px;
    padding: 8px;
  }

  [data-mini-prompt-form] fieldset {
    max-width: none;
    min-width: 0;
  }

  [data-mini-prompt-form] input[name="prompt"] {
    font-size: 14px;
  }

  .xas-hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .xas-hero-actions > a,
  .xas-hero-actions > div {
    width: auto !important;
  }

  .xas-hero-actions {
    position: relative;
    z-index: 30 !important;
  }

  .xas-hero-actions .button {
    width: auto !important;
    min-width: 152px;
    pointer-events: auto !important;
    position: relative;
    z-index: 31 !important;
  }

  .xas-hero-actions a,
  .xas-hero-actions button {
    pointer-events: auto !important;
    position: relative;
    z-index: 31 !important;
  }

  /* gradient bawah hero jangan blok klik */
  figure:has(img[src*="bottom-gradient"]) {
    pointer-events: none !important;
  }

  .xas-hero-actions .button-text {
    flex: 0 0 auto !important;
    padding-left: 16px !important;
    padding-right: 20px !important;
  }

  .xas-hero-actions .button:hover .button-icon,
  .xas-hero-actions .button:focus-visible .button-icon,
  .xas-hero-actions .button:active .button-icon {
    transform: translateX(calc(100% + 58px));
  }

  .xas-hero-actions .button:hover .button-text,
  .xas-hero-actions .button:focus-visible .button-text,
  .xas-hero-actions .button:active .button-text {
    transform: translateX(-58px);
  }
}

@media (max-width: 640px) {
  header img[src*="xasform-logo-dark"] {
    width: 48px;
    max-height: 18px;
    object-fit: contain;
  }

  header img[src*="xasform-icon"] {
    width: 30px;
    height: 30px;
  }
}
