/* Product overview: alternating editorial stages for microphones and accessories. */
.products-page {
    overflow: hidden;
    background: #ffffff;
}

.page-hero--products {
    border-bottom: 0;
    background-image: url("../images/producthero.jpg");
    background-position: center 54%;
}

.products-showcase {
    background: #ffffff;
}

.product-stage {
    position: relative;
    overflow: hidden;
    border-bottom: 0;
    background: #ffffff;
}

.product-stage + .product-stage {
    margin-top: 20px;
}

.product-stage::before {
    position: absolute;
    width: min(52rem, 68vw);
    aspect-ratio: 1;
    content: "";
    opacity: 0.42;
    pointer-events: none;
    transform: translate3d(-50%, -50%, 0);
}

.product-stage--l1-plus::before {
    top: 49%;
    left: 27%;
    background: radial-gradient(circle, rgba(129, 128, 255, 0.19) 0%, rgba(129, 128, 255, 0) 69%);
}

.product-stage--l1-plus {
    background:
        radial-gradient(circle at 76% 18%, rgba(121, 43, 125, 0.18) 0%, rgba(121, 43, 125, 0) 40%),
        radial-gradient(circle at 17% 76%, rgba(56, 169, 194, 0.2) 0%, rgba(56, 169, 194, 0) 38%),
        linear-gradient(128deg, #eef4f7 0%, #e3e8f3 49%, #f4edf4 100%);
}

.product-stage--l1 {
    background:
        radial-gradient(circle at 18% 20%, rgba(100, 37, 123, 0.18) 0%, rgba(100, 37, 123, 0) 40%),
        radial-gradient(circle at 80% 74%, rgba(74, 105, 166, 0.15) 0%, rgba(74, 105, 166, 0) 38%),
        linear-gradient(128deg, #f3f0f5 0%, #e7e9f0 50%, #f7f5f2 100%);
}

.product-stage--l1::before {
    top: 51%;
    left: 27%;
    background: radial-gradient(circle, rgba(100, 37, 123, 0.13) 0%, rgba(100, 37, 123, 0) 70%);
}

.product-stage--v17::before {
    top: 50%;
    left: 26%;
    background: radial-gradient(circle, rgba(93, 164, 208, 0.2) 0%, rgba(93, 164, 208, 0) 70%);
}

.product-stage--v17 {
    background:
        radial-gradient(circle at 16% 18%, rgba(195, 180, 163, 0.52) 0%, rgba(195, 180, 163, 0) 38%),
        radial-gradient(circle at 83% 72%, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0) 38%),
        linear-gradient(128deg, #eee7e0 0%, #fbfaf8 49%, #ded7cf 100%);
}

.product-stage--v13 {
    background:
        radial-gradient(circle at 72% 18%, rgba(184, 194, 207, 0.58) 0%, rgba(184, 194, 207, 0) 38%),
        radial-gradient(circle at 18% 74%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 39%),
        linear-gradient(126deg, #f8f9fa 0%, #e8edf2 48%, #faf9f6 100%);
}

.product-stage--v13::before {
    top: 50%;
    left: 27%;
    background: radial-gradient(circle, rgba(110, 193, 228, 0.18) 0%, rgba(110, 193, 228, 0) 70%);
}

.product-stage--klangformer::before {
    top: 50%;
    left: 27%;
    background: radial-gradient(circle, rgba(82, 174, 201, 0.17) 0%, rgba(82, 174, 201, 0) 70%);
}

.product-stage--klangformer {
    background:
        radial-gradient(circle at 16% 18%, rgba(86, 182, 207, 0.23) 0%, rgba(86, 182, 207, 0) 39%),
        radial-gradient(circle at 84% 76%, rgba(130, 116, 180, 0.15) 0%, rgba(130, 116, 180, 0) 40%),
        linear-gradient(126deg, #e7eef1 0%, #fafbfc 48%, #dde5eb 100%);
}

.product-stage--klangshield {
    border-bottom: 0;
    background:
        linear-gradient(248deg, rgba(7, 18, 32, 0.99) 0%, rgba(9, 28, 48, 0.97) 58%, rgba(12, 48, 72, 0.96) 100%);
    color: #ffffff;
}

.product-stage--klangshield::before {
    top: 50%;
    left: 73%;
    background: radial-gradient(circle, rgba(64, 181, 234, 0.35) 0%, rgba(64, 181, 234, 0) 70%);
}

.product-stage__inner {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: clamp(38rem, 52vw, 48rem);
    grid-template-columns: minmax(0, 1.05fr) minmax(24rem, 0.95fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 8rem);
    padding-block: clamp(4.5rem, 8vw, 7rem);
}

.product-stage__visual {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
}

.product-stage__image {
    display: block;
    width: auto;
    max-width: 100%;
    transition: filter var(--transition);
}

.product-stage__visual:hover .product-stage__image,
.product-stage__visual:focus-visible .product-stage__image {
    filter: brightness(1.08);
}

.product-stage__image--microphone {
    max-height: clamp(27rem, 42vw, 37rem);
    object-fit: contain;
}

.product-stage__image--screen {
    width: min(100%, 44rem);
    height: auto;
    box-shadow: 0 0.625rem 1.25rem rgba(16, 20, 24, 0.07);
}

.product-stage__image--shield {
    width: min(100%, 34rem);
    height: auto;
}

.product-stage__content {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    flex-direction: column;
}

.product-stage__logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.product-stage__logo-link {
    display: inline-flex;
    max-width: 100%;
    color: inherit;
    text-decoration: none;
}

.product-stage__logo-link--wide {
    width: min(100%, 19.5rem);
}

.product-stage__logo--square {
    width: clamp(4.5rem, 6.4vw, 6rem);
}

.product-stage__logo--wide {
    width: 100%;
}

.product-stage__claim {
    margin: clamp(2rem, 4vw, 3rem) 0 0;
    color: #20262a;
    font-size: clamp(1.25rem, 1.55vw, 1.55rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.18;
}

.product-stage__claim span {
    display: block;
}

.product-stage__claim span:first-child {
    font-size: 0.82em;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.product-stage__claim span:nth-child(2) {
    margin-top: 0.22em;
    font-size: 1.12em;
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.12;
}

.product-stage__claim span:nth-child(3) {
    margin-top: 0.55em;
    color: #5c6469;
    font-size: 0.72em;
    font-weight: 400;
    letter-spacing: 0.035em;
    line-height: 1.3;
}

.product-tech {
    position: relative;
    width: min(100%, 23rem);
    margin-top: clamp(1.6rem, 3vw, 2.15rem);
    color: #293035;
    text-align: left;
}

.product-tech__metrics {
    display: grid;
    gap: 0.48rem;
    margin: 0;
}

.product-tech__metric {
    display: grid;
    min-width: 0;
    grid-template-columns: 7.25rem minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
}

.product-tech__metric dt {
    color: #252d31;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.product-tech__metric dd {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) 4.75rem;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
}

.product-tech__bar {
    display: block;
    width: var(--metric-size);
    max-width: 100%;
    min-width: 0.25rem;
    min-height: 1.35rem;
    border-inline-end: 0.1875rem solid #0f62a3;
    background: linear-gradient(90deg, #637780 0%, #5da4d0 100%);
    transition: filter var(--transition);
}

.product-tech__value {
    color: #293035;
    font-size: 0.6875rem;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    line-height: 1.15;
    text-align: right;
    white-space: nowrap;
}

.product-tech__open {
    position: absolute;
    z-index: 1;
    inset: -0.5rem;
    appearance: none;
    border: 0.0625rem solid transparent;
    background: transparent;
    cursor: pointer;
}

.product-tech__open:focus-visible {
    border-color: var(--color-accent-dark);
    outline: 0;
}

.product-tech:hover .product-tech__bar,
.product-tech:focus-within .product-tech__bar {
    filter: brightness(1.08);
}

.product-spec-dialog {
    width: min(94vw, 88rem);
    max-height: min(88vh, 48rem);
    max-height: min(88svh, 48rem);
    padding: 0;
    overflow: auto;
    border: 0.0625rem solid var(--color-border);
    background: #ffffff;
    color: var(--color-text);
}

.product-spec-dialog::backdrop {
    background: rgba(18, 24, 28, 0.58);
    backdrop-filter: blur(0.35rem);
    -webkit-backdrop-filter: blur(0.35rem);
}

.product-spec-dialog[open] {
    animation: product-spec-dialog-in 280ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.product-spec-dialog[open]::backdrop {
    animation: product-spec-backdrop-in 240ms ease both;
}

.product-spec-dialog[open].is-closing {
    animation: product-spec-dialog-out 210ms ease both;
}

.product-spec-dialog[open].is-closing::backdrop {
    animation: product-spec-backdrop-out 210ms ease both;
}

.product-spec-dialog__topbar {
    display: flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: flex-end;
    padding-inline: clamp(1rem, 3vw, 1.75rem);
}

.product-spec-dialog__close {
    position: relative;
    width: 2.75rem;
    height: 2.75rem;
    margin-inline-end: -0.75rem;
    appearance: none;
    border: 0;
    background: transparent;
    color: #3d464b;
    cursor: pointer;
    transition: color var(--transition);
}

.product-spec-dialog__close::before,
.product-spec-dialog__close::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.25rem;
    height: 0.0625rem;
    background: currentColor;
    content: "";
    transform: translate(-50%, -50%) rotate(45deg);
}

.product-spec-dialog__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.product-spec-dialog__close:hover,
.product-spec-dialog__close:focus-visible {
    color: var(--color-accent-dark);
}

.product-spec-dialog__content {
    padding: clamp(0.5rem, 1.2vw, 1rem) clamp(1.25rem, 5vw, 3.75rem) clamp(2.5rem, 6vw, 4rem);
}

.product-spec-dialog__identity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.product-spec-dialog__logo,
.product-spec-dialog__microphone {
    display: block;
    width: auto;
    height: clamp(4.75rem, 7vw, 6.5rem);
    flex: 0 0 auto;
    object-fit: contain;
}

.product-spec-dialog__logo {
    max-width: clamp(4.75rem, 7vw, 6.5rem);
}

.product-spec-dialog__microphone {
    max-width: min(14rem, 26vw);
}

.product-spec-dialog__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    border-top: 0.0625rem solid var(--color-border);
}

.product-spec-dialog__item {
    min-width: 0;
    padding: 1rem 1rem 1.1rem 0;
    border-bottom: 0.0625rem solid var(--color-border);
    opacity: 0;
}

.product-spec-dialog__item:nth-child(3n + 2),
.product-spec-dialog__item:nth-child(3n + 3) {
    padding-inline-start: 1rem;
    border-inline-start: 0.0625rem solid var(--color-border);
}

.product-spec-dialog[open]:not(.is-closing) .product-spec-dialog__item {
    animation: product-spec-item-in 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: var(--spec-delay);
}

.product-spec-dialog__item dt {
    color: #566167;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.035em;
    line-height: 1.35;
}

.product-spec-dialog__item dd {
    margin: 0.4rem 0 0;
    color: #151a1d;
    font-size: 0.9375rem;
    font-variant-numeric: tabular-nums;
    font-weight: 400;
    line-height: 1.45;
}

@keyframes product-spec-dialog-in {
    from {
        opacity: 0;
        transform: translateY(1rem) scale(0.985);
    }

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

@keyframes product-spec-dialog-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(0.6rem) scale(0.99);
    }
}

@keyframes product-spec-backdrop-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes product-spec-backdrop-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes product-spec-item-in {
    from {
        opacity: 0;
        transform: translateY(0.45rem);
    }

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

.product-stage--klangshield .product-stage__claim {
    color: #ffffff;
}

.product-stage__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem clamp(2.25rem, 4vw, 3.5rem);
    margin-top: clamp(2.25rem, 4vw, 3.25rem);
}

.product-action {
    display: inline-flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.75rem 1.5rem;
    border: 0;
    color: #15191c;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
    transition:
        background-color var(--transition),
        color var(--transition);
}

.product-action img {
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
    transition: filter var(--transition), transform var(--transition);
}

.product-action:hover img,
.product-action:focus-visible img {
    transform: translateX(0.16rem);
}

.product-action--text {
    justify-content: flex-start;
    padding-inline: 0;
    background: transparent;
}

.product-action--text:hover,
.product-action--text:focus-visible {
    color: var(--color-accent-dark);
}

.product-action--primary {
    min-width: 11.25rem;
    background: var(--color-primary);
    color: #ffffff;
}

.product-action--primary img,
.product-action--download img {
    filter: brightness(0) invert(1);
}

.product-action--primary:hover,
.product-action--primary:focus-visible {
    background: var(--color-primary-hover);
    color: #ffffff;
}

.product-action--download {
    min-width: 10.5rem;
    background: #1b1e20;
    color: #ffffff;
}

.product-action--download:hover,
.product-action--download:focus-visible {
    background: #555555;
    color: #ffffff;
}

.product-stage--klangshield .product-action--text {
    color: #ffffff;
}

.product-stage--klangshield .product-action--text img {
    filter: brightness(0) invert(1);
}

.product-stage--klangshield .product-action--text:hover,
.product-stage--klangshield .product-action--text:focus-visible {
    color: var(--color-accent);
}

@media (max-width: 63.999rem) {
    .product-stage__inner {
        min-height: clamp(34rem, 66vw, 42rem);
        grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.82fr);
        gap: clamp(2.5rem, 5vw, 4.5rem);
    }

    .product-stage__image--microphone {
        max-height: clamp(24rem, 49vw, 31rem);
    }

    .product-spec-dialog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-spec-dialog__item,
    .product-spec-dialog__item:nth-child(3n + 2),
    .product-spec-dialog__item:nth-child(3n + 3) {
        padding-inline: 0;
        border-inline-start: 0;
    }

    .product-spec-dialog__item:nth-child(odd) {
        padding-inline-end: 1rem;
    }

    .product-spec-dialog__item:nth-child(even) {
        padding-inline-start: 1rem;
        border-inline-start: 0.0625rem solid var(--color-border);
    }
}

@media (max-width: 47.999rem) {
    .page-hero--products {
        background-position: 63% center;
    }

    .product-stage::before {
        width: 42rem;
    }

    .product-stage--l1-plus::before,
    .product-stage--v17::before,
    .product-stage--klangformer::before {
        top: 31%;
        left: 50%;
    }

    .product-stage--l1::before,
    .product-stage--v13::before {
        top: 31%;
        left: 50%;
    }

    .product-stage--klangshield::before {
        top: 31%;
        left: 73%;
    }

    .product-stage__inner {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        gap: clamp(2.5rem, 9vw, 4rem);
        padding-block: clamp(4rem, 15vw, 6rem);
    }

    .product-stage:not(.product-stage--klangformer) .product-stage__inner {
        row-gap: clamp(1.35rem, 5vw, 2rem);
    }

    .product-stage:not(.product-stage--klangformer) .product-stage__content {
        display: contents;
    }

    .product-stage:not(.product-stage--klangformer) .product-stage__logo-link {
        order: 1;
        justify-self: center;
    }

    .product-stage:not(.product-stage--klangformer) .product-stage__claim {
        order: 2;
        margin: 0;
        justify-self: center;
        text-align: center;
    }

    .product-stage:not(.product-stage--klangformer) .product-stage__visual {
        order: 3;
    }

    .product-stage:not(.product-stage--klangformer) .product-tech {
        order: 4;
        margin-top: .35rem;
    }

    .product-stage:not(.product-stage--klangformer) .product-stage__actions {
        order: 5;
        margin-top: .65rem;
        justify-self: center;
    }

    .product-stage--klangshield .product-stage__inner {
        padding-bottom: clamp(6rem, 22vw, 8rem);
    }

    .product-stage__visual {
        min-height: 22rem;
    }

    .product-stage__image--microphone {
        max-height: min(30rem, 112vw);
    }

    .product-stage__visual--screen {
        min-height: 0;
        margin: 1.25rem;
    }

    .product-stage__image--shield {
        width: min(100%, 27rem);
    }

    .product-stage__content {
        align-items: center;
        text-align: center;
    }

    .product-stage__logo--square {
        width: clamp(4.4rem, 20vw, 5.5rem);
    }

    .product-stage__logo--wide {
        width: 100%;
    }

    .product-stage__logo-link--wide {
        width: min(82%, 18.5rem);
    }

    .product-stage__claim {
        font-size: clamp(1.15rem, 4.6vw, 1.35rem);
    }

    .product-tech {
        width: 100%;
        align-self: stretch;
        margin-top: 2rem;
    }

    .product-spec-dialog {
        width: min(calc(100% - 1rem), 50rem);
        max-height: calc(100vh - 1rem);
        max-height: calc(100svh - 1rem);
    }

    .product-spec-dialog__content {
        padding-inline: 1.25rem;
    }

    .product-spec-dialog__identity {
        gap: 1.25rem;
        margin-bottom: 1.75rem;
    }

    .product-spec-dialog__logo,
    .product-spec-dialog__microphone {
        height: 4.75rem;
        max-height: 4.75rem;
    }

    .product-spec-dialog__logo {
        max-width: 4.75rem;
    }

    .product-spec-dialog__microphone {
        max-width: min(10rem, 44vw);
    }

    .product-spec-dialog__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-spec-dialog__item,
    .product-spec-dialog__item:nth-child(odd),
    .product-spec-dialog__item:nth-child(even) {
        padding: 0.9rem 0 1rem;
        border-inline-start: 0;
    }

    .product-stage__actions {
        justify-content: center;
    }
}

@media (max-width: 25rem) {
    .product-stage__actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 0.75rem;
    }

    .product-action {
        width: 100%;
    }

    .product-action--text {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-stage__image,
    .product-action,
    .product-action img {
        transition: none;
    }

    .product-spec-dialog[open],
    .product-spec-dialog[open].is-closing,
    .product-spec-dialog[open]::backdrop,
    .product-spec-dialog[open].is-closing::backdrop,
    .product-spec-dialog[open]:not(.is-closing) .product-spec-dialog__item {
        animation: none;
    }

    .product-spec-dialog__item {
        opacity: 1;
    }
}
