/*
 * Component "ia-demo" (includes/facelift/components/ia-demo): the AI features of the Webmania® Panel in a
 * compact block, as the guide's AI Diagnosis video: the features as a list on the left (the open one
 * shows its text), the recording of the open feature on the right as a poster with "Watch the demo".
 */
.iad { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: center; }

/* Features */
.iad-list { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.iad-it { border: 1px solid var(--wm-green-200, #AEE3D6); border-radius: 16px; background: rgba(255, 255, 255, 0.72); transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.iad-it.is-on { border-color: var(--wm-green-300, #6FCEBD); background: #FFFFFF; box-shadow: 0 14px 34px -22px rgba(10, 41, 33, 0.45); }
.iad-tab { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; margin: 0; padding: 14px 16px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.iad-tab:focus-visible { outline: 2px solid var(--wm-green-500, #0E9984); outline-offset: -2px; border-radius: 16px; }
.iad-n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--wm-green-50, #EBF7F3); color: var(--wm-green-700, #00695A); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.iad-it.is-on .iad-n { background: var(--wm-green-700, #00695A); color: #FFFFFF; }
.iad-h { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.iad-name { font-size: 12px; font-weight: 600; line-height: 1.2; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wm-green-700, #00695A); }
.iad-t { font-family: var(--wm-font-display); font-size: 17px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; color: var(--wm-green-900, #00251F); }
.iad-chev { color: var(--wm-ink-400, #8B9691); transition: transform 0.2s ease; }
.iad-it.is-on .iad-chev { transform: rotate(180deg); color: var(--wm-green-700, #00695A); }
.iad-tab:hover .iad-t { color: var(--wm-green-700, #00695A); }
.iad-p { display: flex; flex-direction: column; gap: 10px; padding: 0 18px 16px 60px; }
.iad-p[hidden] { display: none; }
.iad-x { margin: 0; font-size: 15px; line-height: 1.55; color: #4A5551; text-wrap: pretty; }
.iad-nt { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 14px; line-height: 1.45; color: #4A5551; }
.iad-nt svg { flex: none; margin-top: 2px; color: var(--wm-green-700, #00695A); }
.iad-nt strong { font-weight: 600; color: var(--wm-ink-900, #0A110E); }
.iad-guide { align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--wm-green-700, #00695A); text-decoration: none; }
.iad-guide:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Recording */
.iad-media { min-width: 0; }
.iad-v { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--wm-green-200, #AEE3D6); border-radius: 18px; background: #F5F6F1; box-shadow: 0 22px 50px -26px rgba(10, 41, 33, 0.45); aspect-ratio: 16 / 9; }
.iad-v[hidden] { display: none; }
.iad-v video { display: block; width: 100%; height: 100%; object-fit: cover; }
.iad-play { position: absolute; left: 50%; bottom: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border: 0; border-radius: 999px; background: var(--wm-green-800, #003D33); color: #FFFFFF; font-family: var(--wm-font-body); font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer; transform: translateX(-50%); box-shadow: 0 10px 24px -10px rgba(0, 37, 31, 0.6); transition: background-color 0.2s ease, transform 0.2s ease; }
.iad-play:hover { background: var(--wm-green-700, #00695A); transform: translateX(-50%) translateY(-1px); }
.iad-play:focus-visible { outline: 2px solid var(--wm-green-300, #6FCEBD); outline-offset: 3px; }
.iad-play .iad-pa { display: none; }
.iad-v.is-ended .iad-play .iad-pw { display: none; }
.iad-v.is-ended .iad-play .iad-pa { display: inline; }
.iad-v.is-playing .iad-play { display: none; }
.iad-len { position: absolute; right: 14px; bottom: 18px; z-index: 2; padding: 6px 10px; border-radius: 999px; background: rgba(0, 37, 31, 0.72); color: #FFFFFF; font-size: 13px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.iad-v.is-playing .iad-len { display: none; }

/* Laptops (C1, C2) */
@media (min-width: 1024px) and (max-height: 860px) {
    .iad { gap: 40px; }
    .iad-tab { padding: 12px 14px; }
    .iad-t { font-size: 16px; }
    .iad-p { padding-bottom: 14px; }
    .iad-x { font-size: 14.5px; line-height: 1.5; }
}
@media (min-width: 1024px) and (max-height: 700px) {
    .iad-list { gap: 6px; }
    .iad-tab { padding: 10px 14px; }
    .iad-p { gap: 8px; padding-bottom: 12px; }
    .iad-x { font-size: 14px; }
    .iad-nt { font-size: 13px; }
}

/* Tablets and phones: the recording first, then the features. */
@media (max-width: 899px) {
    .iad { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .iad-media { order: -1; }
}
@media (max-width: 480px) {
    .iad-p { padding-left: 18px; }
    .iad-play { padding: 10px 18px; font-size: 14px; bottom: 12px; }
    .iad-len { bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .iad-it, .iad-chev, .iad-play { transition: none; }
}
