/* Black Friday -hero etusivulla (inc/blackfriday/hero.php, design_handoff_blackfriday). Musta kortti,
   tuotekasa hintaräiskäyksillä, ajastin oikeassa yläkulmassa. Räiskäysten koot ovat kasan leveydestä
   (cqw), jotta suhteet pysyvät samoina mobiilissa. */

.bfh-ulko {
    max-width: 1360px;
    margin: 0 auto;
    padding: 24px 16px 12px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.bfh {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.45fr;
    gap: 32px;
    align-items: center;
    padding: 56px;
    border-radius: 22px;
    background: var(--pyronet-ruuti);
    color: var(--pyronet-white);
    box-shadow: 2px 3px 8px #00000029;
    box-sizing: border-box;
}

.bfh::before {
    content: "";
    position: absolute;
    right: -10%;
    top: -20%;
    width: 70%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, #fdc8572e, transparent 62%);
    pointer-events: none;
}

.bfh > * { position: relative; }
.bfh *, .bfh *::before, .bfh *::after { box-sizing: border-box; }

/* Vasen sarake */
.bfh__pill {
    display: inline-flex;
    margin-top: 24px;
    background: var(--pyronet-kipina);
    color: var(--pyronet-ruuti);
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-size: 14px;
    padding: 9px 16px;
    border-radius: 8px;
}

.bfh .bfh__otsikko {
    font-size: clamp(40px, 4.6vw, 72px);
    line-height: .95;
    font-weight: 900;
    text-transform: uppercase;
    margin: 22px 0 18px;
    color: var(--pyronet-white);
}

.bfh .bfh__otsikko span { color: var(--pyronet-kipina); }

.bfh__lead {
    font-size: 20px;
    line-height: 1.6;
    color: #d9d3c8;
    margin: 0 0 26px;
    max-width: 38ch;
}

.bfh__napit { display: flex; gap: 12px; flex-wrap: wrap; }

.bfh .bfh__nappi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 24px;
    white-space: nowrap;
    border-radius: 10px;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: .03em;
    text-transform: uppercase;
    text-decoration: none;
}

.bfh .bfh__nappi--paa { background: var(--pyronet-kipina); color: var(--pyronet-ruuti); }
.bfh .bfh__nappi--reuna { border: 2px solid var(--pyronet-white); color: var(--pyronet-white); text-transform: none; font-weight: 700; padding: 0 20px; }
.bfh .bfh__nappi:hover { filter: brightness(1.08); }

