/**
 * Premium (homepage style): page-premium-home.php, since 2.24.0.
 * The hero is the homepage hero (home-hero-*.css) in premium mode; this file adds the offer that replaces the
 * free-report form, and the phone Join bar. Colours come from the hero's variables, so light mode follows the site theme.
 * New file name for every change: the live optimizer strips ?ver=.
 */

/* The offer */
.sth-offer { margin-top: 34px; }
.sth-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; }
.sth a.sth-buy, .sth a.sth-buy:hover, .sth a.sth-buy:focus {
    display: inline-flex; align-items: center; justify-content: center; gap: 14px;
    min-height: clamp(60px, 4.4vw, 72px); margin: 0; padding: 0 32px; border: 0; border-radius: 12px;
    background: var(--sth-btn); color: var(--sth-btn-text);
    box-shadow: 0 12px 34px rgba(245, 197, 24, 0.22);
    font-family: inherit; font-size: clamp(18px, 1.3vw, 21px); font-weight: 700; line-height: 1.2; letter-spacing: 0; text-transform: none; text-decoration: none; white-space: nowrap;
}
.sth a.sth-buy:hover { filter: brightness(1.06); }
.sth a.sth-buy span { padding-left: 14px; border-left: 1px solid rgba(17, 17, 17, 0.3); font-weight: 600; opacity: 0.78; }
.sth a.sth-alt, .sth a.sth-alt:hover { color: var(--sth-gold); font-weight: 700; font-size: clamp(16px, 1.15vw, 19px); text-decoration: none; }
.sth a.sth-alt:hover { text-decoration: underline; text-underline-offset: 3px; }
.sth .sth-terms { margin-top: 16px; font-size: clamp(15px, 1.1vw, 18px); color: var(--sth-text2); }
.sth .sth-terms strong { color: var(--sth-text); font-weight: 700; }
.sth .sth-terms svg { vertical-align: -3px; margin-right: 6px; color: var(--sth-ok); }
.sth-premium .sth-proof { margin-top: 30px; }
/* Narrower screens: the price line on its own line, so the wrap never leaves a dot at a line end */
@media (max-width: 1100px) {
    .sth .sth-terms > .sth-nb:first-child { display: block; }
    .sth .sth-terms > .sth-nb:first-child + .sth-eb-dot { display: none; }
}

@media (max-width: 560px) {
    .sth-offer { margin-top: 24px; }
    .sth-cta { flex-direction: column; gap: 14px; }
    .sth a.sth-buy, .sth a.sth-buy:hover, .sth a.sth-buy:focus { width: 100%; min-height: 58px; padding: 0 18px; font-size: 17.5px; }
    .sth .sth-terms { font-size: 15px; line-height: 1.7; }
    /* one term per line */
    .sth .sth-terms .sth-eb-dot { display: none; }
    .sth .sth-terms .sth-nb { display: block; }
}

/* Phones: the Join bar (shown by premium-home-*.js once the hero's button has scrolled away) */
.sph-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 10, 10, 0.92); border-top: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transform: translateY(110%); transition: transform 0.25s ease, visibility 0s linear 0.25s; visibility: hidden;
    font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.sph-bar.is-on { transform: none; visibility: visible; transition: transform 0.25s ease; }
.sph-bar a.sph-bar-btn, .sph-bar a.sph-bar-btn:hover, .sph-bar a.sph-bar-btn:focus {
    display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; margin: 0; padding: 0 16px; border-radius: 12px;
    background: #f5c518; color: #111111; font-size: 17px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap;
}
.sph-bar a.sph-bar-btn span { padding-left: 12px; border-left: 1px solid rgba(17, 17, 17, 0.3); font-weight: 600; opacity: 0.78; color: #111111; font-size: inherit; }
.sph-bar p.sph-bar-note { margin: 6px 0 0; padding: 0; text-align: center; font-size: 13px; line-height: 1.3; color: #c4c4bd; }
html[data-theme="light"] .sph-bar { background: rgba(255, 255, 255, 0.94); border-top-color: rgba(0, 0, 0, 0.08); }
html[data-theme="light"] .sph-bar a.sph-bar-btn { background: #d4a10a; }
html[data-theme="light"] .sph-bar p.sph-bar-note { color: #4a4a4a; }
@media (min-width: 761px) {
    .sph-bar { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    .sph-bar, .sph-bar.is-on { transition: none; }
}

/* Landing bar (since 2.24.2): logo and Log in over the hero, no menu. It scrolls away with the page. */
.sph-page { position: relative; }
.sph-top { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.sph-top-in { max-width: 1440px; height: 84px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; }
.sph-logo img { display: block; width: auto; height: 50px; }
.sph-top a.sph-login, .sph-top a.sph-login:hover {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(10, 10, 10, 0.5); color: #f5f5f2;
    font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; font-weight: 600; text-decoration: none;
}
.sph-top a.sph-login:hover { border-color: #f5c518; }
html[data-theme="light"] .sph-top a.sph-login { border-color: rgba(0, 0, 0, 0.18); background: rgba(255, 255, 255, 0.7); color: #1a1a1a; }
/* the hero's own top space was for the site's fixed nav; here it clears the landing bar */
.sth.sth-premium { padding-top: 84px; }
@media (max-width: 1150px) {
    .sph-top-in { height: 64px; padding: 0 18px; }
    .sph-logo img { height: 40px; }
    .sph-top a.sph-login, .sph-top a.sph-login:hover { min-height: 40px; padding: 0 16px; font-size: 15px; }
    .sth.sth-premium { padding-top: 64px; }
}

/* Footer without the menu columns (footer-premium.php) */
.pl-footer.stf.stf-lite .stf-grid { grid-template-columns: 1fr; }
.pl-footer.stf.stf-lite .stf-bottom { margin-top: 28px; }

/* Offer banner and countdown above the button (Premium offer template, since 2.25.0) */
.sth .sth-flag {
    display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px;
    margin: 0 auto 18px; padding: 8px 16px; border-radius: 999px;
    border: 1px solid rgba(245, 197, 24, 0.45); background: rgba(245, 197, 24, 0.12);
    color: var(--sth-text); font-size: clamp(15px, 1.05vw, 17px); font-weight: 600;
}
.sth .sth-flag b { color: var(--sth-gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.sth .sth-count[hidden] { display: none; }
