/* /ai-music-detector: the home page's AI-songs section as a page of its own. The conveyor, the
   numbered points, the buttons and the colours come from home.css; only this page's layout is here. */
.aid-hero {
    padding-block: clamp(28px, 6vw, 72px) clamp(32px, 5vw, 64px);
}

.aid-hero h1 {
    max-width: 17ch;
    margin-bottom: 0;
    font-size: clamp(2.1rem, 4.4vw, 3.6rem);
    line-height: 1.04;
}

.aid-hero__lead {
    align-self: end;
}

.aid-hero .ai-source-generators {
    grid-column: 1 / -1;
}

/* Open sections on the page background, divided by a hairline, like the home page. */
.aid-section {
    padding-block: clamp(40px, 6vw, 72px);
    border-top: 1px solid var(--hairline);
    /* Clears the sticky header when the hero's "how it works" link jumps here. */
    scroll-margin-top: 110px;
}

.aid-section h2 {
    max-width: 24ch;
    margin: 0 0 24px;
    color: var(--text-heading);
    font-size: clamp(1.75rem, 3.3vw, 2.75rem);
    font-weight: 650;
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

:is(:lang(ar), :lang(he), :lang(hi), :lang(ja), :lang(ko), :lang(zh)) .aid-page :is(h1, h2) {
    letter-spacing: 0;
}

.aid-section p,
.aid-list dd,
.aid-checks li {
    max-width: 62ch;
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.65;
}

.aid-section p > a:not([class]) {
    color: var(--primary-color);
}

.aid-split {
    display: grid;
    gap: clamp(24px, 4vw, 56px);
}

.aid-split__copy {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 14px;
    min-width: 0;
}

.aid-split__copy h2 {
    margin: 0;
}

.aid-section .aid-note {
    font-size: 0.87rem;
}

.aid-list {
    display: grid;
    align-content: start;
    min-width: 0;
    margin: 0;
}

.aid-list > div {
    padding: 18px 0;
    border-top: 1px solid var(--hairline);
}

.aid-list > div:first-child {
    padding-top: 0;
    border-top: 0;
}

.aid-list dt,
.aid-split__side h3 {
    margin: 0 0 6px;
    color: var(--text-heading);
    font-size: 1.05rem;
    font-weight: 650;
    line-height: 1.25;
}

/* The one real object in the section, so it carries the card surface. */
.aid-split__side {
    align-self: start;
    min-width: 0;
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid var(--hairline);
    border-radius: var(--home-radius-card);
    background: var(--card-bg);
    box-shadow: var(--surface-highlight);
}

.aid-checks {
    display: grid;
    gap: 12px;
    margin: 0 0 22px;
    padding: 0 0 22px;
    border-bottom: 1px solid var(--hairline);
    list-style: none;
}

.aid-checks li {
    position: relative;
    padding-inline-start: 24px;
}

.aid-checks li::before {
    content: "✓";
    position: absolute;
    inset-inline-start: 0;
    color: var(--chart-3);
    font-weight: 900;
}

.aid-faq details {
    border-top: 1px solid var(--hairline);
}

.aid-faq details:last-of-type {
    border-bottom: 1px solid var(--hairline);
}

.aid-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 10px 0;
    color: var(--text-heading);
    font-weight: 650;
    line-height: 1.35;
    list-style: none;
    cursor: pointer;
}

.aid-faq summary::-webkit-details-marker {
    display: none;
}

.aid-faq summary::after {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    margin-inline-end: 4px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: translateY(-2px) rotate(45deg);
}

.aid-faq details[open] > summary::after {
    transform: translateY(2px) rotate(225deg);
}

.aid-faq summary:focus-visible {
    outline: 3px solid var(--input-focus);
    outline-offset: 3px;
}

.aid-faq details p {
    max-width: 70ch;
    margin-bottom: 18px;
}

.aid-final .home-value-actions {
    margin-block: 22px 28px;
}

@media (min-width: 900px) {
    .aid-split {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}