/* Naamat ja puhekuplat: kupla naaman yläpuolella, häntä osoittaa alas. */
.bfh__naamat { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 4px 0 30px; align-items: end; }
.bfh__naama { display: flex; flex-direction: column-reverse; align-items: flex-start; justify-content: flex-end; gap: 22px; height: 100%; }
.bfh__kuva { width: 104px; height: 104px; border-radius: 50%; overflow: hidden; background: #3a3a3a; border: 4px solid var(--pyronet-kipina); box-shadow: 0 6px 16px #00000080; margin-left: 14px; }
.bfh__kuva img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bfh .bfh__kupla {
    position: relative;
    margin: 0;
    background: var(--pyronet-white);
    color: var(--pyronet-ruuti);
    font-weight: 900;
    font-size: 19px;
    line-height: 1.15;
    letter-spacing: -.01em;
    padding: 14px 18px 15px;
    border-radius: 22px;
    border: 3px solid var(--pyronet-ruuti);
    box-shadow: 5px 5px 0 var(--pyronet-kipina);
    transform: rotate(-2deg);
}

.bfh__kupla::before, .bfh__kupla::after { content: ""; position: absolute; left: 40px; border-style: solid; }
.bfh__kupla::before { bottom: -20px; border-width: 20px 14px 0 0; border-color: var(--pyronet-ruuti) transparent transparent transparent; }
.bfh__kupla::after { bottom: -14px; left: 43px; border-width: 14px 9px 0 0; border-color: var(--pyronet-white) transparent transparent transparent; }
.bfh .bfh__naama--2 .bfh__kupla { background: var(--pyronet-kipina); box-shadow: 5px 5px 0 var(--pyronet-white); transform: rotate(2deg); }
.bfh__naama--2 .bfh__kupla::after { border-top-color: var(--pyronet-kipina); }

/* Ajastin */
.bfh__kello {
    position: absolute !important;
    top: 22px;
    right: 26px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff0d;
    border: 1px solid #ffffff1f;
    border-radius: 14px;
    padding: 10px 14px 10px 18px;
}

.bfh__kello > span { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #bdb6aa; white-space: nowrap; }
.bfh__numerot { display: flex; align-items: flex-start; gap: 4px; }
.bfh__numerot div { display: flex; flex-direction: column; align-items: center; min-width: 44px; }
.bfh__numerot strong { display: block; width: 100%; text-align: center; background: #000; color: var(--pyronet-kipina); font-size: 26px; font-weight: 800; line-height: 1; padding: 8px 6px 7px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.bfh__numerot small { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8f897f; margin-top: 4px; }
.bfh__numerot i { font-style: normal; color: var(--pyronet-kipina); font-weight: 800; font-size: 22px; line-height: 40px; opacity: .6; }

/* Tuotekasa */
.bfh__oikea { padding-top: 72px; }
.bfh__kasa { position: relative; aspect-ratio: 1.2; container-type: inline-size; }
.bfh__kasa img { position: absolute; object-fit: contain; filter: drop-shadow(0 10px 18px #000000aa); z-index: 1; height: auto; max-width: none; }

/* Hintaräiskäys: tähti clip-pathilla, varjo ulommassa elementissä (clip-path leikkaisi sen). */
.bfh .bfh__rk {
    position: absolute;
    width: 25%;
    aspect-ratio: 1;
    z-index: 3;
    transform: rotate(var(--k, -8deg));
    filter: drop-shadow(0 4px 10px #000000b0);
    text-decoration: none;
    color: inherit;
}

.bfh__rk-sisus {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    background: var(--pyronet-kipina);
    color: var(--pyronet-ruuti);
    clip-path: polygon(50% 0%, 56.6% 8.5%, 65.5% 2.4%, 69.1% 12.6%, 79.4% 9.5%, 79.7% 20.3%, 90.5% 20.6%, 87.4% 30.9%, 97.6% 34.5%, 91.5% 43.4%, 100% 50%, 91.5% 56.6%, 97.6% 65.5%, 87.4% 69.1%, 90.5% 79.4%, 79.7% 79.7%, 79.4% 90.5%, 69.1% 87.4%, 65.5% 97.6%, 56.6% 91.5%, 50% 100%, 43.4% 91.5%, 34.5% 97.6%, 30.9% 87.4%, 20.6% 90.5%, 20.3% 79.7%, 9.5% 79.4%, 12.6% 69.1%, 2.4% 65.5%, 8.5% 56.6%, 0% 50%, 8.5% 43.4%, 2.4% 34.5%, 12.6% 30.9%, 9.5% 20.6%, 20.3% 20.3%, 20.6% 9.5%, 30.9% 12.6%, 34.5% 2.4%, 43.4% 8.5%);
}

.bfh__rk small { font-size: max(1.7cqw, 8px); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; max-width: 70%; line-height: 1.1; }
.bfh__rk b { display: block; font-size: 1.85cqw; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; color: #e10600; margin-top: .4cqw; }
.bfh__rk strong { font-size: 5.8cqw; font-weight: 900; letter-spacing: -.03em; margin: .5cqw 0 .3cqw; white-space: nowrap; }
.bfh__rk b + strong { font-size: 5cqw; }
.bfh__rk s, .bfh__rk em { font-size: max(2.4cqw, 10px); font-weight: 700; font-style: normal; opacity: .85; white-space: nowrap; }

.bfh .bfh__rk--iso { width: 29%; }
.bfh__rk--iso strong { font-size: 6.8cqw; }
.bfh__rk--pun .bfh__rk-sisus { background: #e10600; color: var(--pyronet-white); }
.bfh__rk--valk .bfh__rk-sisus { background: var(--pyronet-white); color: var(--pyronet-ruuti); }
.bfh__rk--valk strong { color: #e10600; }
.bfh__rk--pun { animation: bfh-syke 1.8s ease-in-out infinite; }
.bfh .bfh__rk:hover { z-index: 4; }

@keyframes bfh-syke {
    0%, 100% { transform: rotate(var(--k)) scale(1); }
    50% { transform: rotate(var(--k)) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
    .bfh__rk--pun { animation: none; }
}

@media only screen and (max-width: 56em) {
    .bfh { grid-template-columns: 1fr; padding: 28px 20px; gap: 20px; }
    .bfh__kello { position: static !important; justify-content: space-between; }
    .bfh__pill { margin-top: 0; }
    .bfh__lead { font-size: 17px; }
    .bfh__oikea { padding-top: 0; }
    .bfh__kasa { margin: 0 -4%; }
    .bfh .bfh__nappi { width: 100%; }
}

@media only screen and (max-width: 30em) {
    .bfh__kello { flex-direction: column; align-items: stretch; gap: 8px; }
    .bfh__kello > span { text-align: center; }
    .bfh__numerot { justify-content: center; }
    .bfh__kuva { width: 80px; height: 80px; margin-left: 8px; }
    .bfh .bfh__kupla { font-size: 15px; padding: 10px 12px 11px; }
}
