/* Interactions and states that sit on top of the compiled Tailwind layer. */

/* Tailwind display utilities would otherwise override the hidden attribute. */
[hidden] {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.is-in {
  opacity: 1;
  transform: none;
}

.hero-underline {
  transform: scaleX(0);
  transform-origin: left;
  animation: hero-underline 1s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}

@keyframes hero-underline {
  to {
    transform: scaleX(1);
  }
}

.orbit {
  animation: orbit-spin linear infinite;
}

.orbit-a { animation-duration: 70s; }
.orbit-b { animation-duration: 96s; animation-direction: reverse; }
.orbit-c { animation-duration: 122s; }

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

.float-card { animation: float-card ease-in-out infinite; }
.float-0 { animation-duration: 7s; }
.float-1 { animation-duration: 8.4s; }
.float-2 { animation-duration: 9.8s; }
.float-3 { animation-duration: 11.2s; }

@keyframes float-card {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, var(--float-y, -11px), 0); }
}

.shield-scan {
  animation: shield-scan 9s ease-in-out infinite;
}

@keyframes shield-scan {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(186px); }
}

.shield-spin {
  transform-origin: 110px 128px;
  animation: shield-spin linear infinite;
}

.shield-spin-a { animation-duration: 46s; }
.shield-spin-b { animation-duration: 64s; animation-direction: reverse; }

@keyframes shield-spin {
  to { transform: rotate(360deg); }
}

.cta-ring {
  animation: cta-ring ease-in-out infinite;
}

@keyframes cta-ring {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.03); }
}

.mesh-dot {
  offset-path: none;
}

/* Header tone */
header[data-solid="true"] {
  border-bottom-color: rgba(200, 214, 236, 0.7);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
}

header[data-solid="false"] {
  border-bottom-color: transparent;
  background-color: transparent;
}

.nav-underline.is-on,
.group:hover .nav-underline {
  transform: scaleX(1);
}

header[data-solid="false"] .nav-link {
  color: rgba(200, 214, 236, 0.75);
}

header[data-solid="false"] .nav-link:hover,
header[data-solid="false"] .nav-link[aria-current="true"] {
  color: #fff;
}

header[data-solid="true"] .nav-link {
  color: #48608a;
}

header[data-solid="true"] .nav-link:hover,
header[data-solid="true"] .nav-link[aria-current="true"] {
  color: #050b16;
}

header[data-solid="false"] .logo-light,
header[data-solid="true"] .logo-dark {
  display: none;
}

header[data-solid="true"] .header-cta {
  border-color: transparent;
  background: #050b16;
  color: #fff;
  backdrop-filter: none;
}

header[data-solid="true"] .header-cta:hover {
  background: #111f36;
  border-color: transparent;
}

header[data-solid="true"] .menu-toggle {
  border-color: #c8d6ec;
  color: #1c2e4b;
}

header[data-solid="true"] .menu-toggle:hover {
  border-color: #9fb4d4;
  color: #050b16;
}

/* Mobile drawer */
.menu-scrim,
.menu-panel {
  visibility: hidden;
}

.menu-scrim {
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.menu-panel {
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.42s;
}

.menu-root.is-open .menu-scrim,
.menu-root.is-open .menu-panel {
  visibility: visible;
}

.menu-root.is-open .menu-scrim {
  opacity: 1;
}

.menu-root.is-open .menu-panel {
  transform: translateX(0);
}

.menu-root.is-open .menu-item {
  animation: menu-item 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes menu-item {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: none; }
}

/* FAQ */
.faq-panel {
  display: none;
}

.faq-panel.is-active {
  display: block;
  animation: faq-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes faq-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.accordion-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.accordion-panel > div {
  overflow: hidden;
}

/* Form */
.form-step {
  display: none;
}

.form-step.is-active {
  display: block;
  animation: step-in 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.form-step.is-back {
  animation-name: step-in-back;
}

@keyframes step-in {
  from { opacity: 0; transform: translateX(32px); }
  to { opacity: 1; transform: none; }
}

@keyframes step-in-back {
  from { opacity: 0; transform: translateX(-32px); }
  to { opacity: 1; transform: none; }
}

.chip:has(input:checked) {
  border-color: #0faee4;
  background: #ecfbff;
  color: #050b16;
  box-shadow: 0 0 0 3px rgba(48, 201, 247, 0.12);
}

.system-fields {
  display: none;
}

.system-card:has(input[type="checkbox"]:checked) {
  border-color: #e4dccb;
  background: #f6f1e6;
}

.system-card:has(input[type="checkbox"]:checked) .system-fields {
  display: grid;
}

.system-card:has(input[type="checkbox"]:checked) .system-label {
  color: #050b16;
}

.system-card .check-glyph {
  transform: scale(0);
}

.system-card:has(input[type="checkbox"]:checked) .check-box {
  border-color: #0a1526;
  background: #0a1526;
  color: #fff;
}

.system-card:has(input[type="checkbox"]:checked) .check-glyph {
  transform: scale(1);
}

.consent:has(input:checked) {
  border-color: #30c9f7;
  background: rgba(236, 251, 255, 0.5);
}

.consent:has(input:checked) .consent-box {
  border-color: #0faee4;
  background: #0faee4;
  color: #fff;
}

.consent:has(input:checked) .check-glyph {
  transform: scale(1);
}

.consent .check-glyph {
  transform: scale(0);
}

.consent.is-error {
  border-color: #fda4af;
  background: rgba(255, 241, 242, 0.4);
}

.field-error {
  display: none;
}

.field-error.is-visible {
  display: flex;
}

.is-invalid {
  border-color: #fda4af !important;
}

.is-invalid:focus {
  border-color: #fb7185 !important;
  --tw-ring-color: rgba(251, 113, 133, 0.15);
}

.sw-12 svg { stroke-width: 1.2; }
.sw-155 svg { stroke-width: 1.55; }
.sw-16 svg { stroke-width: 1.6; }
.sw-17 svg { stroke-width: 1.7; }
.sw-2 svg { stroke-width: 2; }
.sw-22 svg { stroke-width: 2.2; }
.sw-24 svg { stroke-width: 2.4; }
.sw-26 svg { stroke-width: 2.6; }
.sw-3 svg { stroke-width: 3; }

.section-pad {
  padding-top: 3rem;
  padding-bottom: 3rem;
}


/* Qualification section: intro 30%, form 70%. */
.qualify-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.qualify-layout > * {
  min-width: 0;
}

@media (min-width: 1024px) {
  .section-pad {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .qualify-layout{
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .qualify-layout {
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    gap: 3rem;
  }
}

@media (max-width: 1023px) {
  #faqs .grid,
  #faqs .grid > .reveal,
  #faqs [role="tablist"] {
    min-width: 0;
    max-width: 100%;
  }

  #faqs [role="tablist"] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-scale,
  .form-step.is-active,
  .faq-panel.is-active,
  .menu-root.is-open .menu-item {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
