/* =============================================================
   INCENSION PORTAL — COMPONENT LIBRARY
   =============================================================
   Every reusable component, lifted from the funnel exactly.
   Requires brand-tokens.css to be loaded first.
   ============================================================= */

/* =============================================================
   BUTTONS
   ============================================================= */

/* Primary CTA — deep navy, sharp corners, all caps */
.btn {
  display: inline-block;
  background: var(--color-deep-navy);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: var(--weight-regular);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 18px 36px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition-medium), transform var(--transition-fast);
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  background: var(--color-dark-navy);
  transform: translateY(-1px);
}

.btn:disabled {
  background: #b4c4cc;
  cursor: not-allowed;
  transform: none;
}

/* Large primary — for hero CTAs */
.btn-large {
  font-size: 12px;
  padding: 22px 44px;
  letter-spacing: 0.24em;
  min-width: 280px;
  box-shadow: var(--shadow-cta);
}

.btn-large:hover {
  box-shadow: var(--shadow-cta-hover);
}

/* Ghost button — text-only, steel blue */
.btn-ghost {
  background: transparent;
  color: var(--color-steel-blue);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: var(--weight-regular);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 18px 16px;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-ghost:hover {
  color: var(--color-dark-navy);
}

.btn-ghost:disabled {
  color: #b4c4cc;
  cursor: not-allowed;
}

/* Small CTA hint — below buttons */
.cta-hint {
  margin-top: 14px;
  font-size: 12px;
  color: var(--color-text-caption);
  letter-spacing: 0.05em;
  text-align: center;
}

/* =============================================================
   CARDS
   ============================================================= */

/* Generic white card */
.card {
  background: var(--color-white);
  border: 1px solid var(--border-default);
  padding: 40px;
  border-radius: var(--radius);
}

/* Form card — has shadow, narrower max-width */
.form-card {
  background: var(--color-white);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-card);
  padding: 36px 32px;
  max-width: var(--max-card-width);
  border-radius: var(--radius);
  width: 100%;
}

/* Dark band — for quote sections or detail bands */
.dark-band {
  background: var(--gradient-dark-band);
  padding: 70px 28px;
  text-align: center;
  color: var(--color-text-on-dark);
}

.dark-band .eyebrow {
  color: rgba(157,212,240,0.6);
  margin-bottom: var(--space-md);
}

.dark-band h1,
.dark-band h2,
.dark-band h3 {
  color: var(--color-text-on-dark);
}

/* =============================================================
   FORMS
   ============================================================= */

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: var(--weight-regular);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-steel-blue);
  margin-bottom: 8px;
  margin-top: 16px;
}

.form-label:first-child {
  margin-top: 0;
}

.form-input {
  width: 100%;
  background: var(--color-near-white);
  border: 1px solid rgba(74,143,181,0.2);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: var(--weight-thin);
  padding: 12px 14px;
  border-radius: var(--radius);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.form-input:focus {
  border-color: var(--color-steel-blue);
  background: var(--color-white);
}

.form-input::placeholder {
  color: rgba(42,96,128,0.32);
}

/* Textarea — for longer input */
textarea.form-input {
  min-height: 160px;
  padding: 16px;
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
  font-family: var(--font-body);
}

/* =============================================================
   DIVIDERS
   ============================================================= */

.divider {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(to right,
    transparent,
    rgba(74,143,181,0.2),
    transparent);
}

/* Labeled divider — with text in the middle */
.divider-labeled {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: var(--max-card-width);
  margin: 8px auto 20px;
}

.divider-labeled::before,
.divider-labeled::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(74,143,181,0.2);
}

.divider-labeled span {
  font-size: var(--label-size);
  letter-spacing: var(--label-letter-spacing);
  text-transform: uppercase;
  color: var(--color-mid-blue);
}

/* =============================================================
   PULL QUOTE
   ============================================================= */

.pull-quote {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: var(--weight-thin);
  font-style: italic;
  color: var(--color-text-primary);
  border-left: 2px solid var(--color-steel-blue);
  padding-left: 16px;
  line-height: 1.6;
  border-radius: var(--radius);
}

