/* ==================== PILL BADGE ==================== */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.5rem 1.25rem;
  background: rgba(15, 27, 56, 0.6);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-wider);
  color: var(--text-secondary);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.pill-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-blue-light);
  box-shadow: 0 0 12px var(--brand-blue-light);
  animation: pulse-dot 2s ease-in-out infinite;
}
.pill-badge--no-dot::before { display: none; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* ==================== BUTTONS ==================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 1.125rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: var(--gradient-cta);
  border: none;
  border-radius: var(--radius-pill);
  box-shadow: var(--glow-cta);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  text-decoration: none;
  letter-spacing: -0.005em;
  min-height: 56px;
  text-align: center;
  line-height: 1.25;
}
@media (min-width: 480px) {
  .btn-primary { padding: 1.125rem 2.25rem; font-size: 1.0625rem; white-space: nowrap; }
}
.btn-full { white-space: normal; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(31, 169, 240, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary svg { width: 20px; height: 20px; transition: transform 0.2s ease; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-full { width: 100%; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0.5rem 0;
  min-height: 44px;
}
.btn-secondary:hover { color: var(--brand-blue-light); }
.btn-secondary svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.btn-secondary:hover svg { transform: translateX(3px); }

/* ==================== CARDS ==================== */
.card {
  position: relative;
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.card:hover {
  border-color: var(--border-card-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.card-featured {
  border-color: var(--brand-blue-light);
  box-shadow: var(--glow-blue);
  background: linear-gradient(180deg, rgba(31, 169, 240, 0.08), rgba(15, 27, 56, 0.6));
}
.card-featured:hover { transform: translateY(-3px); }

.card-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 1.25rem;
  background: var(--gradient-cta);
  color: white;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(31, 169, 240, 0.4);
}

/* ==================== ICON CIRCLE ==================== */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(31, 169, 240, 0.1);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  color: var(--brand-blue-light);
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.card:hover .icon-circle {
  background: rgba(31, 169, 240, 0.18);
  border-color: var(--border-card-hover);
}
.icon-circle svg { width: 24px; height: 24px; }

/* ==================== STEP NUMBER ==================== */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--gradient-cta);
  color: white;
  font-size: 1.75rem;
  font-weight: 800;
  border-radius: 50%;
  box-shadow: var(--glow-blue);
  flex-shrink: 0;
}

/* ==================== FORM ==================== */
.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }

label {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.input, .textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
  min-height: 56px;
}
.textarea { min-height: 120px; resize: vertical; line-height: var(--lh-normal); }

.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand-blue-light);
  background: rgba(255, 255, 255, 0.07);
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) opacity(0.6);
  cursor: pointer;
}
input[type="date"]:focus::-webkit-calendar-picker-indicator { filter: invert(1) opacity(1); }

.input.touched:invalid,
.textarea.touched:invalid {
  border-color: rgba(255, 87, 87, 0.55);
  background: rgba(255, 87, 87, 0.04);
}

.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus,
.input:-webkit-autofill:active,
.textarea:-webkit-autofill,
.textarea:-webkit-autofill:hover,
.textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--bg-secondary) inset !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  caret-color: var(--text-primary);
  border-color: var(--border-subtle);
  transition: background-color 9999s ease-in-out 0s;
}

