/**
 * Front-page Webdevelopment feature.
 * Tint: blue-100 (same as .fp-promise__pillar--web).
 */

.fp-web-feature {
    --web-tint: var(--wp--preset--color--blue-100);
    --web-accent: var(--wp--preset--color--accent);
    --web-line: rgba(18, 18, 18, 0.08);
    --web-pad: clamp(22px, 3vw, 32px);
    --web-radius: var(--wp--custom--radius--card, 8px);
    --web-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --web-ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
    min-width: 0;
    padding-block: clamp(24px, 3.5vw, 40px);
    scroll-margin-top: calc(var(--wp--custom--header-height, 64px) + 12px);
    box-sizing: border-box;
}

.fp-web-feature__intro {
    margin-bottom: clamp(28px, 3vw, 40px);
}

.fp-web-feature__kicker {
    display: block;
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--base);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--wp--preset--color--accent);
}

.fp-web-feature__kicker i {
    font-style: normal;
    color: var(--web-accent);
}

.fp-web-feature__intro-grid,
.fp-web-feature__stage {
    display: grid;
    grid-template-columns: 7fr 5fr;
    min-width: 0;
}

.fp-web-feature__intro-grid {
    align-items: end;
    margin-top: var(--wp--preset--spacing--16);
}

.fp-web-feature__title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: var(--wp--preset--font-size--4xl);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.05;
    text-wrap: balance;
    max-width: 12ch;
    color: var(--wp--preset--color--text-main);
    margin: 0;
}

.fp-web-feature__lead {
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--xl);
    line-height: 1.55;
    color: var(--wp--preset--color--text-muted);
    max-width: 38ch;
    padding-inline: var(--web-pad);
    box-sizing: border-box;
    margin: 0;
}

.fp-web-feature__stage {
    min-height: 538px;
    background: var(--wp--preset--color--card);
    border: 1px solid var(--web-line);
    border-radius: var(--web-radius);
    box-sizing: border-box;
    overflow: hidden;
}

.fp-web-feature__visual {
    position: relative;
    min-width: 0;
    min-height: 538px;
    margin: 0;
    background: var(--wp--preset--color--surface);
}

.fp-web-feature__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 12%;
    filter: saturate(0.88) contrast(0.98);
}

.fp-web-feature__map {
    position: absolute;
    top: var(--wp--preset--spacing--24);
    left: var(--wp--preset--spacing--24);
    z-index: 1;
    width: 100px;
    padding: 5px;
    border-radius: var(--web-radius);
    background: color-mix(in srgb, var(--wp--preset--color--card) 82%, transparent);
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--text-main) 8%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-sizing: border-box;
}

.fp-web-feature__map-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
    margin-bottom: 8px;
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--wp--preset--color--text-muted);
    box-sizing: border-box;
}

.fp-web-feature__map-head span {
    min-width: 0;
    white-space: nowrap;
}

.fp-web-feature__map-svg {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    overflow: hidden;
    color: #545454;
}

.fp-web-feature__map-svg circle {
    fill: currentColor;
    cursor: pointer;
    transition: fill 0.25s var(--web-ease);
}

.fp-web-feature__stage[data-active="0"] .fp-web-feature__map-svg [data-col="0"],
.fp-web-feature__stage[data-active="0"] .fp-web-feature__map-svg [data-col="1"],
.fp-web-feature__stage[data-active="1"] .fp-web-feature__map-svg [data-col="1"],
.fp-web-feature__stage[data-active="1"] .fp-web-feature__map-svg [data-col="2"],
.fp-web-feature__stage[data-active="2"] .fp-web-feature__map-svg [data-col="2"],
.fp-web-feature__stage[data-active="2"] .fp-web-feature__map-svg [data-col="3"] {
    fill: #3561c8;
}

.fp-web-feature__status {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 52px;
    padding: 12px 18px;
    background: var(--wp--preset--color--text-main);
    color: var(--wp--preset--color--bg);
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-sizing: border-box;
}

.fp-web-feature__status span {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.fp-web-feature__status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--web-accent);
    font-style: normal;
}

.fp-web-feature__console {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: var(--web-pad);
    background: #fff;
    color: var(--wp--preset--color--text-main);
    box-sizing: border-box;
}

.fp-web-feature__console-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 0 1rem;
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wp--preset--color--text-muted);
}

.fp-web-feature__tab {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 1.15rem 0.85rem;
    border: 0;
    background: transparent;
    color: var(--wp--preset--color--text-main);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    transition: background 0.2s var(--web-ease);
}

.fp-web-feature__tab:hover,
.fp-web-feature__tab:focus-visible,
.fp-web-feature__tab.is-active {
    background: var(--web-tint);
    color: var(--wp--preset--color--text-main);
    border-radius: 12px;
}

