@keyframes rotateSquare {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.intro-pattern-overlay {
    background-image: repeating-linear-gradient(45deg, transparent, transparent 20px, currentColor 20px, currentColor 40px);
    opacity: 0.03;
    top: -20%;
    left: -30%;
    width: 100%;
    height: 100%;
    animation: rotateSquare 20s linear infinite;
}

.intro-pattern-content {
    max-width: 56rem;
}

.features-timeline__decor--pulse {
    animation: features-timeline-pulse-kf 2s infinite;
}
.features-timeline__decor--bounce {
    animation: features-timeline-bounce-kf 2s infinite;
    transform: rotate(12deg);
}
.features-timeline__decor--spin {
    animation: features-timeline-spin-kf 4s linear infinite;
}
.features-timeline__decor--pulse-small {
    animation: features-timeline-pulse-kf 2s infinite;
}
.features-timeline__item:hover .features-timeline__icon {
    transform: scale(1.1);
    transition: transform 0.25s ease;
}
.features-timeline__item:hover .features-timeline__title {
    color: var(--bs-primary);
}

/* ?? step number (BS mode) ?? */
.features-timeline__num-bs {
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
    color: var(--bs-primary-border-subtle);
    opacity: 0.8;
    min-width: 2.75rem;
    flex-shrink: 0;
    transition: color 0.25s ease, opacity 0.25s ease;
}
.features-timeline__item:hover .features-timeline__num-bs {
    color: var(--bs-primary);
    opacity: 1;
}

@keyframes features-timeline-pulse-kf {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}
@keyframes features-timeline-bounce-kf {
    0%, 100% { transform: translateY(-25%) rotate(12deg); animation-timing-function: cubic-bezier(0.8,0,1,1); }
    50% { transform: none rotate(12deg); animation-timing-function: cubic-bezier(0,0,0.2,1); }
}
@keyframes features-timeline-spin-kf {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* -- Feature card hover -- */
.feat-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feat-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,.12) !important;
}

/* -- Icon box sizing -- */
.feat-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 2.5rem;
    min-height: 2.5rem;
}
.feat-icon-box--lg {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
}
.feat-icon-box--xl {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
}
.feat-icon-box--circle {
    border-radius: 50%;
}

/* -- Nav/filmstrip button hover -- */
.feat-btn-nav {
    transition: transform 0.15s ease, background-color 0.15s ease;
}
.feat-btn-nav:hover {
    transform: scale(1.1);
}

/* -- Table row hover -- */
.feat-table-row-hover {
    transition: background-color 0.15s ease;
}
.feat-table-row-hover:hover {
    background-color: var(--bs-primary-bg-subtle) !important;
}

/* -- Accordion item hover -- */
.feat-accordion-hover summary:hover {
    background-color: var(--bs-primary-bg-subtle);
    border-radius: 0.75rem;
}

