/*
  Styles for the animated "Slot Reveal" hero card and cycling headline word on the public
  landing page (see wwwroot/js/slot-reveal.js). Loaded globally rather than scoped per-component
  because Blazor CSS isolation only adds its scope attribute to markup the Razor compiler itself
  emits — every element slot-reveal.js creates via innerHTML/className (the reveal frames, their
  icon/chip/price/CTA content, the progress-bar segments, and the cycling word's inner <span>)
  never gets that attribute, so a scoped rule targeting them (e.g. ".azt-reveal-icon svg") never
  matches and the element renders at its unconstrained intrinsic size instead — this is what
  caused the oversized/overflowing category icon in the hero preview card. Same fix as
  onboarding-form.css uses for the same underlying reason (see that file's own comment).
  Safe to load globally: every selector below is prefixed with "azt-reveal-", "azt-h1-word", or
  "azt-word-", all specific to this one feature.
*/

.azt-h1-word {
    display: inline-block;
    color: var(--azt-deep-500);
}

.azt-h1-word span {
    display: inline-block;
}

.azt-h1-word span.azt-word-out {
    animation: azt-word-out 0.16s ease forwards;
}

.azt-h1-word span.azt-word-in {
    animation: azt-word-in 0.18s ease forwards;
}

@keyframes azt-word-out {
    to {
        opacity: 0;
        transform: translateY(-0.1em);
        filter: blur(2px);
    }
}

@keyframes azt-word-in {
    from {
        opacity: 0;
        transform: translateY(0.1em);
        filter: blur(2px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.azt-hero-preview {
    position: relative;
    padding: 26px;
    border-radius: 30px;
    background: radial-gradient(at 80% 4%, var(--azt-deep-500) 0%, transparent 62%), radial-gradient(at 6% 98%, var(--azt-deep-600) 0%, transparent 66%), var(--azt-ink-800);
    box-shadow: 0 40px 80px -40px oklch(0.19 0.03 220 / 0.9);
}

.azt-reveal-progress {
    display: flex;
    gap: 5px;
    padding: 4px 6px 16px;
}

.azt-reveal-progress i {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: oklch(0.99 0.01 200 / 0.18);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 0;
    padding: 0;
}

.azt-reveal-progress i em {
    position: absolute;
    inset: 0;
    width: 0%;
    background: var(--azt-slot-500);
    border-radius: 2px;
    display: block;
}

.azt-reveal-progress i.azt-reveal-done em {
    width: 100%;
    transition: none;
}

.azt-reveal-progress i.azt-reveal-active em {
    transition: width linear;
}

.azt-reveal-card {
    position: relative;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    background: white;
}

.azt-reveal-frame {
    position: absolute;
    inset: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.42s ease, transform 0.42s ease;
}

.azt-reveal-frame.azt-reveal-frame-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.azt-reveal-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.azt-reveal-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--azt-slot-tint-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--azt-slot-text);
}

.azt-reveal-icon svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.azt-reveal-chip {
    font-family: var(--azt-font-mono);
    font-size: 9.5px;
    letter-spacing: 0.08em;
    color: var(--azt-ink-100);
}

.azt-reveal-name {
    margin-top: 1px;
    font-size: 15.5px;
    font-weight: 600;
}

.azt-reveal-meta {
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--azt-ink-300);
}

.azt-reveal-slots {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.azt-reveal-slots span {
    font-family: var(--azt-font-mono);
    font-size: 12px;
    padding: 8px 0;
    width: 60px;
    text-align: center;
    border-radius: 9px;
    border: 1px solid var(--azt-border);
    color: var(--azt-ink-60);
}

.azt-reveal-slots span.azt-reveal-picked {
    border-color: transparent;
    font-weight: 600;
    background: var(--azt-slot-500);
    color: var(--azt-slot-ink);
}

.azt-reveal-bottom {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--azt-border-faint);
}

.azt-reveal-price {
    font-size: 16px;
    font-weight: 700;
}

.azt-reveal-price small {
    display: block;
    font-weight: 400;
    font-size: 11px;
    color: var(--azt-ink-300);
}

.azt-reveal-cta {
    padding: 10px 16px;
    border: 0;
    border-radius: 12px;
    background: var(--azt-ink-700);
    color: var(--azt-near-white);
    font-family: inherit;
    font-weight: 600;
    font-size: 13px;
}

.azt-preview-note {
    padding: 16px 8px 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: oklch(0.85 0.02 200 / 0.75);
}

@media (prefers-reduced-motion: reduce) {
    .azt-reveal-frame {
        transition: none !important;
    }

    .azt-h1-word span {
        animation: none !important;
    }
}
