/* ── Portavolt Comparison Plugin Styles ───────────────────── */

.pvc-wrapper {
    --pvc-brand: #01442D;
    background: #f7f7f5;
    padding: 56px 24px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Section header */
.pvc-header {
    text-align: center;
    margin-bottom: 36px;
}
.pvc-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pvc-brand);
    margin: 0 0 8px;
}
.pvc-heading {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 800;
    color: #111827;
    margin: 0 0 10px;
    line-height: 1.25;
}
.pvc-subtext {
    font-size: 14px;
    color: #6b7280;
    max-width: 520px;
    margin: 0 auto;
}

/* Split panels */
.pvc-split {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    max-width: 900px;
    margin: 0 auto;
}
@media (min-width: 640px) {
    .pvc-split { flex-direction: row; }
}

.pvc-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 36px 24px;
}
.pvc-panel--product    { background: #f0f7f2; }
.pvc-panel--competitor { background: #f5f5f4; }

.pvc-panel__title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: var(--pvc-brand);
}
.pvc-panel__title--grey { color: #374151; }

/* Custom images */
.pvc-panel__img-wrap {
    width: 100%;
    max-width: 200px;
    border-radius: 10px;
    overflow: hidden;
}
.pvc-panel__img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Inline SVG illustrations */
.pvc-illustration {
    width: 180px;
    height: 120px;
}

/* VS badge */
.pvc-vs {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 2px solid #fff;
    letter-spacing: 0.02em;
}
@media (min-width: 640px) {
    .pvc-vs { display: flex; }
}

/* Badges */
.pvc-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.pvc-badge {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}
.pvc-badge--brand { background: var(--pvc-brand); }
.pvc-badge--red   { background: #ef4444; }
.pvc-badge--grey  { background: #6b7280; }

/* Taglines */
.pvc-tagline {
    font-size: 12px;
    font-weight: 600;
    margin: 0;
}
.pvc-tagline--green { color: #15803d; }
.pvc-tagline--red   { color: #dc2626; }

/* ── Savings Calculator ─────────────────────────────────── */
.pvc-calc {
    margin-top: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.pvc-calc__headline {
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 6px;
}
.pvc-calc__yearly-inline {
    color: var(--pvc-brand);
    font-weight: 800;
}
.pvc-calc__sub {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 28px;
}

/* Slider */
.pvc-slider-wrap { margin-bottom: 28px; }

.pvc-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 8px;
}
.pvc-slider-current { font-weight: 600; color: #374151; }

.pvc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 9999px;
    outline: none;
    cursor: pointer;
    border: none;
}
.pvc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--pvc-brand);
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    cursor: pointer;
}
.pvc-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--pvc-brand);
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    cursor: pointer;
    border: none;
}

/* Cards */
.pvc-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 480px) {
    .pvc-cards { grid-template-columns: repeat(3, 1fr); }
}

.pvc-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    transition: box-shadow 0.15s;
}
.pvc-card--highlight {
    background: var(--pvc-brand);
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.pvc-card__label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    margin: 0 0 6px;
}
.pvc-card--highlight .pvc-card__label { color: #a7f3d0; }

.pvc-card__value {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 4px;
    transition: all 0.12s;
}
.pvc-card--highlight .pvc-card__value { color: #fff; }

.pvc-card__sub {
    font-size: 11px;
    color: #9ca3af;
    margin: 0;
}
.pvc-card--highlight .pvc-card__sub { color: #6ee7b7; }

.pvc-disclaimer {
    text-align: center;
    font-size: 11px;
    color: #9ca3af;
    margin: 16px 0 0;
}

/* ── SVG Animations ─────────────────────────────────────── */
@keyframes pvc-smoke1 {
    0%   { transform: translateY(0)   scaleX(1);   opacity: 0.7; }
    100% { transform: translateY(-16px) scaleX(1.4); opacity: 0; }
}
@keyframes pvc-smoke2 {
    0%   { transform: translateY(0)    scaleX(1);   opacity: 0.5; }
    100% { transform: translateY(-20px) scaleX(1.6); opacity: 0; }
}
@keyframes pvc-wave {
    0%   { r: 4;  opacity: 0.8; }
    100% { r: 30; opacity: 0; }
}
@keyframes pvc-dollar {
    0%   { transform: translate(0, 0);     opacity: 1; }
    100% { transform: translate(8px, -18px); opacity: 0; }
}

.pvc-smoke-1 {
    animation: pvc-smoke1 1.8s ease-out infinite;
    transform-origin: 77px 30px;
}
.pvc-smoke-2 {
    animation: pvc-smoke2 1.8s ease-out infinite 0.6s;
    transform-origin: 77px 24px;
}
.pvc-wave-1 { animation: pvc-wave 1.6s ease-out infinite; }
.pvc-wave-2 { animation: pvc-wave 1.6s ease-out infinite 0.4s; }
.pvc-wave-3 { animation: pvc-wave 1.6s ease-out infinite 0.8s; }

.pvc-dollar-1 {
    animation: pvc-dollar 2s ease-out infinite;
    transform-origin: 100px 55px;
}
.pvc-dollar-2 {
    animation: pvc-dollar 2s ease-out infinite 0.7s;
    transform-origin: 108px 52px;
}
.pvc-dollar-3 {
    animation: pvc-dollar 2s ease-out infinite 1.4s;
    transform-origin: 104px 58px;
}
