/* ---------------------------------------------------------------
   HOP: sekcja promująca aplikację na appifi.pl
   Design system HOP „Nić”: węzeł = telefon, wstęga = istniejąca trasa,
   linia przerywana = trasy jeszcze nie ma. Cyjan tylko dla tego, co żywe.

   Font marki (agent integrujący dopisuje w <head>):
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wdth,wght@12..96,75..100,200..800&family=Martian+Mono:wdth,wght@75..112.5,400..600&display=swap">
   --------------------------------------------------------------- */

.app-promo--hop {
    --hop-bg: #070A12;
    --hop-void: #04060B;
    --hop-surface: #0C111C;
    --hop-surface-2: #121927;
    --hop-line: #1A2233;
    --hop-line-strong: #2A3550;
    --hop-ink: #EEF4FF;
    --hop-ink-2: #9AA8C2;
    --hop-ink-3: #5F6B84;
    --hop-cyan: #22E1FF;
    --hop-cyan-dim: #0E4F5E;
    --hop-blue: #1F6BFF;
    --hop-ice: #DDF6FF;
    --hop-ice-ink: #04121A;
    --hop-alarm: #FF4438;
    --hop-appifi: #FF9800;
    --hop-ribbon: linear-gradient(90deg, #22E1FF 0%, #1F6BFF 100%);

    --hop-font: "Bricolage Grotesque", "Outfit", system-ui, sans-serif;
    --hop-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

    --seam-top: #070A12;
    --seam-bottom: #070A12;

    position: relative;
    overflow: hidden;
    isolation: isolate;
    width: 100%;
    background-color: var(--hop-bg);
    color: var(--hop-ink-2);
    font-family: var(--hop-font);
    font-weight: 400;
    line-height: 1.5;
}

/* ---------- tło: mesh (canvas) + poświata ---------- */

.app-promo--hop .hop-mesh {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.app-promo--hop .hop-atmo {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(60% 55% at 74% 46%, rgba(34, 225, 255, 0.10) 0%, rgba(31, 107, 255, 0.05) 38%, rgba(7, 10, 18, 0) 70%),
        radial-gradient(40% 30% at 8% 100%, rgba(31, 107, 255, 0.06) 0%, rgba(7, 10, 18, 0) 70%);
}

.app-promo--hop .hop-container {
    position: relative;
}

/* ---------- układ ---------- */

.app-promo--hop .hop-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    grid-template-areas:
        "head  stage"
        "feat  stage"
        "cta   stage";
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(32px, 5vw, 88px);
    align-items: start;
}

.app-promo--hop .hop-head { grid-area: head; }
.app-promo--hop .hop-stage { grid-area: stage; }
.app-promo--hop .hop-features { grid-area: feat; }
.app-promo--hop .hop-cta { grid-area: cta; }

/* ---------- etykieta Appifi ---------- */

.app-promo--hop .hop-appifi {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 36px;
    font-family: "Outfit", sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--hop-ink-2);
}

.app-promo--hop .hop-appifi__mark {
    font-family: "Outfit", sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--hop-appifi);
}

/* ---------- marka ---------- */

.app-promo--hop .hop-brand {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 24px;
    margin-bottom: 28px;
}

.app-promo--hop .hop-brand__logo {
    display: block;
    width: 147px;
    height: auto;
}

.app-promo--hop .hop-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding-left: 24px;
    border-left: 1px solid var(--hop-line-strong);
    font-family: var(--hop-mono);
    font-size: 11px;
    font-weight: 500;
    line-height: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hop-cyan);
}

.app-promo--hop .hop-kicker__dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hop-cyan);
    box-shadow: 0 0 0 0 rgba(34, 225, 255, 0.5);
    animation: hop-live 2.4s ease-out infinite;
    animation-play-state: paused;
}

.app-promo--hop.is-live .hop-kicker__dot {
    animation-play-state: running;
}

@keyframes hop-live {
    0%   { box-shadow: 0 0 0 0 rgba(34, 225, 255, 0.55); }
    70%  { box-shadow: 0 0 0 9px rgba(34, 225, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 225, 255, 0); }
}

/* ---------- hasło ---------- */

.app-promo--hop .hop-title {
    margin: 0 0 28px;
    max-width: 13.5em;
    font-family: var(--hop-font);
    font-size: clamp(38px, 4.6vw, 68px);
    font-weight: 600;
    font-stretch: 85%;
    font-variation-settings: "opsz" 96, "wdth" 85;
    line-height: 1.03;
    letter-spacing: -0.012em;
    color: var(--hop-ink);
    text-wrap: balance;
}

