.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand__mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;

    display: grid;
    place-items: center;

    color: #fff;
    background: var(--navy);

    font-weight: 900;
    letter-spacing: -.04em;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand__text strong {
    font-size: 15px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.brand__text small {
    margin-top: 5px;

    color: var(--accent);

    font-size: 9px;
    letter-spacing: .24em;
    text-transform: uppercase;
}


/* ------------------------------------------------------------
   MOBILE NAVIGATION
------------------------------------------------------------ */

.nav-toggle {
    display: none;

    width: 44px;
    height: 44px;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
    display: block;

    width: 24px;
    height: 2px;

    margin: 5px auto;

    background: var(--navy);
}


/* ------------------------------------------------------------
   HERO TEXT
------------------------------------------------------------ */

.hero__eyebrow {
    margin-bottom: 14px;

    color: var(--muted);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
}

.hero__title {
    max-width: 760px;

    margin: 0;

    font-size: clamp(44px, 5vw, 72px);
    line-height: .99;

    letter-spacing: -.045em;
}

.hero__title span {
    display: block;

    margin-top: 8px;

    color: var(--accent);
}

.hero__copy p {
    margin: 0;

    max-width: 540px;

    font-size: 18px;
    line-height: 1.7;
}


/* ------------------------------------------------------------
   AVATAR
------------------------------------------------------------ */

.avatar-wrap {
    position: relative;

    align-self: stretch;

    min-height: 350px;

    display: flex;
    align-items: flex-end;

    padding-top: 55px;
}

.hero-avatar {
    display: block;

    width: 100%;
    max-width: 310px;
    height: auto;

    object-fit: contain;
    object-position: bottom center;
}


/* ------------------------------------------------------------
   SPEECH BUBBLE
------------------------------------------------------------ */

.speech-bubble {
    position: absolute;

    top: 10px;
    right: 0;

    z-index: 3;

    width: 190px;

    padding: 16px 18px;

    border: 1px solid var(--line);
    border-radius: 22px;

    background: #fff;

    box-shadow:
        0 12px 30px rgba(16, 33, 61, .10);

    font-size: 14px;
    line-height: 1.45;

    transform: rotate(-2deg);
}

.speech-bubble::after {
    content: "";

    position: absolute;

    left: 28px;
    bottom: -14px;

    width: 25px;
    height: 25px;

    background: #fff;

    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);

    transform: rotate(45deg);
}

.speech-bubble strong {
    display: block;

    margin-bottom: 2px;

    color: var(--accent);

    font-size: 16px;
}


/* ------------------------------------------------------------
   FEATURE STRIP
------------------------------------------------------------ */

.feature-strip {
    margin-top: 28px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.feature {
    padding: 18px 10px;

    text-align: center;

    font-size: 10px;
    font-weight: 800;
    line-height: 1.3;

    text-transform: uppercase;
}

.feature + .feature {
    border-left: 1px solid var(--line);
}

.feature__icon {
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 7px;

    color: var(--navy);

    font-size: 22px;
    line-height: 1;
}

.feature__icon svg {
    display: block;
}

.feature b {
    color: var(--accent);
}


/* ------------------------------------------------------------
   FLASHCARD LABEL
------------------------------------------------------------ */

.deck-label {
    margin-bottom: 20px;

    text-align: center;
}

.deck-label span {
    display: block;

    color: var(--accent);

    font-family: "Segoe Print", "Bradley Hand", cursive;

    font-size: 21px;
    font-weight: 700;

    transform: rotate(-3deg);
}

.deck-label strong {
    display: block;

    margin-top: 4px;

    font-size: 19px;
}


/* ------------------------------------------------------------
   FLASHCARD
------------------------------------------------------------ */

.flashcard {
    position: relative;

    width: min(100%, 440px);
    min-height: 510px;
}

.flashcard__sheet {
    position: absolute;

    inset: 16px -18px -12px 18px;

    border-radius: 30px;

    background: #ef7378;

    transform: rotate(3deg);
}

.flashcard__body {
    position: relative;

    z-index: 2;

    min-height: 510px;

    padding: 48px 38px 34px;

    display: flex;
    flex-direction: column;

    border: 1px solid var(--line);
    border-radius: 30px;

    background: #fff;

    box-shadow: var(--shadow);
}

.flashcard__category {
    padding-bottom: 13px;

    border-bottom: 1px solid rgba(227, 39, 45, .55);

    color: var(--accent);

    font-size: 12px;
    font-weight: 900;
    letter-spacing: .05em;

    text-align: center;
}

.flashcard__front,
.flashcard__definition {
    flex: 1;

    display: flex;
    flex-direction: column;

    align-items: stretch;
    justify-content: center;

    text-align: center;
}

.flashcard h2 {
    margin: 24px 0 18px;

    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.08;

    letter-spacing: -.035em;
}

.flashcard p {
    max-width: 330px;

    margin: 0 auto 30px;

    color: var(--muted);

    font-size: 18px;
    line-height: 1.55;
}


/* ------------------------------------------------------------
   BUTTONS
------------------------------------------------------------ */

.button {
    min-height: 58px;

    padding: 16px 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 14px;

    cursor: pointer;

    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .01em;

    transition:
        background-color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.button--primary {
    color: #fff;
    background: var(--accent);

    box-shadow:
        0 10px 22px rgba(227, 39, 45, .24);
}

.button--primary:hover {
    background: var(--accent-dark);

    transform: translateY(-1px);
}

.button--primary:active {
    transform: translateY(0);
}

.button--wide {
    width: 100%;
}


/* ------------------------------------------------------------
   CLICK COACH
------------------------------------------------------------ */

.click-coach {
    position: absolute;

    right: 34px;
    bottom: 52px;

    z-index: 10;

    display: flex;
    align-items: center;

    pointer-events: none;
}

.click-coach__hand {
    display: block;

    font-size: 58px;
    line-height: 1;

    filter:
        drop-shadow(
            0 7px 8px rgba(16, 33, 61, .18)
        );

    animation:
        coachTap 1.45s ease-in-out infinite;
}

.click-coach__text {
    position: absolute;

    right: -5px;
    bottom: -55px;

    width: 150px;

    color: var(--navy);

    font-family:
        "Segoe Print",
        "Bradley Hand",
        cursive;

    font-size: 14px;
    line-height: 1.3;

    text-align: right;
}

.flashcard.is-revealed .click-coach {
    display: none;
}


/* ------------------------------------------------------------
   CARD REVEAL ANIMATION
------------------------------------------------------------ */

.flashcard.is-revealed .flashcard__body {
    animation:
        revealCard .38s ease-out;
}

@keyframes coachTap {

    0%,
    100% {
        transform:
            translate(0, 0)
            rotate(-15deg);
    }

    50% {
        transform:
            translate(-4px, -7px)
            rotate(-15deg);
    }
}

@keyframes revealCard {

    0% {
        transform:
            rotateY(0deg)
            scale(1);
    }

    50% {
        transform:
            rotateY(7deg)
            scale(.985);
    }

    100% {
        transform:
            rotateY(0deg)
            scale(1);
    }
}


/* ------------------------------------------------------------
   REDUCED MOTION
------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        scroll-behavior: auto !important;

        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: .01ms !important;
    }

}