/* ─────────────────────────────────────────────────────────────────────────────
   Block: Työkaluohjelmat-esittely  (.fp-tool-showcase-block)

   Two-column layout: text content left, visual frame right.
   Visual frame = browser-chrome toolbar + screenshot + tab strip.
   Matches the proto .hero-visual / .visual-frame / .tool-strip pattern.
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Two-column grid ─────────────────────────────────────────────────────── */

.fp-tool-showcase {
    display: grid;
    grid-template-columns: minmax(34%, 0.85fr) minmax(60%, 1.15fr);
    gap: clamp(28px, 3vw, 48px);
    align-items: center;
}

/* ── Left: text content ──────────────────────────────────────────────────── */

.fp-tool-showcase-block .fp-ts__eyebrow {
    display: inline-block;
    margin: 0 0 0.625rem;
    color: var(--color-secondary, #00A0E0);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Beat h2:not(:first-child) margin-top: 5rem in app.css */
.fp-tool-showcase-block .fp-ts__heading {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--color-primary, #00388E);
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    font-weight: 700;
    line-height: 1.1;
}

.fp-ts__body {
    color: #33455b;
    font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
    line-height: 1.65;
}

.fp-ts__actions {
    margin-top: 1.75rem;
}

.fp-ts__cta {
    font-size: 1rem;
    min-width: 0;
    padding: .5rem 1.5rem;
}

/* ── Right: visual frame ─────────────────────────────────────────────────── */

.fp-ts__visual {
    min-width: 0;
}

.fp-ts__frame {
    overflow: hidden;
    border: 1px solid #dce6ee;
    background: #F1FBFE;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.10);
    border-radius: 1rem;
}

/* ── Toolbar ─────────────────────────────────────────────────────────────── */

.fp-ts__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #dce6ee;
    background: #fff;
}

.fp-ts__toolbar-title {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
    line-height: 1.25;
}

.fp-ts__toolbar-name {
    flex: 0 0 auto;
    color: var(--color-primary, #00388E);
    font-size: 13px;
    font-weight: 700;
}

.fp-ts__toolbar-name::after {
    content: ' – ';
    color: #5a6472;
    font-weight: 400;
}

.fp-ts__toolbar-subtitle {
    flex: 1 1 200px;
    min-width: 0;
    color: #5a6472;
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Decorative three-dot chrome */
.fp-ts__dots {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.fp-ts__dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #bfd3df;
}

/* ── Screenshot ──────────────────────────────────────────────────────────── */

.fp-ts__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
}

.fp-ts__image--empty {
    aspect-ratio: 16 / 10;
    background: #dce6ee;
}

/* ── Tab strip ───────────────────────────────────────────────────────────── */

.fp-ts__strip {
    display: grid;
    grid-template-columns: repeat(var(--fp-ts-tab-count, 1), minmax(0, 1fr));
    border-top: 1px solid #dce6ee;
    background: #fff;
}

.fp-ts__tab {
    display: grid;
    place-items: center;
    padding: 13px 10px;
    border: 0;
    border-right: 1px solid #dce6ee;
    background: #fff;
    color: var(--color-primary, #00388E);
    font-family: var(--font, inherit);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.fp-ts__tab:last-child {
    border-right: 0;
}

.fp-ts__tab.is-active {
    background: var(--color-primary, #00388E);
    color: #fff;
}

.fp-ts__tab:not(.is-active):hover {
    background: #f1fbfe;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
    .fp-tool-showcase {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .fp-ts__strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .fp-ts__tab {
        border-bottom: 1px solid #dce6ee;
    }
}
