/* Page-specific styles from plushie.ai/blog. */

.form-ask .w-form-done,
.form-ask .w-form-fail {
  display: none !important;
}

.blog-hero-background_image {
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: #e5c4f7;
  box-shadow: 0 4px 20px 0 rgba(255, 255, 255, 0.6) inset;
}

/* =========================
   FIELD WRAPPER (dusty input container)
   ========================= */
/* Remove browser autofill background (Chrome, Safari) */
.field-wrap .w-input:-webkit-autofill,
.field-wrap .form-field:-webkit-autofill {
  box-shadow: 0 0 0px 1000px transparent inset !important; /* wipe yellow bg */
  -webkit-text-fill-color: #1d0943 !important; /* keep text color */
  transition: background-color 0s ease-in-out 9999s; /* prevent flash */
}

.field-wrap {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  box-shadow:
    0 16px 30px 4px rgba(72, 39, 132, 0.2),
    0 0 0 2px rgba(245, 143, 0, 0.2),
    0 0 0 2px rgba(255, 178, 84, 0.64),
    0 0 9.931px 4.966px rgba(255, 255, 255, 0.64) inset;

  /* Smooth state transitions */
  transition: all 0.3s ease;
}

/* Star-dust overlay */
.field-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  mix-blend-mode: screen;
  background-image: var(--btn-noise-url);
  background-repeat: repeat;
  background-size: var(--noise-size, 380px) var(--noise-size, 380px);
  opacity: 1;
  z-index: 1;
}

/* Ensure input text stays above overlays */
.field-wrap > * {
  position: relative;
  z-index: 2;
}

/* Reset styles for Webflow input inside */
.field-wrap .form-field.w-input,
.field-wrap .w-input {
  width: 100%;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  padding: 0.75rem 0.375rem 0.75rem 1rem;
  font: inherit;
  color: #1d0943;
}

/* =========================
   STATES
   ========================= */

/* Hover & Focus */
.field-wrap:hover,
.field-wrap:has(.w-input:focus),
.field-wrap:has(.form-field:focus) {
  background: rgba(255, 255, 255, 0.8);
}

/* Pressed (active input) */
.field-wrap:has(.w-input:active),
.field-wrap:has(.form-field:active) {
  background: rgba(255, 255, 255, 0.8);
}

/* Entered (when input has a value) */
.field-wrap.is-entered {
  background: rgba(255, 255, 255, 0.4);
}

/* Disabled */
.field-wrap.is-disabled {
  opacity: 0.5;
  background: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

/* Error (applied by JS if required field is empty/invalid) */
.field-wrap.is-error {
  border: 1px solid var(--System-Red, #e21906);
  background: rgba(255, 255, 255, 0.4);
}

html {
  font-size: calc(-0.000020811654526609047rem + 1.1111342351716962vw);
}
@media screen and (max-width: 1440px) {
  html {
    font-size: calc(-0.000020811654526609047rem + 1.1111342351716964vw);
  }
}
@media screen and (max-width: 479px) {
  html {
    font-size: calc(0.00007512019230748734rem + 4.266346153846155vw);
  }
}
@media screen and (max-width: 375px) {
  html {
    font-size: calc(-0.00267379679144385rem + 4.27807486631016vw);
  }
}

@media screen and (min-width: 1440px) {
  html {
    font-size: calc(-0.000020811654526609047rem + 1.05vw);
  }
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: never;
}

.text-color-dark_purple {
  background: linear-gradient(132deg, var(--Purple-2, #8554e4) 0%, var(--Purple-1, #4f3582) 73.66%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* grid: default is 1 column (mobile/tablet) */
.pl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

/* 2 cards in a row on desktop */
@media (min-width: 1024px) {
  .pl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pl-card {
  display: flex;
  flex-direction: column;
  /* gap here is between image and the text section (bottom) */
  gap: 1rem;
  padding: 1rem;
  width: 100%;
  border-radius: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(132deg, var(--white, #fff) 0%, var(--gray, #efefef) 73.66%);
  box-shadow:
    0 -8px 20px rgba(0, 0, 0, 0.04) inset,
    0 8px 20px rgba(255, 255, 255, 0.6) inset;
  transition: box-shadow 0.3s ease;
}

/* base: keep 3 shadows (outer is transparent) */
.pl-card {
  box-shadow:
    0 16px 24px 0 rgba(104, 52, 192, 0),
    /* outer (transparent at rest) */ 0 -8px 20px 0 rgba(0, 0, 0, 0.04) inset,
    /* inner */ 0 8px 20px 0 rgba(255, 255, 255, 0.6) inset; /* inner */
  transition: box-shadow 300ms ease; /* easing works now */
}

/* hover on pointer devices */
@media (hover: hover) {
  .pl-card:hover {
    box-shadow:
      0 16px 24px 0 rgba(104, 52, 192, 0.4),
      /* outer (fade in) */ 0 -8px 20px 0 rgba(0, 0, 0, 0.04) inset,
      0 8px 20px 0 rgba(255, 255, 255, 0.6) inset;
  }
}

/* keyboard/touch focus */
.pl-card:focus-within {
  box-shadow:
    0 16px 24px 0 rgba(104, 52, 192, 0.4),
    0 -8px 20px 0 rgba(0, 0, 0, 0.04) inset,
    0 8px 20px 0 rgba(255, 255, 255, 0.6) inset;
  outline: none;
}

.pl-card__img {
  width: 100%;
  aspect-ratio: 151 / 87;
  object-fit: cover;
  border-radius: 1rem;
}

.pl-card__bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1 1 auto;
}

.pl-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pl-card__title {
  font-family: Gilroy-Bold;
  font-size: 1.5rem;
  line-height: 120%;
  letter-spacing: -0.06rem;
  font-weight: 400;
  background: var(
    --gradient-dark-purple,
    linear-gradient(132deg, var(--Purple-2, #8554e4) 0%, var(--Purple-1, #4f3582) 73.66%)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.pl-card__excerpt {
  color: var(--Text-Secondary-dark-text, rgba(29, 9, 67, 0.7));
  font-family: Inter;
  font-size: 1.125rem;
  line-height: 150%;
  letter-spacing: -0.045rem;
  margin: 0;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.pl-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pl-card__meta {
  color: var(--Text-Secondary-dark-text, rgba(29, 9, 67, 0.7));
  font-family: Inter;
  font-size: 0.875rem;
  line-height: 150%;
  letter-spacing: -0.035rem;
}

.pl-card__btn {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5.625rem;
}

/* fix svg size inside button */
.pl-card__btn svg {
  height: 0.7565rem;
}
/* lock fonts inside the blog feed */
.pl-grid {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
}

.pl-card .pl-card__title {
  font-family: Gilroy-Bold, Inter, Arial, sans-serif !important;
  font-weight: 400 !important; /* keep your design */
  font-size: 1.5rem !important;
  line-height: 120% !important;
  letter-spacing: -0.06rem !important;
}

.pl-card .pl-card__excerpt,
.pl-card .pl-card__meta {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif !important;
}

/* avoid heading defaults leaking in (margins, weights, etc.) */
.pl-card h1,
.pl-card h2,
.pl-card h3,
.pl-card h4,
.pl-card h5,
.pl-card h6 {
  margin: 0 !important;
  font-weight: inherit !important;
}

/* mobile adaptation */
@media (max-width: 768px) {
  .pl-grid {
    padding: 3.75rem 1rem;
    gap: 1.5rem;
  }
  .pl-card__title {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    color: var(--Text-Secondary-dark-text, rgba(29, 9, 67, 0.7));
  }
}
