/* Core Web Vitals — skip preloader paint delay, stabilize layout */
html.loaded .loader-wrapper,
.loader-wrapper {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}

img {
  height: auto;
  max-width: 100%;
}

.shape-area img,
.service--shape img {
  content-visibility: auto;
}

/* Logo must stay visible — header was overcrowded and hid it */
.header-three .logo-area.yaani-site-logo {
  flex: 0 0 auto;
  min-width: 120px;
  max-width: 180px;
  padding: 16px 0;
  margin-right: 16px;
  z-index: 3;
}

.header-three .logo-area.yaani-site-logo img {
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
  max-height: 48px;
  object-fit: contain;
}

.header-three .header-wrapper-main-three {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.header-three .header-wrapper-main-three .header-right-area {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.yaani-header-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.yaani-header-cta-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.yaani-header-cta-link:hover {
  color: #fff;
}

.yaani-header-cta-primary {
  white-space: nowrap;
  padding: 10px 18px !important;
  font-size: 14px !important;
}

@media (max-width: 1200px) {
  .header-three .header-wrapper-main-three .header-right-area .main-nav-area {
    display: none;
  }
}

@media (max-width: 576px) {
  .yaani-header-cta-link {
    display: none;
  }

  .header-three .logo-area.yaani-site-logo img {
    width: 130px;
  }
}

/* Safety: never show duplicate layout footers if something includes the partial twice */
.rts-footer-area ~ .rts-footer-area {
  display: none !important;
}

.yaani-footer-bar {
  flex-wrap: wrap;
  gap: 16px;
}

.yaani-footer-copyright {
  flex: 1;
  text-align: center;
  margin: 0;
}

.yaani-region-links {
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
  text-align: right;
  white-space: nowrap;
}

.yaani-region-links__label {
  color: #9ca3af;
}

.yaani-region-links__sep {
  color: #6b7280;
}

.yaani-region-links__link {
  color: #c5c9d8;
  text-decoration: none;
}

.yaani-region-links__link:hover,
.yaani-region-links__link.is-active {
  color: #fff;
}

.yaani-region-links__link.is-active {
  font-weight: 600;
}

@media (max-width: 768px) {
  .yaani-footer-copyright {
    flex: 1 1 100%;
    text-align: center;
    order: 2;
  }

  .yaani-region-links {
    flex: 1 1 100%;
    text-align: center;
    white-space: normal;
    order: 3;
  }
}

/* Lead wizard + marketing tools */
.yaani-wizard {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  color: #1e293b;
}

.yaani-wizard--compact { padding: 20px; }

.yaani-wizard__progress {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.yaani-wizard__step {
  flex: 1;
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.yaani-wizard__step span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.yaani-wizard__step--active { color: #fb004c; font-weight: 600; }
.yaani-wizard__step--active span,
.yaani-wizard__step--done span { background: #fb004c; color: #fff; }

.yaani-wizard__title { margin: 0 0 8px; font-size: 1.35rem; }
.yaani-wizard__subtitle { margin: 0 0 20px; color: #64748b; font-size: 15px; }

.yaani-wizard__groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.yaani-wizard__group-card {
  text-align: left;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.yaani-wizard__group-card strong { display: block; margin-bottom: 4px; }
.yaani-wizard__group-card span { font-size: 13px; color: #64748b; }
.yaani-wizard__group-card.is-selected,
.yaani-wizard__group-card:hover { border-color: #fb004c; box-shadow: 0 0 0 1px #fb004c; }

.yaani-wizard__services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.yaani-wizard__service {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.yaani-wizard__service:has(input:checked) { border-color: #fb004c; background: #fff5f8; }

.yaani-wizard__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.yaani-wizard__field--full { grid-column: 1 / -1; }
.yaani-wizard__field label { display: block; font-size: 13px; margin-bottom: 4px; font-weight: 500; }
.yaani-wizard__field input,
.yaani-wizard__field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
}

.yaani-wizard__nav { display: flex; gap: 10px; flex-wrap: wrap; }
.yaani-wizard__error { color: #dc2626; font-size: 13px; margin-top: 10px; }
.yaani-wizard__trust { font-size: 12px; color: #64748b; margin-bottom: 16px; }

.yaani-wizard__success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.yaani-audit-badge {
  display: inline-block;
  background: rgba(251, 0, 76, 0.12);
  color: #fb004c;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.yaani-audit-benefits ul { padding-left: 0; list-style: none; }
.yaani-audit-benefits li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.yaani-proof-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.yaani-proof-card__num { font-size: 2rem; font-weight: 700; color: #fb004c; display: block; }

.yaani-tool-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  color: #1e293b;
}

.yaani-tool-card h3 { margin: 0 0 8px; }
.yaani-tool-card p { color: #64748b; font-size: 14px; margin-bottom: 16px; }
.yaani-tool-input { width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; margin-bottom: 12px; }
.yaani-tool-result { margin-top: 16px; padding: 14px; background: #f0fdf4; border-radius: 8px; font-size: 14px; }
.yaani-tool-quiz-item { display: flex; gap: 8px; margin-bottom: 10px; font-size: 14px; cursor: pointer; }
.yaani-tool-cta h2 { margin-bottom: 12px; }

@media (max-width: 768px) {
  .yaani-wizard__fields { grid-template-columns: 1fr; }
}

.yaani-wizard__optin {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #475569;
  cursor: pointer;
  margin-top: 4px;
}

.yaani-wizard__optin input { margin-top: 3px; }

.yaani-wizard__journey {
  text-align: left;
  background: #f8fafc;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 16px 0 20px;
}

.yaani-wizard__journey-title {
  font-weight: 600;
  margin: 0 0 10px;
  font-size: 14px;
  color: #334155;
}

.yaani-wizard__journey-steps {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 14px;
  color: #64748b;
}

.yaani-wizard__journey-steps li { margin-bottom: 6px; }

.yaani-wizard__success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.yaani-newsletter__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.yaani-newsletter__subtitle {
  margin: 0 0 12px;
  font-size: 14px;
  color: #94a3b8;
}

.yaani-newsletter__msg {
  margin: 10px 0 0;
  font-size: 13px;
}

.yaani-newsletter__msg--ok { color: #34d399; }
.yaani-newsletter__msg--error { color: #f87171; }

.yaani-post-newsletter {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.yaani-subscribe-audit-link {
  margin-top: 16px;
  font-size: 14px;
}

.yaani-subscribe-audit-link a {
  color: #fb004c;
  text-decoration: underline;
}

/* Tools page — compact hero (theme default is 768px empty band) */
.yaani-tools-hero {
  background: #353442;
  color: #fff;
  padding: 48px 0 32px;
  margin-top: 0;
}

.yaani-tools-hero .title {
  color: #fff;
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.yaani-tools-hero .disc {
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  margin: 0 auto 20px;
}

.yaani-tools-hero__jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.yaani-tools-grid {
  margin-top: -8px;
  padding-top: 8px;
}

.yaani-tool-card__step {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fb004c;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.yaani-tools-audit-cta {
  padding: 40px 0 56px;
}

.yaani-tools-audit-cta__inner {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 24px;
  color: #1e293b;
}

.yaani-tools-audit-cta__inner h2 {
  margin-bottom: 8px;
}

.yaani-tools-audit-cta__inner p {
  color: #64748b;
  margin-bottom: 16px;
}

.yaani-footer-convert__lead {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 12px;
}

.yaani-footer-convert__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.yaani-footer-tool-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  font-size: 12px;
  text-decoration: none;
}

.yaani-footer-tool-pill:hover {
  border-color: #fb004c;
  color: #fff;
}

.yaani-footer-tool-card {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  margin-bottom: 8px;
  transition: border-color 0.15s, background 0.15s;
}

.yaani-footer-tool-card strong {
  display: block;
  color: #fff;
  font-size: 13px;
  margin-bottom: 2px;
}

.yaani-footer-tool-card span {
  color: #9ca3af;
  font-size: 11px;
}

.yaani-footer-tool-card:hover {
  border-color: #fb004c;
  background: rgba(251, 0, 76, 0.08);
}

.yaani-footer-audit-link {
  display: block;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fb004c, #7c3aed);
  text-decoration: none;
  color: #fff;
}

.yaani-footer-audit-link__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.yaani-footer-audit-link__text {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-top: 2px;
}

.yaani-footer-audit-link:hover {
  color: #fff;
  opacity: 0.95;
}

/* Free audit page */
.yaani-audit-hero {
  background: #353442;
  color: #fff;
  padding: 40px 0 48px;
}

.yaani-audit-hero .title {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin-bottom: 12px;
}

.yaani-audit-hero .disc {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 16px;
}

.yaani-audit-hero__checks {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.yaani-audit-hero__checks li {
  padding: 6px 0 6px 22px;
  position: relative;
  font-size: 14px;
  color: #e2e8f0;
}

.yaani-audit-hero__checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #fb004c;
  font-weight: 700;
}

.yaani-audit-proof {
  padding: 40px 0 56px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.yaani-footer-bar .yaani-footer-logo {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0;
}

.yaani-footer-bar .yaani-footer-logo img {
  display: block;
  background: transparent;
  max-height: 42px;
  width: auto;
}

.yaani-footer-region-col .yaani-footer-region {
  display: block;
}

.yaani-footer-region-col .yaani-footer-region .title {
  margin-bottom: 14px;
}

.yaani-footer-region__select-wrap {
  display: block;
  width: 100%;
  margin: 0;
}

.yaani-footer-region__select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 40px;
  padding: 0 36px 0 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background-color: #2a2d3a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23e2e8f0' d='M1.5 1.5 6 6l4.5-4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 38px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.yaani-footer-region__select:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.yaani-footer-region__select:focus {
  outline: 2px solid #fb004c;
  outline-offset: 2px;
  border-color: rgba(251, 0, 76, 0.45);
}

.yaani-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
