/* --- ANIMATED HEADLINE WIDGET --- */
.starter-headline-wrapper {
    text-align: center;
    font-weight: 800;
    line-height: 1.2;
}

/* Style 1: Typewriter */
.starter-headline-typewriter {
    font-family: monospace; 
}
.starter-headline-typewriter .starter-headline-dynamic {
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.starter-headline-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: #4f46e5;
    margin-left: 2px;
    vertical-align: middle;
    animation: starter-blink 1s infinite;
}
@keyframes starter-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Style 2: Clip Slide */
.starter-headline-slide .starter-headline-dynamic-wrapper {
    display: inline-flex;
    position: relative;
    height: 1.2em; /* Adjust based on font size */
    overflow: hidden;
    vertical-align: bottom;
    text-align: left;
    min-width: 150px;
}
.starter-headline-slide .starter-headline-word {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.6s ease;
    color: #4f46e5;
}
.starter-headline-slide .starter-headline-word.active {
    opacity: 1;
    transform: translateY(0);
    position: relative; /* Ensure it takes up space if needed, though absolute stack is safer for transitions */
}
.starter-headline-slide .starter-headline-word.out {
    opacity: 0;
    transform: translateY(-100%);
}

/* Style 3: Highlight */
.starter-headline-highlight .starter-headline-dynamic-wrapper {
    position: relative;
    display: inline-block;
    padding: 0 4px;
    color: #4338ca;
    z-index: 1;
}
.starter-headline-highlight svg {
    position: absolute;
    top: -10%;
    left: -5%;
    width: 110%;
    height: 120%;
    z-index: -1;
    pointer-events: none;
}
.starter-headline-highlight path {
    fill: none;
    stroke: #fde047; /* Yellow highlight */
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    opacity: 0.6;
}
.starter-headline-highlight .active path {
    animation: starter-draw 0.6s ease-out forwards;
}
@keyframes starter-draw {
    to { stroke-dashoffset: 0; }
}