@import "./section-common.css";

.pm-eyebrow {
    color: var(--brand-bright);
}

.pm-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
    gap: 40px;
    padding-top: 48px;
    align-items: start;
}

.pm-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pm-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 14px 16px;
    color: var(--text-4);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pm-item-icon {
    flex: 0 0 22px;
    color: inherit;
    padding-top: 2px;
}

.pm-item-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.pm-item-kicker {
    font-family: DM Sans;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: inherit;
}

.pm-item-desc {
    font-family: DM Sans;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 300;
    color: var(--text-3);
}

.pm-item--on {
    background: var(--surface);
    border-color: var(--brand-line);
    color: var(--text);
    box-shadow: 0 0 0 1px var(--brand-tint);
}

.pm-item--on .pm-item-icon,
.pm-item--on .pm-item-num {
    color: var(--brand-bright);
}

.pm-item-num {
    font-variant-numeric: tabular-nums;
}

.pm-preview {
    min-width: 0;
}

.pm-browser {
    background: var(--surface-2);
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px #00000073;
}

.pm-browser-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--surface-3);
    border-bottom: 1px solid var(--line-soft);
}

.pm-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line-strong);
}

.pm-dot:nth-child(1) {
    background: #ff5f57;
}

.pm-dot:nth-child(2) {
    background: #febc2e;
}

.pm-dot:nth-child(3) {
    background: #28c840;
}

.pm-url {
    flex: 1;
    margin-left: 8px;
    background: var(--line-soft);
    border-radius: 8px;
    padding: 6px 12px;
    font-family: DM Sans;
    font-size: 12px;
    color: var(--text-3);
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pm-browser-body {
    animation: pm-fade 0.28s ease;
}

.pm-appbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    background: #0d1a10;
    border-bottom: 1px solid var(--line-soft);
}

.pm-appbar img {
    height: 22px;
    width: auto;
}

.pm-appbar nav {
    display: flex;
    gap: 18px;
    font-family: DM Sans;
    font-size: 12px;
    color: var(--text-3);
}

.pm-appbar nav .is-on {
    color: var(--brand-bright);
}

.pm-browser-body > img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    object-position: top center;
}

@keyframes pm-fade {
    from {
        opacity: 0.35;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 992px) {
    .pm-layout {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 32px;
    }

    .pm-browser-body > img {
        max-height: 360px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pm-browser-body {
        animation: none;
    }
}