/* -- DL item hover -- */
.feat-dl-item-hover {
    transition: background-color 0.15s ease;
    border-radius: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.feat-dl-item-hover:hover {
    background-color: var(--bs-primary-bg-subtle);
}

/* -- Deck button hover -- */
.feat-deck-btn {
    transition: filter 0.2s ease, transform 0.15s ease;
}
.feat-deck-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* -- BS-mode decorative shapes  subtle, non-intrusive -- */
.features-decor__bs-blob {
    background-color: var(--bs-primary-bg-subtle);
    opacity: 0.35;
    filter: blur(48px);
}
.features-decor__bs-shape {
    opacity: 0.15;
}
.features-decor__bs-line {
    border-left: 1px solid var(--bs-primary-border-subtle);
    opacity: 0.18;
}

/* ?? v19 timeline connector line ?? */
.features-timeline__connector {
    position: absolute;
    left: 1.75rem;
    top: 1.75rem;
    bottom: 2rem;
    width: 1px;
    background: linear-gradient(to bottom, var(--bs-primary), rgba(var(--bs-primary-rgb), 0.3), transparent);
    pointer-events: none;
}

/* ?? v19 number watermark ?? */
.features-timeline__number {
    left: -0.25rem;
    top: -0.75rem;
    line-height: 1;
    font-size: 3rem;
    font-weight: 900;
    color: var(--bs-border-color);
    opacity: 0.6;
    pointer-events: none;
    user-select: none;
    position: absolute;
    z-index: 0;
}
/* steps v24 - tab switcher scroll container tweak, no color rules */

.steps-tab-switcher__tab {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

/* sidebar rail: horizontal scroll on mobile, fixed-width column on desktop
   (no Bootstrap equivalent for a responsive fixed width + overflow switch) */
.docket-switcher__rail {
    overflow-x: auto;
}

@media (min-width: 768px) {
    .docket-switcher__rail {
        overflow-x: visible;
        width: 18rem;
    }
}

/* detail panel needs min-width: 0 as a flex child so long text wraps instead of overflowing */
.docket-switcher__panel {
    min-width: 0;
}

/* fixed-size number badge in the sidebar list item (no Bootstrap size utility) */
.docket-switcher__badge-chip {
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
}

/* fixed-size icon badge in the detail panel (no Bootstrap size utility) */
.docket-switcher__badge {
    width: 4rem;
    height: 4rem;
}

/* Active tab state — must win over Bootstrap's own !important bg/text utilities,
   and must not rely on raw Tailwind literal classes (invisible under the bs framework). */
.steps-tab-switcher__tab.is-active {
    background-color: var(--bs-primary, rgb(var(--tw-primary-600, 37 99 235) / 1)) !important;
    color: #fff !important;
}

.dark .steps-tab-switcher__tab.is-active {
    background-color: var(--bs-primary, rgb(var(--tw-primary-400, 96 165 250) / 1)) !important;
    color: rgb(15 23 42) !important;
}

/* Bootstrap: grid + gap (row gutters often collapse) */
.tips-detailed__bs-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .tips-detailed__bs-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.tips-detailed__subtitle-max {
    max-width: 42rem;
}

.tips-detailed__thumb {
    width: 3rem;
    height: 3rem;
}

.tips-detailed__cta-thumb {
    width: 2rem;
    height: 2rem;
}

.tips-detailed__min-shrink {
    min-width: 0;
}

/* faq magazine-spread — layout + motion (no colors) */
.faq-magazine-spread__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.faq-magazine-spread__logo-float {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(28rem, 72vw);
  height: min(28rem, 72vw);
  transform: translate(-50%, -50%);
  color: var(--bs-primary);
  animation: faq-magazine-spread-logo-drift 20s ease-in-out infinite;
}

.faq-magazine-spread__logo-float svg,
.faq-magazine-spread__logo-float svg * {
  fill: currentColor;
  color: inherit;
}

.faq-magazine-spread__logo-float > * {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: faq-magazine-spread-logo-pulse 9s ease-in-out infinite;
}

@keyframes faq-magazine-spread-logo-drift {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-4deg) scale(1);
  }

  33% {
    transform: translate(-48%, -54%) rotate(3deg) scale(1.04);
  }

  66% {
    transform: translate(-52%, -48%) rotate(-2deg) scale(1.02);
  }
}

@keyframes faq-magazine-spread-logo-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }
}

.faq-magazine-spread__magazine {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.faq-magazine-spread__spread {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  opacity: 0;
  transform: translate3d(0, 2rem, 0);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-magazine-spread__spread--visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.faq-magazine-spread__spread:nth-child(1) {
  transition-delay: 0.05s;
}

.faq-magazine-spread__spread:nth-child(2) {
  transition-delay: 0.12s;
}

.faq-magazine-spread__spread:nth-child(3) {
  transition-delay: 0.19s;
}

.faq-magazine-spread__spread:nth-child(4) {
  transition-delay: 0.26s;
}

.faq-magazine-spread__spread:nth-child(5) {
  transition-delay: 0.33s;
}

.faq-magazine-spread__spread:nth-child(6) {
  transition-delay: 0.4s;
}

.faq-magazine-spread__ornament {
  width: 1.25rem;
  height: 1.25rem;
}

.faq-magazine-spread__text-justify {
  text-align: justify;
}

@media (max-width: 1024px) {
  .faq-magazine-spread__spread {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .faq-magazine-spread__ornament {
    display: none;
  }

  .faq-magazine-spread__logo-float {
    width: min(20rem, 85vw);
    height: min(20rem, 85vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-magazine-spread__logo-float,
  .faq-magazine-spread__logo-float > * {
    animation: none;
  }

  .faq-magazine-spread__spread {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .faq-magazine-spread__spread:nth-child(n) {
    transition-delay: 0s;
  }
}