/* =============================================================
   CHECKPOINT LIST (from the funnel's "What's waiting for you")
   Unchecked circles with soft breathing animation.
   ============================================================= */

.checkpoint-list {
  list-style: none;
  padding: 0;
}

.checkpoint-list li {
  font-size: 15px;
  color: var(--color-text-body);
  padding: 14px 0;
  border-bottom: 1px solid rgba(74,143,181,0.12);
  display: flex;
  align-items: center;
  gap: 14px;
}

.checkpoint-list li:last-child {
  border-bottom: none;
}

.checkpoint-list li::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(74,143,181,0.45);
  background:
    radial-gradient(circle at center,
      rgba(74,143,181,0.25) 0,
      rgba(74,143,181,0.25) 2.5px,
      var(--color-white) 2.8px,
      var(--color-white) 100%);
  flex-shrink: 0;
  border-radius: 50%;
  transition: border-color var(--transition-medium), box-shadow var(--transition-medium);
}

/* =============================================================
   CONSENT CHECKBOX (with proper SVG checkmark)
   ============================================================= */

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-top: 16px;
}

.consent-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid var(--color-mid-blue);
  background: var(--color-white);
  cursor: pointer;
  margin: 0;
  margin-top: 2px;
  position: relative;
  flex-shrink: 0;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  border-radius: 0;
}

.consent-row input[type="checkbox"]:checked {
  background-color: var(--color-deep-navy);
  border-color: var(--color-deep-navy);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5 L6.8 11.5 L12.5 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

.consent-row input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--color-steel-blue);
  outline-offset: 2px;
}

.consent-label {
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text-body);
}

.consent-label strong {
  font-weight: var(--weight-regular);
  color: var(--color-text-primary);
}

/* =============================================================
   CLOUD DRIFT BACKGROUND SYSTEM
   3 soft-blurred circles that drift at different timings.
   Apply to a .bg-wrap container with position:relative and overflow:hidden.
   ============================================================= */

.bg-wrap {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.cloud-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.cloud {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}

.cloud-1 {
  width: 55vw;
  height: 55vw;
  min-width: 400px;
  min-height: 400px;
  background: radial-gradient(circle,
    rgba(200, 223, 240, 0.85) 0%,
    rgba(200, 223, 240, 0) 70%);
  top: -15%;
  left: -10%;
  animation: driftCloudOne 28s ease-in-out infinite;
}

.cloud-2 {
  width: 45vw;
  height: 45vw;
  min-width: 350px;
  min-height: 350px;
  background: radial-gradient(circle,
    rgba(238, 247, 253, 0.9) 0%,
    rgba(238, 247, 253, 0) 70%);
  top: 30%;
  right: -10%;
  animation: driftCloudTwo 34s ease-in-out infinite;
}

.cloud-3 {
  width: 40vw;
  height: 40vw;
  min-width: 300px;
  min-height: 300px;
  background: radial-gradient(circle,
    rgba(218, 237, 248, 0.75) 0%,
    rgba(218, 237, 248, 0) 70%);
  bottom: -10%;
  left: 30%;
  animation: driftCloudThree 42s ease-in-out infinite;
}

/* Content must sit above clouds */
.bg-wrap > *:not(.cloud-layer) {
  position: relative;
  z-index: 1;
}

/* =============================================================
   MOBILE RESPONSIVE
   ============================================================= */

@media (max-width: 680px) {
  .cloud {
    filter: blur(50px);
  }
  .cloud-1, .cloud-2, .cloud-3 {
    min-width: 300px;
    min-height: 300px;
  }
  .card {
    padding: 28px 20px;
  }
  .form-card {
    padding: 28px 20px;
  }
  .btn {
    font-size: 10.5px;
    padding: 16px 18px;
    letter-spacing: 0.2em;
  }
  .btn-large {
    min-width: 100%;
    padding: 20px 32px;
  }
}

/* =============================================================
   ACCESSIBILITY
   ============================================================= */

@media (prefers-reduced-motion: reduce) {
  .cloud { animation: none !important; }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
