/* =================================================================
   ===== STRYV4/~ ADVERTS — SHOP PILLS                         =====
   =================================================================
   Long horizontal pills for the public advertising shop.
   Featured pills pin to the top with an accent. Self-contained;
   inherits the theme's fonts. No external dependencies.

   v0.20: every colour is one of Core's places, with Slate as the
   fallback when Core is missing (W30, W14), and the device's dark
   mode followed then. Words measure 4.5:1 or better in every accent,
   light and dark (W11), except the Buy button's white words: that is
   Stryv4UI's B1, the Author's recorded exception (it becomes the
   Sunrise in the shop's design pass). With more contrast asked for,
   the Buy button is B3.
   ================================================================= */

/* CodeNumber 1.1 — Shop container */
.stryv4-shop{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin:0 0 1.5em;
    padding:0;
}
.stryv4-pricing-menu--empty{
    padding:18px;
    border:2px dashed var(--line, #d6dfeb);
    border-radius:10px;
    text-align:center;
    color:var(--ink-2, #42557a);
}

/* CodeNumber 1.2 — The pill: a raised card, its depth in shadow (Stryv4UI §3) */
.stryv4-pill{
    display:flex;
    align-items:center;
    gap:14px;
    padding:12px 16px;
    background:var(--card, #eff4fa);
    color:var(--ink, #0e1a2e);
    border:0;
    border-radius:999px;
    box-shadow:3px 3px 8px var(--sh-d, #c3cfe0), -3px -3px 8px var(--sh-l, #ffffff);
    transition:box-shadow var(--ui, 420ms) var(--ez, cubic-bezier(.16,1,.3,1));
}
.stryv4-pill:hover{
    box-shadow:6px 6px 14px var(--sh-d, #c3cfe0), -6px -6px 14px var(--sh-l, #ffffff);
}

/* CodeNumber 1.3 — Featured accent (surface for future promo CSS/JS): a ring in the accent, which says where (W12) */
.stryv4-pill--featured{
    box-shadow:inset 0 0 0 2px var(--a2, #5a6b80), 3px 3px 8px var(--sh-d, #c3cfe0), -3px -3px 8px var(--sh-l, #ffffff);
}

/* CodeNumber 1.4 — Icon badge */
.stryv4-pill__badge{
    flex:0 0 auto;
    width:44px;
    height:44px;
    border-radius:50%;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--well, #e1e8f2);
}
.stryv4-pill__badge img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.stryv4-pill__badge--blank{
    background:repeating-linear-gradient(45deg, var(--well, #e1e8f2), var(--well, #e1e8f2) 6px, var(--card, #eff4fa) 6px, var(--card, #eff4fa) 12px);
}

/* CodeNumber 1.5 — Main column (title + sub-line) */
.stryv4-pill__main{
    flex:1 1 auto;
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:3px;
}
.stryv4-pill__title-row{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
}
.stryv4-pill__title{
    font-weight:600;
    font-size:1rem;
    line-height:1.2;
    color:var(--ink, #0e1a2e);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    max-width:100%;
}
.stryv4-pill__tag{
    flex:0 0 auto;
    font-size:.66rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.04em;
    color:var(--accent-word, #58697e);
    background:var(--well, #e1e8f2);
    padding:2px 7px;
    border-radius:999px;
}
.stryv4-pill__sub{
    font-size:.8rem;
    color:var(--ink-2, #42557a);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

/* CodeNumber 1.6 — Price */
.stryv4-pill__price{
    flex:0 0 auto;
    font-weight:700;
    font-size:1.05rem;
    color:var(--ink, #0e1a2e);
    white-space:nowrap;
}

/* CodeNumber 1.7 — CTA: B1, the accent gradient with white words (Stryv4UI §3; the Author's ruling, 1 November) */
.stryv4-pill__cta{
    flex:0 0 auto;
    display:inline-block;
    background:linear-gradient(145deg, var(--a1, #a8b6c8), var(--a2, #5a6b80));
    color:#fff !important;   /* B1's white words: the Author's exception to W11 (Stryv4UI §3) */
    text-decoration:none;
    font-size:.85rem;
    font-weight:700;
    padding:8px 18px;
    border-radius:999px;
    box-shadow:3px 3px 8px var(--sh-d, #c3cfe0), -3px -3px 8px var(--sh-l, #ffffff);
    transition:transform var(--ui, 420ms) var(--ez, cubic-bezier(.16,1,.3,1));
}
.stryv4-pill__cta:hover{
    transform:translateY(-2px);   /* its own lift: nothing beside it moves (W08) */
}
.stryv4-pill__cta:focus-visible{
    outline:2px solid var(--focus, #5a6b80);
    outline-offset:2px;
}
/* B3, for a reader whose device asks for more contrast: the accent word deepening across the button, white words by
   day and the ground's colour by night, 5.55 to 11.26:1 (Stryv4UI §3) */
@media (prefers-contrast: more){
    .stryv4-pill__cta{ background:linear-gradient(90deg, var(--accent-word, #58697e), var(--accent-word-2, #3a495e)); }
    :root[data-theme="dark"] .stryv4-pill__cta{ color:var(--bg, #222730) !important; }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark){
    :root:not([data-s4c]) .stryv4-pill__cta{ background:linear-gradient(90deg, #a8b6c8, #c8d1dd); color:#222730 !important; }
}
@media (prefers-reduced-motion: reduce){
    .stryv4-pill, .stryv4-pill__cta{ transition:none; }
    .stryv4-pill__cta:hover{ transform:none; }
}

/* CodeNumber 1.8 — Mobile: pills wrap gracefully */
@media (max-width:600px){
    .stryv4-pill{
        flex-wrap:wrap;
        border-radius:16px;
        gap:10px;
    }
    .stryv4-pill__main{
        flex:1 1 60%;
    }
    .stryv4-pill__sub{
        white-space:normal;
    }
    .stryv4-pill__cta{
        flex:1 1 100%;
        text-align:center;
    }
}

/* CodeNumber 1.9 — Without Core, and the device asks for dark: Slate's dark places (Core's contract, W14) */
@media (prefers-color-scheme: dark){
    :root:not([data-s4c]) .stryv4-pricing-menu--empty{ border-color:#353c47; color:#a7b3c3; }
    :root:not([data-s4c]) .stryv4-pill{ background:#2a2f39; color:#eff3f9; box-shadow:3px 3px 8px #181b21, -3px -3px 8px #343b47; }
    :root:not([data-s4c]) .stryv4-pill:hover{ box-shadow:6px 6px 14px #181b21, -6px -6px 14px #343b47; }
    :root:not([data-s4c]) .stryv4-pill--featured{ box-shadow:inset 0 0 0 2px #5a6b80, 3px 3px 8px #181b21, -3px -3px 8px #343b47; }
    :root:not([data-s4c]) .stryv4-pill__badge,
    :root:not([data-s4c]) .stryv4-pill__tag{ background:#1f232b; }
    :root:not([data-s4c]) .stryv4-pill__badge--blank{ background:repeating-linear-gradient(45deg, #1f232b, #1f232b 6px, #2a2f39 6px, #2a2f39 12px); }
    :root:not([data-s4c]) .stryv4-pill__title,
    :root:not([data-s4c]) .stryv4-pill__price{ color:#eff3f9; }
    :root:not([data-s4c]) .stryv4-pill__tag{ color:#a8b6c8; }
    :root:not([data-s4c]) .stryv4-pill__sub{ color:#a7b3c3; }
    :root:not([data-s4c]) .stryv4-pill__cta{ box-shadow:3px 3px 8px #181b21, -3px -3px 8px #343b47; }
}