.app-promo--hop .hop-ribbon,
.app-promo--hop .hop-dashed {
    position: relative;
    white-space: nowrap;
    background-repeat: no-repeat;
    background-position: 0 92%;
    padding-bottom: 0.04em;
}

/* wstęga = trasa istnieje */
.app-promo--hop .hop-ribbon {
    background-image: var(--hop-ribbon);
    background-size: 100% 0.09em;
}

/* linia przerywana = trasy jeszcze nie ma */
.app-promo--hop .hop-dashed {
    background-image: repeating-linear-gradient(90deg, var(--hop-ink-3) 0 0.22em, transparent 0.22em 0.38em);
    background-size: 100% 0.06em;
}

.app-promo--hop .hop-lead {
    max-width: 34em;
    margin: 0 0 48px;
    font-size: 18px;
    line-height: 1.6;
    font-variation-settings: "opsz" 18;
    color: var(--hop-ink-2);
}

.app-promo--hop .hop-mono {
    font-family: var(--hop-mono);
    font-size: 0.82em;
    letter-spacing: 0;
    color: var(--hop-ink);
    white-space: nowrap;
}

/* ---------- cechy (bez kart: linie 1 px i odstępy) ---------- */

.app-promo--hop .hop-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 40px;
    margin: 0 0 48px;
    padding: 0;
    list-style: none;
}

.app-promo--hop .hop-feature {
    position: relative;
    padding: 24px 0 26px 48px;
    border-top: 1px solid var(--hop-line);
}

.app-promo--hop .hop-feature__icon {
    position: absolute;
    left: 0;
    top: 22px;
    width: 32px;
    height: 32px;
    overflow: visible;
}

.app-promo--hop .hop-i-node { fill: var(--hop-cyan); }
.app-promo--hop .hop-i-alarm { fill: var(--hop-alarm); }
.app-promo--hop .hop-i-stroke,
.app-promo--hop .hop-i-line,
.app-promo--hop .hop-i-dash {
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.app-promo--hop .hop-i-stroke { stroke: var(--hop-ink); }
.app-promo--hop .hop-i-stroke--alarm { stroke: var(--hop-alarm); }
.app-promo--hop .hop-i-line { stroke: var(--hop-cyan); }
.app-promo--hop .hop-i-dash { stroke: var(--hop-ink-3); stroke-dasharray: 2.2 3; }

.app-promo--hop .hop-feature__title {
    margin: 0 0 6px;
    font-family: var(--hop-font);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.005em;
    color: var(--hop-ink);
}

.app-promo--hop .hop-feature__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--hop-ink-2);
}

/* ---------- CTA ---------- */

.app-promo--hop .hop-cta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}

.app-promo--hop .hop-cta__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.app-promo--hop .hop-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 26px 0 28px;
    border-radius: 999px;
    background: var(--hop-ice);
    color: var(--hop-ice-ink);
    font-family: var(--hop-font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 0 0 0 rgba(34, 225, 255, 0);
    transition: background-color .25s ease, box-shadow .35s ease, transform .25s ease;
}

.app-promo--hop .hop-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .25s ease;
}

.app-promo--hop .hop-btn:hover {
    background: #FFFFFF;
    box-shadow: 0 0 0 6px rgba(34, 225, 255, 0.14), 0 10px 40px -8px rgba(34, 225, 255, 0.45);
}

.app-promo--hop .hop-btn:hover svg { transform: translateX(3px); }
.app-promo--hop .hop-btn:active { transform: scale(0.98); }

.app-promo--hop .hop-btn:focus-visible {
    outline: 2px solid var(--hop-cyan);
    outline-offset: 4px;
}

.app-promo--hop .hop-meta {
    margin: 0;
    padding-left: 4px;
    font-family: var(--hop-mono);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hop-ink-2);
}

.app-promo--hop .hop-qr {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.app-promo--hop .hop-qr img {
    display: block;
    width: 104px;
    height: 104px;
    padding: 6px;
    border-radius: 14px;
    background: #FFFFFF;
    box-shadow: 0 0 0 1px var(--hop-line-strong), 0 0 0 7px rgba(34, 225, 255, 0.06);
}

.app-promo--hop .hop-qr__caption {
    margin: 0;
    font-family: var(--hop-mono);
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: var(--hop-ink);
}

.app-promo--hop .hop-qr__caption span {
    display: block;
    color: var(--hop-ink-2);
    font-family: var(--hop-font);
    font-size: 13px;
    letter-spacing: 0;
}

/* ---------- telefony ---------- */

.app-promo--hop .hop-stage {
    position: relative;
    align-self: center;
    justify-self: center;
    width: min(100%, 470px);
    aspect-ratio: 470 / 640;
    margin-top: 40px;
}

.app-promo--hop .hop-stage__glow {
    position: absolute;
    left: 55%;
    top: 50%;
    width: 120%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(34, 225, 255, 0.22), rgba(31, 107, 255, 0.08) 55%, rgba(7, 10, 18, 0) 100%);
    pointer-events: none;
}

