body[data-project="tinylanguage"] {
    --accent: #f59e0b;
    --accent-strong: #d97706;
    --accent-ink: #b45309;
}

html.dark body[data-project="tinylanguage"] {
    --accent: #fbbf24;
    --accent-strong: #f59e0b;
}

/* Tighten the vertical rhythm between Tiny Language's stacked sections. */
[data-project="tinylanguage"] .section:not(.project-cta-section) {
    padding-block: var(--space-6);
}

.tl-mascot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 9rem;
    height: 9rem;
    margin-bottom: var(--space-6);
    color: var(--accent-ink);
    flex-shrink: 0;
}

@media (min-width: 40rem) {
    .tl-mascot {
        width: 11rem;
        height: 11rem;
    }
}

.tl-mascot__ring {
    position: absolute;
    border-radius: var(--r-pill);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--elev-1);
}

.tl-mascot__ring--outer {
    inset: 0;
}

.tl-mascot__ring--mid {
    inset: 8%;
    border-color: var(--accent-soft);
    box-shadow: none;
}

.tl-mascot__ring--inner {
    inset: 18%;
    background: var(--accent-weak);
    border-color: transparent;
    box-shadow: none;
}

.tl-mascot__banana {
    position: absolute;
    top: -0.6rem;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: var(--r-pill);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--elev-1);
    color: var(--accent-ink);
}

.tl-mascot__sparkle {
    position: absolute;
    z-index: 2;
    color: var(--accent-ink);
}

.tl-mascot__sparkle--a {
    left: -0.6rem;
    top: 24%;
}

.tl-mascot__sparkle--b {
    right: 0;
    top: 66%;
}

.tl-mascot__leaf {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
    color: var(--accent-soft);
}

.tl-mascot__leaf--left {
    left: 0.4rem;
}

.tl-mascot__leaf--right {
    right: 0.4rem;
}

.tl-mascot__img {
    position: relative;
    z-index: 1;
    width: 110%;
    height: 110%;
    object-fit: contain;
    padding-bottom: var(--space-2);
    filter: drop-shadow(0 8px 18px var(--glow));
    pointer-events: none;
}

.hero .eyebrow {
    color: var(--accent-ink);
}

.tl-flags {
    margin-top: var(--space-6);
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    /* Cap the width so the five chips wrap as 3 + 2, never leaving one alone. */
    max-width: 21rem;
}

@media (min-width: 48rem) {
    .tl-flags {
        margin-inline: 0;
        justify-content: flex-start;
    }
}

.tl-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
}

@media (min-width: 40rem) {
    .tl-features {
        grid-template-columns: 1fr 1fr;
    }
}

.tl-feature__emoji {
    font-size: var(--text-3xl);
    line-height: 1;
    margin-bottom: var(--space-3);
}

.tl-feature__title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-strong);
}

.tl-feature__text {
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    line-height: var(--lh-relaxed);
    color: var(--text-muted);
}

.tl-cta {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-6);
    padding: var(--space-8);
    text-align: left;
}

@media (min-width: 48rem) {
    .tl-cta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: var(--space-10);
    }
}

.tl-cta__glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 85% 0%, var(--glow), transparent 60%);
}

.tl-cta__copy {
    position: relative;
    z-index: 1;
    max-width: 32rem;
}

.tl-cta__copy .eyebrow {
    color: var(--accent-ink);
}

.tl-cta__title {
    margin-top: var(--space-2);
    font-size: var(--text-2xl);
    font-weight: 800;
    letter-spacing: var(--tracking-tight);
    color: var(--text-strong);
}

.tl-cta__list {
    list-style: none;
    padding: 0;
    margin-top: var(--space-5);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.tl-cta__list li {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
}

.tl-cta__check {
    color: var(--accent-ink);
    font-weight: 800;
}

.tl-cta__strong {
    font-weight: 700;
    color: var(--text-strong);
}

.tl-cta__action {
    position: relative;
    z-index: 1;
    width: 100%;
}

@media (min-width: 48rem) {
    .tl-cta__action {
        width: auto;
        flex-shrink: 0;
    }
}

.tl-pricing {
    text-align: center;
}

.tl-privacy {
    margin-top: var(--space-6);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.tl-privacy strong {
    color: var(--text-strong);
}

.tl-bern {
    margin-top: var(--space-8);
    text-align: center;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-faint);
}

.animate-float {
    animation: tlFloat 4s ease-in-out infinite;
}

.animate-pulse {
    animation: tlPulse 2.4s ease-in-out infinite;
}

.tl-mascot__sparkle--b.animate-pulse {
    animation-delay: 0.6s;
}

@keyframes tlFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes tlPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

@media (prefers-reduced-motion: reduce) {
    .animate-float,
    .animate-pulse {
        animation: none;
    }
}
