/* Home advantage cards: custom SVG illustrations and finite interactions. */
.strength-grid .strength-card.strength-interactive {
    min-width: 0;
    padding: 28px 26px 30px;
    border: 1px solid #e8ebef;
    border-radius: 12px;
    background: #f6f7f9;
    cursor: pointer;
    isolation: isolate;
    transition: transform .3s cubic-bezier(.22, 1, .36, 1),
        opacity .6s ease, background-color .3s ease,
        border-color .3s ease, box-shadow .3s ease;
}

.strength-grid .strength-interactive::before {
    top: 30px;
    right: 24px;
    font-size: 34px;
    color: #e2e6eb;
    pointer-events: none;
}

.strength-grid .strength-interactive::after {
    content: "";
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 0;
    height: 2px;
    background: #ec6a00;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
    pointer-events: none;
}

.strength-grid .strength-interactive h3 {
    display: block;
    margin: 20px 0 12px;
    font-size: 20px;
    line-height: 1.4;
}

.strength-grid .strength-interactive p {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
}

.strength-grid .strength-visual {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    padding: 4px;
    border: 1px solid #f2dfd0;
    border-radius: 18px;
    background: #fffaf6;
    color: #ec6a00;
    cursor: pointer;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .25s ease, border-color .25s ease;
}

.strength-visual svg {
    display: block;
    width: 66px;
    height: 66px;
    overflow: visible;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.strength-visual .icon-ink { stroke: #26364a; }
.strength-visual .icon-accent { stroke: #ec6a00; }
.strength-visual .icon-muted { stroke: #c8d0da; }
.strength-visual .icon-tint { fill: #ffe5d0; stroke: none; }
.strength-visual .icon-solid { fill: #ec6a00; stroke: none; }
.strength-visual .icon-wheel { fill: #fffaf6; }
.strength-visual .quality-scan { opacity: 0; }

.strength-grid .strength-interactive:focus-within,
.strength-grid .strength-interactive.is-playing {
    background: #ffffff;
    border-color: #edba94;
    box-shadow: 0 12px 30px rgba(34, 47, 62, .08);
}

.strength-grid .strength-interactive:focus-within::after,
.strength-grid .strength-interactive.is-playing::after {
    transform: scaleX(1);
}

.strength-grid .strength-visual:focus-visible {
    outline: 2px solid #a94b00;
    outline-offset: 5px;
}

.strength-grid .strength-visual:active { background: #ffead9; }

@media (hover: hover) and (pointer: fine) {
    html.js .strength-grid .strength-interactive.animated:hover,
    .strength-grid .strength-interactive:hover {
        transform: translateY(-6px);
        background: #ffffff;
        border-color: #edba94;
        box-shadow: 0 12px 30px rgba(34, 47, 62, .08);
        transition-delay: 0s;
    }

    .strength-grid .strength-interactive:hover::after { transform: scaleX(1); }
    .strength-grid .strength-interactive:hover::before { color: #efd4bd; }
    .strength-grid .strength-interactive:hover .strength-visual { border-color: #edba94; }
}

@media (max-width: 768px) {
    .strength-grid .strength-card.strength-interactive { padding: 24px; }
    .strength-grid .strength-visual { width: 68px; height: 68px; flex-basis: 68px; }
    .strength-visual svg { width: 58px; height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
    .strength-grid .strength-card.strength-interactive,
    .strength-grid .strength-visual {
        transition: none !important;
        transform: none !important;
    }

    .strength-grid .strength-interactive::after { transition: none !important; }
}
