/* Vanilla replacements for behaviors the former Webflow runtime provided:
   mobile nav toggle and scroll/load reveals. Loaded after styles.css so these
   rules win ties by source order. Paired with js/site.js. */

/* ---- Navbar floating background ----
   The Webflow runtime was applying this via inline styles at runtime. Without it
   the navbar is fully transparent and the hero gradient bleeds through.

   The frosted background lives on a ::before layer, NOT on the navbar itself, so
   the navbar never becomes a containing block. A non-`none` backdrop-filter on the
   navbar would anchor its `position: fixed` descendants (the mobile menu panel) to
   the ~80px-tall navbar instead of the viewport, collapsing the full-screen menu.
   (.w-nav:before/:after in styles.css is only a vestigial clearfix — this flex
   navbar has no floats to clear — so repurposing ::before is safe.) */
.navbar.w-nav {
  background-color: transparent;
}
.navbar.w-nav::before {
  content: "";
  /* Override the clearfix's `display: table`, which would otherwise shrink this
     absolutely-positioned box to 0×0 and ignore `inset: 0`, leaving the navbar
     transparent so scrolled page content bleeds through it. */
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgba(26, 15, 41, 0.85); /* --brand--purple-brand at 85% */
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  pointer-events: none;
}

/* ---- Mobile nav toggle ----
   Below 992px the menu is a full-screen fixed panel (styled in styles.css).
   styles.css leaves it hidden by default; js/site.js toggles `.nav-open` on the
   navbar to open it and swap the hamburger for the close icon. */
@media screen and (max-width: 991px) {
  .navbar.w-nav .nav-menu {
    display: none;
  }
  .navbar.w-nav.nav-open .nav-menu {
    display: block;
  }
  .navbar.w-nav.nav-open .menu-icon {
    display: none;
  }
  .navbar.w-nav.nav-open .menu-icon.close {
    display: flex;
  }
}

/* ---- Scroll/load reveals (replaces Webflow IX2) ----
   The hidden state only applies once site.js adds `js-reveal` to <html>, so if
   JS never runs nothing is permanently hidden. Reveals only fire >=992px, matching
   the original (mobile shows everything immediately). */
@media (min-width: 992px) {
  .reveal {
    transition:
      opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1),
      transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
  }
  html.js-reveal .reveal {
    opacity: 0;
  }
  html.js-reveal .reveal-down {
    transform: translateY(100px);
  }
  html.js-reveal .reveal-left {
    transform: translateX(-100px);
  }
  html.js-reveal .reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
}

/* ============================================================
   Contact page — "Sign-up first" redesign (recommended).
   Self-contained, scoped under .cs-* so it can't leak into the
   Webflow-exported stylesheet. Colors reuse the site brand tokens.
   ============================================================ */
.cs-section {
  --cs-cyan: var(--brand--light-blue-brand); /* #00c4f0 */
  --cs-ink: var(--brand--purple-brand); /* #1a0f29 */
  --cs-gradient: linear-gradient(120deg, #00c4f0, #9642f7);
  --cs-text-dim: rgba(255, 255, 255, 0.66);
  --cs-text-faint: rgba(255, 255, 255, 0.45);
  --cs-border: rgba(255, 255, 255, 0.1);
  --cs-border-2: rgba(255, 255, 255, 0.16);
  --cs-success: #00e5bd;
  --cs-motion: 200ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Override any Webflow .section padding */
  padding: 0 !important;
  background: radial-gradient(
      60% 50% at 82% 4%,
      rgba(0, 196, 240, 0.16),
      transparent 60%
    ),
    radial-gradient(
      55% 45% at 6% 22%,
      rgba(150, 66, 247, 0.18),
      transparent 60%
    ),
    radial-gradient(120% 100% at 50% 0%, #20003e 0%, #160b29 55%, #11071f 100%);
}

/* ---- Layout ---- */
.cs-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.cs-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: start;
  padding: 9.5rem 0 6.5rem; /* matches .padding-section-xlarge.is-hero on other pages */
}

/* ---- Left rail ---- */
.cs-rail {
  padding-top: 8px;
  max-width: 520px;
}
.cs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cs-cyan);
  white-space: nowrap;
}
.cs-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cs-cyan);
}
.cs-title {
  margin: 18px 0 0;
  font-weight: 700;
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1.03;
  letter-spacing: -0.025em;
  color: #fff;
}
.cs-lede {
  margin: 20px 0 0;
  font-size: clamp(17px, 2.4vw, 20px);
  line-height: 1.55;
  color: var(--cs-text-dim);
}

/* Sign-up CTA card */
.cs-signup-cta {
  position: relative;
  overflow: hidden;
  margin-top: 32px;
  padding: 28px 30px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--cs-border);
  border-radius: 24px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.cs-signup-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      120% 140% at 100% 0%,
      rgba(0, 196, 240, 0.16),
      transparent 55%
    ),
    radial-gradient(
      120% 140% at 0% 100%,
      rgba(150, 66, 247, 0.18),
      transparent 55%
    );
  pointer-events: none;
}
.cs-signup-cta > * {
  position: relative;
}
.cs-sc-head {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #fff;
}
.cs-sc-sub {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--cs-text-dim);
}