/* ==================== TRUST ROW ==================== */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}
.trust-row > * { display: inline-flex; align-items: center; gap: 0.4rem; }
.trust-row .stars { color: #FFD27A; letter-spacing: 0.05em; }
.trust-strong { color: var(--text-primary); font-weight: 600; }

/* ==================== HEADER ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 11, 30, 0.78);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: transform 0.3s ease, box-shadow 0.2s ease;
  will-change: transform;
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  min-height: 64px;
}
.logo {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: var(--ls-tight);
  text-decoration: none;
  color: var(--text-primary);
}
.logo .accent { padding-left: 0.05em; }

.nav-links {
  display: none;
  gap: var(--space-md);
  align-items: center;
}
.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  padding: 0.5rem 0;
}
.nav-links a:hover { color: var(--brand-blue-light); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-card);
  background: rgba(31, 169, 240, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease;
  min-height: 44px;
}
.header-cta:hover {
  background: rgba(31, 169, 240, 0.15);
  border-color: var(--border-card-hover);
}
.header-cta svg { width: 16px; height: 16px; color: var(--brand-blue-light); }
.header-cta span { display: none; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .header-cta span { display: inline; }
}

/* Hamburger */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: none;
  border: none;
  color: white;
}
.hamburger {
  width: 24px;
  height: 18px;
  position: relative;
}
.hamburger span {
  position: absolute;
  height: 2px;
  width: 100%;
  background: white;
  border-radius: 2px;
  left: 0;
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }
.menu-toggle.is-open .hamburger span:nth-child(1) { transform: rotate(45deg); top: 8px; }
.menu-toggle.is-open .hamburger span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open .hamburger span:nth-child(3) { transform: rotate(-45deg); top: 8px; }

.nav-mobile {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  min-height: calc(100vh - 64px);
  min-height: calc(100dvh - 64px);
  overflow-y: auto;
  background: rgba(5, 11, 30, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: var(--space-lg) var(--space-md);
  flex-direction: column;
  gap: var(--space-sm);
  z-index: 99;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.nav-mobile a:last-of-type { border-bottom: none; }

@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ==================== STICKY MOBILE CTA ==================== */
.sticky-cta-mobile {
  display: block;
  position: fixed;
  bottom: var(--space-md);
  left: var(--space-md);
  right: var(--space-md);
  z-index: 90;
  padding: 1rem 1.5rem;
  background: var(--gradient-cta);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), var(--glow-cta);
  text-decoration: none;
  transform: translateY(150%);
  transition: transform 0.4s ease;
}
.sticky-cta-mobile.is-visible { transform: translateY(0); }

@media (min-width: 768px) {
  .sticky-cta-mobile { display: none; }
}

/* ==================== FOOTER ==================== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: var(--space-2xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
}
.footer-col h3 {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  font-weight: 700;
}
.footer-col p, .footer-col a {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  display: block;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--brand-blue-light); }
.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.footer-spacer { margin-top: 0.5rem; }
.footer-h4-spaced { margin-top: var(--space-lg); }
.footer-col p > span { display: block; }

/* ==================== LIGHTBOX ==================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 11, 30, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  animation: lightbox-in 0.2s ease-out;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
@keyframes lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox__figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  cursor: default;
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  max-height: calc(100dvh - 120px);
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox__caption {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  text-align: center;
  flex-wrap: wrap;
  justify-content: center;
}
.lightbox__counter { color: var(--brand-blue-light); font-weight: 600; }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(0, 0, 0, 0.85);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}
.lightbox__close {
  top: var(--space-md);
  right: var(--space-md);
  width: 48px;
  height: 48px;
}
.lightbox__close svg { width: 24px; height: 24px; }
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
}
.lightbox__nav:hover { transform: translateY(-50%) scale(1.05); }
.lightbox__nav--prev { left: var(--space-md); }
.lightbox__nav--next { right: var(--space-md); }
.lightbox__nav svg { width: 28px; height: 28px; }

@media (max-width: 640px) {
  .lightbox { padding: var(--space-sm); }
  .lightbox__close { width: 44px; height: 44px; top: var(--space-sm); right: var(--space-sm); }
  .lightbox__close svg { width: 20px; height: 20px; }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { left: var(--space-sm); }
  .lightbox__nav--next { right: var(--space-sm); }
  .lightbox__nav svg { width: 22px; height: 22px; }
  .lightbox__img { max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); }
  .lightbox__caption { font-size: 0.8rem; }
}

body.lightbox-open { overflow: hidden; }