.app-promo--hop .hop-stage__back {
    position: absolute;
    left: 0;
    top: 4%;
    width: 50%;
    z-index: 1;
}

.app-promo--hop .hop-phone {
    margin: 0;
    padding: 7px;
    border-radius: 13% / 6%;
    background: linear-gradient(160deg, #1B2333 0%, #0A0E17 45%, #121A29 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        0 0 0 1px #000,
        0 40px 80px -30px rgba(0, 0, 0, 0.9),
        0 18px 40px -20px rgba(0, 0, 0, 0.8);
}

.app-promo--hop .hop-phone picture,
.app-promo--hop .hop-phone img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 11.4% / 5.25%;
}

.app-promo--hop .hop-phone--back {
    transform: rotate(-7deg);
    transform-origin: 70% 80%;
    filter: saturate(0.85) brightness(0.82);
}

.app-promo--hop .hop-phone--front {
    position: absolute;
    right: 0;
    top: 0;
    width: 62%;
    z-index: 2;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.07),
        0 0 0 1px #000,
        0 0 60px -10px rgba(34, 225, 255, 0.28),
        0 50px 90px -30px rgba(0, 0, 0, 0.95);
}

/* ---------- dostępność ---------- */

.app-promo--hop .hop-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.app-promo--hop .hop-nowrap { white-space: nowrap; }

/* ---------- responsywność ---------- */

@media screen and (min-width: 1200px) and (max-width: 1399.98px) {
    .app-promo--hop .hop-features { grid-template-columns: minmax(0, 1fr); }
    .app-promo--hop .hop-feature { padding: 18px 0 18px 48px; }
    .app-promo--hop .hop-feature__icon { top: 16px; }
    .app-promo--hop .hop-qr { flex-direction: column; gap: 10px; text-align: center; }
    .app-promo--hop .hop-qr__caption span { display: none; }
}

@media screen and (max-width: 1199.98px) {
    .app-promo--hop .hop-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "head"
            "stage"
            "feat"
            "cta";
        grid-template-rows: none;
    }

    .app-promo--hop .hop-title { max-width: 15em; }
    .app-promo--hop .hop-lead { margin-bottom: 8px; }
    .app-promo--hop .hop-features { gap: 0 32px; }

    .app-promo--hop .hop-stage {
        width: min(100%, 440px);
        margin: 48px auto 64px;
    }

    .app-promo--hop .hop-cta { align-items: center; }
}

@media screen and (max-width: 991.98px) {
    .app-promo--hop .hop-stage { width: min(100%, 420px); margin: 40px auto 56px; }
    .app-promo--hop .hop-qr { display: none; }
}

@media screen and (max-width: 640px) {
    .app-promo--hop .hop-appifi { margin-bottom: 28px; }
    .app-promo--hop .hop-brand { gap: 12px 18px; margin-bottom: 22px; }
    .app-promo--hop .hop-brand__logo { width: 118px; }
    .app-promo--hop .hop-kicker { flex-basis: 100%; padding-left: 0; border-left: 0; font-size: 10px; letter-spacing: 0.06em; }
    .app-promo--hop .hop-title { font-size: clamp(34px, 9.6vw, 44px); line-height: 1.04; }
    .app-promo--hop .hop-lead { font-size: 16px; }
    .app-promo--hop .hop-features { grid-template-columns: minmax(0, 1fr); margin-bottom: 36px; }
    .app-promo--hop .hop-feature { padding: 20px 0 22px 46px; }
    .app-promo--hop .hop-feature__icon { top: 19px; width: 30px; height: 30px; }
    .app-promo--hop .hop-cta__actions { flex-direction: column; align-items: stretch; gap: 14px; width: 100%; }
    .app-promo--hop .hop-btn { justify-content: center; }
    .app-promo--hop .hop-meta { align-self: center; padding-left: 0; text-align: center; }
    .app-promo--hop .hop-stage { width: 92%; margin: 28px auto 44px; }
}

@media (prefers-reduced-motion: reduce) {
    .app-promo--hop .hop-kicker__dot { animation: none; }
    .app-promo--hop .hop-btn,
    .app-promo--hop .hop-btn svg { transition: none; }
}