.fp-web-feature__tab:focus-visible {
    outline: 2px solid var(--wp--preset--color--text-main);
    outline-offset: -2px;
}

.fp-web-feature__tab-index {
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--wp--preset--color--text-muted);
}

.fp-web-feature__tab.is-active .fp-web-feature__tab-index {
    color: var(--wp--preset--color--hero-blue);
}

.fp-web-feature__tab-title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: var(--wp--preset--font-size--xl);
    font-weight: 500;
    letter-spacing: -0.02em;
    min-width: 0;
}

.fp-web-feature__tab-mark {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid currentColor;
    box-sizing: border-box;
    background: transparent;
    transition: background 0.2s var(--web-ease), border-color 0.2s var(--web-ease);
}

.fp-web-feature__tab.is-active .fp-web-feature__tab-mark {
    background: var(--wp--preset--color--hero-blue);
    border-color: var(--wp--preset--color--hero-blue);
}

.fp-web-feature__panels {
    display: grid;
    margin-top: auto;
    min-width: 0;
    padding-top: var(--wp--preset--spacing--20);
    border-top: 1px solid var(--web-line);
    box-sizing: border-box;
}

.fp-web-feature__panel {
    grid-area: 1 / 1;
    display: grid;
    grid-template-rows: 1fr auto;
    gap: var(--wp--preset--spacing--20);
    align-self: stretch;
    max-width: 38ch;
    min-width: 0;
}

html.js .fp-web-feature__panel:not(.is-active) {
    visibility: hidden;
    pointer-events: none;
}

.fp-web-feature__panel-title {
    display: none;
}

.fp-web-feature__panel p {
    margin: 0;
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--lg);
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.01em;
    color: var(--wp--preset--color--text-main);
}

.fp-web-feature__action {
    display: inline-flex;
    align-items: center;
    gap: var(--wp--preset--spacing--8);
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--wp--preset--color--text-main);
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
}

.fp-web-feature__action:hover,
.fp-web-feature__action:focus-visible {
    color: var(--wp--preset--color--text-main);
}

.fp-web-feature__action:hover .arrow-icon,
.fp-web-feature__action:focus-visible .arrow-icon {
    opacity: 0.55;
}

.fp-web-feature__action .arrow-icon {
    width: 16px;
    height: 16px;
    color: var(--wp--preset--color--text-main);
}

html.js .fp-web-feature__panel.is-in p {
    animation: fp-web-panel 0.35s var(--web-ease-out) both;
}

@keyframes fp-web-panel {
    from { opacity: 0; }
    to { opacity: 1; }
}

html:not(.js) .fp-web-feature__tabs {
    display: none;
}

html:not(.js) .fp-web-feature__panels {
    display: grid;
    gap: var(--wp--preset--spacing--20);
    align-items: start;
}

html:not(.js) .fp-web-feature__panel {
    grid-area: auto;
    display: grid;
    max-width: none;
    padding-bottom: var(--wp--preset--spacing--20);
    border-bottom: 1px solid var(--web-line);
}

html:not(.js) .fp-web-feature__panel-title {
    display: block;
    margin: 0 0 0.4rem;
    color: var(--wp--preset--color--text-main);
    font-family: var(--wp--preset--font-family--heading);
    font-size: var(--wp--preset--font-size--xl);
    font-weight: 500;
    letter-spacing: -0.01em;
}

@media (max-width: 980px) {
    .fp-web-feature__intro-grid,
    .fp-web-feature__stage {
        grid-template-columns: 1fr;
    }

    .fp-web-feature__intro-grid {
        gap: 1rem;
    }

    .fp-web-feature__lead {
        padding-inline: 0;
        max-width: 46ch;
    }

    .fp-web-feature__visual {
        min-height: 380px;
    }

    .fp-web-feature__console {
        min-height: 0;
    }
}

@media (max-width: 600px) {
    .fp-web-feature__visual {
        min-height: 320px;
    }

    .fp-web-feature__map {
        top: var(--wp--preset--spacing--16);
        left: var(--wp--preset--spacing--16);
        width: 100px;
    }

    .fp-web-feature__status {
        padding-inline: 14px;
    }

    .fp-web-feature__status span:last-child {
        display: none;
    }

    .fp-web-feature__console {
        min-height: 0;
        padding: var(--wp--preset--spacing--16);
    }

    .fp-web-feature__tab {
        grid-template-columns: 48px minmax(0, 1fr) auto;
        padding: 1.05rem 0.6rem;
    }

    .fp-web-feature__panels {
        margin-top: var(--wp--preset--spacing--4);
        padding-top: var(--wp--preset--spacing--16);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fp-web-feature__map-svg circle,
    .fp-web-feature__tab,
    .fp-web-feature__tab-mark,
    .fp-web-feature__action,
    .fp-web-feature__panel.is-in p {
        animation: none !important;
        transition: none !important;
    }
}
