/* ============================================================
   LegalnyMedyk — „Jak tworzymy produkty?" (/jak-tworzymy-produkty/)
   Odwzorowanie mockupu szefa
   (fotki_zespolu/podstrony2/...JAK_TWORZYĆ_PRODUKTY_(CHATGPT).png)
   w NASZEJ szacie: sky-blue #27A3DC, navy ink, złoto tylko jako
   subtelny akcent (podpis + tarcza). Reużywa .subpage / .sub-*
   z podstrony.css; tu tylko elementy specyficzne (prefix jtp-):
   makieta produktu w hero, panele-deliverables przy krokach,
   grid „jak prezentujemy" i granatowy baner z podpisem radcy.
   ============================================================ */

/* ---------------- HERO: makieta produktu ---------------- */
.jtp-herofig {
    position: relative; display: flex; align-items: center; justify-content: center;
    padding: 40px 44px; min-height: 340px;
}
.jtp-herofig::before {
    content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, rgba(39, 163, 220, .28) 0%, rgba(39, 163, 220, 0) 68%);
    filter: blur(6px);
}

.jtp-cover { position: relative; width: 100%; max-width: 300px; }
@media (prefers-reduced-motion: no-preference) {
    .jtp-cover { animation: jtpRise .7s cubic-bezier(.2, .7, .2, 1) both; }
    @keyframes jtpRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
}
.jtp-cover__tag {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%); z-index: 3;
    padding: 5px 14px; border-radius: 999px; white-space: nowrap;
    background: var(--u-accent); color: var(--u-ink);
    font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(196, 152, 32, .35);
}
.jtp-cover__card {
    position: relative; border-radius: 16px; padding: 26px 24px 22px; color: #fff;
    background: linear-gradient(155deg, #143766 0%, #0B1F3A 62%, #071427 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 34px 60px rgba(8, 20, 39, .38), 0 2px 0 rgba(255, 255, 255, .06) inset;
    transform: perspective(1300px) rotateY(-8deg) rotateX(2.5deg);
    transform-origin: center right;
}
.jtp-cover__card::before { /* spine highlight */
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
    border-radius: 16px 0 0 16px;
    background: linear-gradient(180deg, var(--u-accent), #C99820);
    opacity: .9;
}
.jtp-cover__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.jtp-cover__brand { font-size: .92rem; font-weight: 700; letter-spacing: -.01em; color: #EAF4FB; }
.jtp-cover__brand b { color: var(--u-primary); font-weight: 800; }
.jtp-cover__shield {
    width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
    background: rgba(244, 189, 55, .14); color: var(--u-accent); font-size: 1rem;
    border: 1px solid rgba(244, 189, 55, .3);
}
.jtp-cover__kicker { margin: 0 0 6px; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #7FB6DA; }
.jtp-cover__title { margin: 0; font-size: 1.7rem; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: #fff; }
.jtp-cover__sub { margin: 4px 0 18px; font-size: .9rem; line-height: 1.35; color: rgba(234, 244, 251, .82); }
.jtp-cover__list { list-style: none; margin: 0 0 18px; padding: 16px 0 0; border-top: 1px solid rgba(255, 255, 255, .1); display: grid; gap: 9px; }
.jtp-cover__list li { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: rgba(234, 244, 251, .9); }
.jtp-cover__list li i { flex: none; font-size: .7rem; color: var(--u-accent); }
.jtp-cover__foot {
    display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 9px;
    background: rgba(255, 255, 255, .06); font-size: .74rem; font-weight: 600; color: #9FC7E4;
}
.jtp-cover__foot i { color: var(--u-primary); }

/* ---------------- STEPS: figura + deliverable ---------------- */
.jtp-stepsintro { margin: 8px 0 -6px; }
.jtp-stepsintro__eyebrow {
    display: inline-flex; align-items: center; gap: 9px; margin-bottom: 12px;
    font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--u-primary-dark);
}
.jtp-stepsintro__eyebrow i { color: var(--u-accent); }
.jtp-stepsintro__title { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.95rem); font-weight: 800; color: var(--u-ink); line-height: 1.2; }

.jtp-figrow { display: flex; align-items: flex-start; gap: 16px; }
.jtp-figrow .sub-step__desc { margin: 0; }
.jtp-figure {
    flex: none; width: 54px; height: 54px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
    background: radial-gradient(120% 120% at 30% 25%, #FFFFFF 0%, var(--u-primary-tint) 100%);
    color: var(--u-primary-dark); border: 1px solid #CDE7F6;
    box-shadow: 0 4px 12px rgba(39, 163, 220, .14);
}

.jtp-detail {
    height: 100%; padding: 24px 26px; border-radius: 14px;
    background: linear-gradient(180deg, #F3FAFE 0%, #EAF6FC 100%);
    border: 1px solid #CDE7F6;
}
.jtp-detail__head {
    display: flex; align-items: center; gap: 13px; margin: 0 0 16px;
    font-size: 1.06rem; font-weight: 800; color: var(--u-ink); line-height: 1.3;
}
.jtp-detail__icon {
    flex: none; width: 42px; height: 42px; border-radius: 11px; background: #fff;
    color: var(--u-primary); display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
    box-shadow: 0 4px 12px rgba(11, 31, 58, .08);
}
.jtp-detail__list li { font-size: .92rem; }

/* connector between step cards (encodes real sequence) */
.jtp-arrow { display: flex; justify-content: center; margin: -12px 0; }
.jtp-arrow i {
    width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: #fff; color: var(--u-primary); border: 1px solid #CDE7F6; font-size: .8rem;
    box-shadow: 0 6px 14px rgba(11, 31, 58, .07);
}

/* ---------------- „Jak prezentujemy produkty" grid ---------------- */
.jtp-present {
    padding: 46px 42px; border-radius: var(--u-radius);
    background: linear-gradient(180deg, #EAF6FC 0%, #F5FBFE 100%);
    border: 1px solid #CDE7F6;
}
.jtp-present__head { text-align: center; max-width: 44em; margin: 0 auto 34px; }
.jtp-present__head h2 { margin: 0 0 10px; font-size: clamp(1.4rem, 2.5vw, 1.85rem); font-weight: 800; color: var(--u-ink); line-height: 1.2; }
.jtp-present__head p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--u-ink-3); }
.jtp-present__grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px 18px;
}
@media (max-width: 900px) { .jtp-present__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .jtp-present__grid { grid-template-columns: repeat(2, 1fr); } }
.jtp-present__item { text-align: center; }
.jtp-present__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 15px; margin-bottom: 14px; font-size: 1.4rem;
    background: #fff; color: var(--u-primary); border: 1px solid #CDE7F6;
    box-shadow: 0 6px 16px rgba(11, 31, 58, .07);
    transition: transform .18s ease, box-shadow .18s ease;
}
.jtp-present__item:hover .jtp-present__icon { transform: translateY(-4px); box-shadow: 0 12px 22px rgba(11, 31, 58, .12); }
.jtp-present__item h3 { margin: 0 0 6px; font-size: .98rem; font-weight: 800; color: var(--u-ink); line-height: 1.3; }
.jtp-present__item p { margin: 0; font-size: .86rem; line-height: 1.5; color: var(--u-ink-3); }
.jtp-present__cta { margin-top: 38px; text-align: center; }

/* ---------------- Granatowy baner z podpisem ---------------- */
.jtp-banner {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px;
    padding: 34px 40px; border-radius: var(--u-radius); color: #fff; position: relative; overflow: hidden;
    background: linear-gradient(135deg, #0B1F3A 0%, #12315C 58%, #1A3E6E 100%);
}
.jtp-banner::after { /* subtelna złota nitka u dołu */
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--u-accent) 45%, var(--u-accent) 55%, transparent);
    opacity: .55;
}
.jtp-banner__icon {
    flex: none; width: 60px; height: 60px; border-radius: 15px;
    display: flex; align-items: center; justify-content: center; font-size: 1.55rem;
    background: rgba(244, 189, 55, .12); color: var(--u-accent); border: 1px solid rgba(244, 189, 55, .28);
}
.jtp-banner__copy h2 { margin: 0 0 7px; font-size: clamp(1.05rem, 1.9vw, 1.28rem); font-weight: 800; line-height: 1.3; color: #fff; }
.jtp-banner__copy p { margin: 0; font-size: .92rem; line-height: 1.55; color: rgba(234, 244, 251, .8); max-width: 52em; }
.jtp-sign { text-align: right; padding-left: 30px; border-left: 1px solid rgba(255, 255, 255, .16); }
.jtp-sign__name {
    display: block; font-weight: 800; font-size: 1.35rem; line-height: 1.1;
    letter-spacing: -.01em; color: #fff; white-space: nowrap;
}
.jtp-sign__name b { color: var(--u-primary); font-weight: 800; }
.jtp-sign__role {
    display: block; margin-top: 7px; font-size: .7rem; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase; color: var(--u-accent);
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 860px) {
    /* na wąskim: kopia hero pierwsza, makieta pod nią */
    .jtp-hero .sub-hero__copy { order: 1; }
    .jtp-herofig { order: 2; min-height: 0; padding: 8px 24px 40px; }
    .jtp-cover__card { transform: none; }
    .jtp-cover__card::before { background: linear-gradient(90deg, var(--u-accent), #C99820); width: 100%; height: 6px; bottom: auto; border-radius: 16px 16px 0 0; }
    .jtp-present { padding: 38px 24px; }
    .jtp-banner { grid-template-columns: 1fr; text-align: center; gap: 20px; padding: 32px 24px; }
    .jtp-banner__icon { justify-self: center; }
    .jtp-banner__copy p { margin-inline: auto; }
    .jtp-sign { text-align: center; padding-left: 0; padding-top: 20px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
}
@media (prefers-reduced-motion: reduce) {
    .jtp-present__item:hover .jtp-present__icon { transform: none; }
}