/* Primary gradient button */
.cs-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 20px;
  padding: 16px 30px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  background: var(--cs-gradient);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition:
    transform var(--cs-motion),
    box-shadow var(--cs-motion),
    filter var(--cs-motion);
}
.cs-btn-primary svg {
  width: 18px;
  height: 18px;
}
.cs-btn-primary:hover {
  filter: saturate(1.08) brightness(1.03);
  box-shadow: 0 10px 30px rgba(150, 66, 247, 0.35);
}
.cs-btn-primary:active {
  transform: scale(0.985);
}
.cs-btn-primary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

/* Meta items (no credit card · read-only · free scan) */
.cs-sc-meta {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.cs-sc-meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cs-text-dim);
}
.cs-sc-meta svg {
  width: 15px;
  height: 15px;
  color: var(--cs-success);
  flex-shrink: 0;
}

/* Reassurance list */
.cs-reassure {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cs-reassure li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.cs-ic {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--cs-border);
  border-radius: 12px;
  color: var(--cs-cyan);
}
.cs-ic svg {
  width: 20px;
  height: 20px;
}
.cs-rt {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.cs-rd {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--cs-text-dim);
}

/* Testimonial */
.cs-testi {
  margin-top: 32px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--cs-border);
  border-radius: 24px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.cs-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 12px;
  color: var(--cs-cyan);
}
.cs-stars svg {
  width: 15px;
  height: 15px;
}
.cs-testi p {
  margin: 0;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.55;
  color: #fff;
}
.cs-by {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 16px;
}
.cs-by img {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
}
.cs-by span {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.cs-by small {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--cs-text-faint);
}

/* Inline text link inside reassurance copy */
.cs-inline-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s ease;
}
.cs-inline-link:hover {
  text-decoration-color: rgba(255, 255, 255, 0.75);
}

/* Trust badges */
.cs-trust-badges {
  display: block;
  margin-top: 30px;
  width: 100%;
  max-width: 560px;
  height: auto;
  opacity: 0.95;
}

/* ---- Right column: secondary form card ---- */
.cs-form-card {
  padding: 36px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--cs-border);
  border-radius: 24px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.cs-form-head {
  margin-bottom: 24px;
}
.cs-tinytag {
  display: block;
  margin: 0 0 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cs-text-faint);
}
.cs-form-title {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.cs-form-sub {
  margin: 7px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--cs-text-dim);
}

/* ---- Form fields ---- */
.cs-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0;
}
.cs-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cs-group + .cs-group {
  padding-top: 22px;
  border-top: 1px solid var(--cs-border);
}
.cs-group-label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cs-text-faint);
}
.cs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cs-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.cs-field label {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}
.cs-req {
  color: var(--cs-cyan);
  font-weight: 700;
}
.cs-opt {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--cs-text-faint);
}
.cs-hint {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--cs-text-faint);
}
.cs-control {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--cs-border-2);
  border-radius: 12px;
  padding: 13px 15px;
  outline: none;
  transition:
    border-color var(--cs-motion),
    box-shadow var(--cs-motion),
    background var(--cs-motion);
}
.cs-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.cs-control:hover {
  border-color: rgba(255, 255, 255, 0.28);
}
.cs-control:focus {
  border-color: var(--cs-cyan);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(0, 196, 240, 0.22);
}
textarea.cs-control {
  min-height: 120px;
  line-height: 1.55;
  resize: vertical;
}
select.cs-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='0.55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
select.cs-control option {
  color: #1a0f29;
}

/* Glass (secondary) submit button — intentionally quieter than the gradient CTA */
.cs-btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 16px 30px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  cursor: pointer;
  transition:
    background var(--cs-motion),
    border-color var(--cs-motion),
    transform var(--cs-motion);
}
.cs-btn-glass svg {
  width: 18px;
  height: 18px;
}
.cs-btn-glass:hover {
  background: rgba(255, 255, 255, 0.16);
}
.cs-btn-glass:active {
  transform: scale(0.985);
}
.cs-btn-glass:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.cs-form-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cs-privacy {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  text-align: center;
  color: var(--cs-text-faint);
}

/* Turnstile widget (injected by js/forms.js above the submit row) */
.cs-form .cf-turnstile {
  display: flex;
  justify-content: center;
}

/* Success / error states */
.cs-message {
  margin: 0;
  border-radius: 16px;
  padding: 20px;
  font-weight: 500;
  text-align: center;
}
.form_message-success.cs-message {
  background: var(--cs-cyan);
  color: var(--cs-ink);
}
.form_message-error.cs-message {
  margin-top: 16px;
  background: rgba(255, 0, 137, 0.12);
  border: 1px solid rgba(255, 0, 137, 0.4);
  color: #ff7ab8;
}

/* ---- Responsive ---- */
@media screen and (max-width: 960px) {
  .cs-split {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 7.5rem 0 5rem; /* matches tablet hero padding on other pages */
  }
  .cs-rail {
    max-width: 640px;
  }
  .cs-form-card {
    padding: 28px 22px;
  }
}

@media screen and (max-width: 560px) {
  .cs-container {
    padding: 0 18px;
  }
  .cs-split {
    padding: 7.5rem 0 4rem;
  }
  .cs-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-btn-primary,
  .cs-btn-glass,
  .cs-control {
    transition: none;
  }
}

/* Skip-to-content link: visually hidden until focused (keyboard bypass block) */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  z-index: 1000;
  padding: 0.625rem 1.25rem;
  background: #4d65ff;
  color: #fff;
  font-size: 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0.5rem;
}
