/* =======================================================================
   HPL brand theme (2026-10-26)
   Matches the HPL Creator Academy videos: espresso brown, caramel gold, cream.
   Loaded after style.css / topbar.css / mobile.css. Delete this file's <link>
   to return to the previous look.
   ========================================================================== */
:root {
    --hpl-espresso: #1e140f;
    --hpl-espresso-2: #2a1c15;
    --hpl-espresso-3: #3a2a20;
    --hpl-caramel: #e2ad7b;
    --hpl-caramel-deep: #c58a52;
    --hpl-cream: #f6f0e6;
    --hpl-cream-dim: #d8c7b2;

    --bg: #f6f0e6;
    --bg-soft: #efe5d6;
    --panel: #fffaf3;
    --panel-2: #f3e9da;
    --line: #e4d4bf;
    --text: #22160f;
    --muted: #6e5949;
    --primary: #c58a52;
    --primary-2: #e2ad7b;
    --accent: #9a5f2e;
    --ink: #1e140f;
    --navy: #1e140f;
    --navy-2: #3a2a20;
    --shadow: 0 18px 50px rgba(30, 20, 15, .10);
}

::selection { background: rgba(226, 173, 123, .45); color: var(--hpl-espresso); }
body { background: var(--bg); }

/* ---------------------------------------------------------------- buttons */
.btn--primary {
    --btn-bg: linear-gradient(135deg, #ecc08f, var(--hpl-caramel) 45%, var(--hpl-caramel-deep));
    --btn-fg: var(--hpl-espresso);
    box-shadow: 0 10px 28px rgba(197, 138, 82, .32);
}
.btn--primary:hover { box-shadow: 0 14px 34px rgba(197, 138, 82, .45); }
.btn--accent { --btn-bg: linear-gradient(135deg, var(--hpl-espresso-3), var(--hpl-espresso)); --btn-fg: var(--hpl-caramel); border-color: rgba(226,173,123,.45); }
.brand__mark, .step-num { background: linear-gradient(135deg, var(--hpl-caramel), var(--hpl-caramel-deep)); color: var(--hpl-espresso); box-shadow: 0 8px 20px rgba(197,138,82,.35); }

/* ------------------------------------------------------- public top nav */
:root body .site-nav { background: rgba(30, 20, 15, .96); border-bottom: 1px solid rgba(226, 173, 123, .18); }
:root body .site-nav .brand { color: var(--hpl-cream); }
:root body .site-nav .nav-links a { color: var(--hpl-cream-dim); }
:root body .site-nav .nav-links a:hover { color: var(--hpl-caramel); }
:root body .site-nav .nav-toggle { color: var(--hpl-cream); border-color: rgba(226, 173, 123, .35); }
@media (max-width: 820px) {
    :root body .site-nav .nav-links { background: var(--hpl-espresso-2); border-color: rgba(226, 173, 123, .22); }
:root body .site-nav .nav-links a:hover { background: rgba(226, 173, 123, .08); }
}

/* ------------------------------------------------------------------ hero */
:root body .hero {
    background:
        radial-gradient(70% 60% at 50% 0%, rgba(226, 173, 123, .10), transparent 70%),
        radial-gradient(120% 90% at 50% 40%, #33241c 0%, var(--hpl-espresso-2) 45%, var(--hpl-espresso) 100%);
    color: var(--hpl-cream);
}
:root body .hero::before { background: rgba(226, 173, 123, .22); opacity: .35; }
:root body .hero::after { background: rgba(197, 138, 82, .35); opacity: .35; }
:root body .hero h1 { color: var(--hpl-cream); }
:root body .hero h1 .grad { background: linear-gradient(120deg, #f3cf9f, var(--hpl-caramel) 55%, var(--hpl-caramel-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root body .hero__lead, :root body .hero .muted { color: var(--hpl-cream-dim); }
:root body .hero .eyebrow { background: rgba(226, 173, 123, .10); border-color: rgba(226, 173, 123, .45); color: var(--hpl-caramel); }
:root body .hero .btn--ghost { --btn-fg: var(--hpl-cream); border-color: rgba(246, 240, 230, .35); }
:root body .hero .btn--ghost:hover { border-color: var(--hpl-caramel); --btn-fg: var(--hpl-caramel); }
:root body .hero__proof > div { background: rgba(255, 255, 255, .04) !important; border: 1px solid rgba(226, 173, 123, .28) !important; box-shadow: none !important; }
:root body .hero__proof strong { color: var(--hpl-caramel); }
:root body .hero__media .creator-visual { border-color: rgba(226, 173, 123, .35); }

/* -------------------------------------------------------- sections, cards */
:root body .eyebrow { background: rgba(197, 138, 82, .12); border-color: rgba(197, 138, 82, .45); color: var(--accent); }
:root body .section--alt { background: var(--bg-soft); }
:root body .card__icon { background: rgba(226, 173, 123, .18); border-color: rgba(197, 138, 82, .35); }
:root body .stat-card--accent { background: linear-gradient(135deg, var(--hpl-espresso-2), var(--hpl-espresso)); border-color: rgba(226, 173, 123, .45); color: var(--hpl-cream); }
:root body .stat-card--accent .stat-card__label, :root body .stat-card--accent .stat-card__meta { color: var(--hpl-cream-dim); }
:root body .stat-card--accent .stat-card__value { color: var(--hpl-caramel); }

:root body .cta-band {
    background: radial-gradient(120% 120% at 50% 0%, #33241c, var(--hpl-espresso));
    border-color: rgba(226, 173, 123, .35); color: var(--hpl-cream);
}
:root body .cta-band h2 { color: var(--hpl-cream); }
:root body .cta-band .muted, :root body .cta-band p { color: var(--hpl-cream-dim); }
:root body .cta-band .btn--ghost { --btn-fg: var(--hpl-cream); border-color: rgba(246, 240, 230, .35); }

/* ---------------------------------------------------------------- footer */
:root body .site-footer { background: var(--hpl-espresso); color: var(--hpl-cream-dim); border-top-color: rgba(226, 173, 123, .18); }
:root body .site-footer a { color: var(--hpl-cream-dim); }
:root body .site-footer a:hover { color: var(--hpl-caramel); }
:root body .site-footer strong, :root body .site-footer b { color: var(--hpl-cream); }
:root body .site-footer__contact { margin-top: 4px; font-size: .9em; }
/* Short pages: keep the footer at the bottom of the window. */
body.site { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.site > main { flex: 1 0 auto; }

/* ------------------------------------------------- tutorials (vertical) */
.video-frame { border-color: rgba(226, 173, 123, .45); box-shadow: 0 30px 80px rgba(30, 20, 15, .45), 0 0 0 6px rgba(226, 173, 123, .08); }
.video-frame--tutorial {
    aspect-ratio: 9 / 16;
    width: min(100%, calc(78vh * 9 / 16));
    margin: 0 auto;
    background: var(--hpl-espresso);
}
.video-frame--tutorial video { object-fit: contain; background: var(--hpl-espresso); }
.tutorial-empty { background: radial-gradient(120% 120% at 50% 0%, #33241c 0%, var(--hpl-espresso) 70%); color: var(--hpl-cream); }
.tutorial-list li:hover { background: rgba(226, 173, 123, .10); }
.tutorial-list li.is-active { background: rgba(226, 173, 123, .20); border-color: rgba(197, 138, 82, .5); }
.tutorial-list__num { background: var(--hpl-espresso); border-color: transparent; color: var(--hpl-caramel); }
.tutorial-list__state { color: var(--hpl-caramel-deep); }

/* ------------------------------------------------- logged-in app shell */
.app__topbar { background: rgba(246, 240, 230, .92); }
.app__sidebar { background: var(--bg-soft); }
.hplbar { --tb-gold: var(--hpl-caramel-deep); }
.hplbar__avatar--initial { background: linear-gradient(135deg, var(--hpl-caramel), var(--hpl-caramel-deep)) !important; color: var(--hpl-espresso) !important; }
.hplmenu__linkbtn:hover, .hplmenu__footlink:hover { color: var(--hpl-caramel) !important; }

/* body.site background + hero sizing */
:root body.site { background: var(--bg); }
:root body .hero { padding-bottom: 96px; }
:root body .hero__lead { color: var(--hpl-cream-dim); }
:root body .site-nav .nav-links > a:not(.btn) { color: var(--hpl-cream-dim); }
:root body .site-nav .nav-links > a:not(.btn):hover { background: rgba(226,173,123,.12); color: var(--hpl-caramel); }

/* sign-in / register side panel + footage thumbnails */
:root body .auth-aside {
    background:
        radial-gradient(600px 420px at 82% 10%, rgba(226,173,123,.18), transparent 65%),
        radial-gradient(520px 380px at 8% 88%, rgba(197,138,82,.16), transparent 70%),
        linear-gradient(150deg, #33241c 0%, var(--hpl-espresso) 72%);
    color: var(--hpl-cream);
}
:root body .auth-aside h2 { color: var(--hpl-cream); }
:root body .auth-aside .muted { color: var(--hpl-cream-dim); }
:root body .media-thumb { background: linear-gradient(135deg, var(--hpl-espresso-3), #f3e9da); color: var(--hpl-caramel-deep); }

/* ------------------------------------------------- site videos (2026-10-26) */
.intro-video { background: var(--bg); }
.intro-video__grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 56px; align-items: center; }
.intro-video__player { width: 100% !important; max-width: 380px; margin: 0 auto; }
.intro-video__text h2 { margin: 14px 0 12px; }
@media (max-width: 820px) {
    .intro-video__grid { grid-template-columns: 1fr; gap: 28px; }
    .intro-video__player { max-width: 340px; }
    .intro-video__text { text-align: center; }
    .intro-video__text .checklist { display: inline-flex; flex-direction: column; text-align: left; }
    .intro-video__text .flex { justify-content: center; }
}
.auth-aside__video { margin-top: 26px; display: flex; flex-direction: column; gap: 8px; max-width: 220px; }
.auth-aside__video video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px; border: 1px solid rgba(226, 173, 123, .4); background: var(--hpl-espresso); }
:root body .video-frame--welcome { aspect-ratio: 9 / 16; max-width: 300px; width: 100%; margin: 0 auto; background: var(--hpl-espresso); border-radius: 18px; border: 1px solid rgba(226, 173, 123, .35); }
:root body .video-frame--welcome video { object-fit: contain; background: var(--hpl-espresso); }

/* ------------------------------------------- social proof + levels (2026-10-26) */
.proof { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); position: relative; }
.proof__demo { margin: 0 auto 18px; width: fit-content; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: #7a4b22; background: rgba(226,173,123,.25); border: 1px dashed var(--hpl-caramel-deep); border-radius: 999px; padding: 6px 14px; }
.proof .grad, .levels .grad { background: linear-gradient(120deg, #e8b884, var(--hpl-caramel-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.payout-strip { position: relative; overflow: hidden; margin: 6px 0 34px; padding: 14px 0; border-radius: 18px; background: linear-gradient(135deg, var(--hpl-espresso-2), var(--hpl-espresso)); border: 1px solid rgba(226,173,123,.25);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.payout-strip__track { display: flex; gap: 14px; width: max-content; animation: hplTicker 48s linear infinite; }
.payout-strip:hover .payout-strip__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .payout-strip__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .payout-chip[aria-hidden] { display: none; } }
@keyframes hplTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.payout-chip { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(226,173,123,.22); color: var(--hpl-cream-dim); font-size: 14px; }
.payout-chip strong { color: var(--hpl-cream); font-weight: 700; }
.payout-chip b { color: var(--hpl-caramel); font-weight: 800; }
.payout-chip__dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: rgba(34,197,94,.18); color: #6ee7a0; }
.payout-chip__meta { font-size: 12.5px; opacity: .75; }

.proof__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: stretch; }
.proof__grid--single { grid-template-columns: minmax(0, 640px); justify-content: center; }
.cotw { position: relative; overflow: hidden; border-radius: 24px; padding: 30px; color: var(--hpl-cream);
  background: radial-gradient(120% 90% at 85% 0%, rgba(226,173,123,.22), transparent 60%), linear-gradient(150deg, #3a2a20, var(--hpl-espresso) 70%);
  border: 1px solid rgba(226,173,123,.4); box-shadow: 0 24px 60px rgba(30,20,15,.25); display: flex; flex-direction: column; gap: 14px; }
.cotw__badge { width: fit-content; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--hpl-espresso); background: var(--hpl-caramel); padding: 6px 12px; border-radius: 999px; }
.cotw__title { color: var(--hpl-cream); font-size: 1.45rem; line-height: 1.25; margin: 4px 0 0; }
.cotw__by { color: var(--hpl-cream-dim); font-size: 14px; }
.cotw__by strong { color: var(--hpl-cream); }
.cotw__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; }
.cotw__stats div { border: 1px solid rgba(226,173,123,.25); border-radius: 16px; padding: 14px 16px; background: rgba(255,255,255,.04); }
.cotw__stats b { display: block; font-size: 1.7rem; font-weight: 900; color: var(--hpl-caramel); letter-spacing: -.02em; }
.cotw__stats span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--hpl-cream-dim); }
.cotw .btn--ghost { --btn-fg: var(--hpl-cream); border-color: rgba(246,240,230,.35); width: fit-content; }

.calc { border-radius: 24px; padding: 28px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.calc__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.calc__head h3 { margin: 0; }
.calc__label { display: flex; justify-content: space-between; font-weight: 600; font-size: 14.5px; margin-top: 6px; }
.calc__label b { color: var(--accent); font-weight: 800; }
.calc input[type=range] { width: 100%; accent-color: var(--hpl-caramel-deep); height: 26px; }
.calc__result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.calc__result div { border-radius: 16px; padding: 14px 16px; background: linear-gradient(135deg, var(--hpl-espresso-2), var(--hpl-espresso)); }
.calc__result span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--hpl-cream-dim); }
.calc__result b { font-size: 1.75rem; font-weight: 900; color: var(--hpl-caramel); letter-spacing: -.02em; }
.calc__note { color: var(--text) !important; font-weight: 600; margin: 4px 0 0; }

.levels { margin-top: 64px; }
.levels__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.level-card { border-radius: 22px; padding: 24px 22px; background: var(--panel); border: 1px solid var(--line); position: relative; overflow: hidden; }
.level-card:before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--lv, #b08d6a); }
.level-card__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; color: #fff; background: var(--lv, #b08d6a); box-shadow: 0 10px 22px rgba(30,20,15,.18); }
.level-card h3 { margin: 14px 0 2px; }
.level-card__min { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.level-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.level-card li:before { content: "\2713"; color: var(--lv, #b08d6a); font-weight: 800; margin-right: 8px; }
.level-card--bronze, .level-panel--bronze { --lv: #b0703c; }
.level-card--silver, .level-panel--silver { --lv: #8e9aa6; }
.level-card--gold, .level-panel--gold { --lv: #d4a32a; }
.level-card--diamond, .level-panel--diamond { --lv: #4fa3b8; }
.level-card--diamond { background: linear-gradient(160deg, #22313a, var(--hpl-espresso)); color: var(--hpl-cream); border-color: rgba(79,163,184,.45); }
.level-card--diamond h3 { color: var(--hpl-cream); } .level-card--diamond .level-card__min { color: var(--hpl-cream-dim); }

.level-panel .panel__body { padding: 20px 22px; }
.level-panel__grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 26px; align-items: center; }
.level-panel__badge { display: flex; align-items: center; gap: 14px; }
.level-panel__icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; color: #fff; background: var(--lv); box-shadow: 0 10px 24px rgba(30,20,15,.2); }
.level-panel__badge small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.level-panel__badge strong { font-size: 1.5rem; font-weight: 900; }
.level-panel__row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 8px; flex-wrap: wrap; }
.level-bar { height: 12px; border-radius: 999px; background: var(--panel-2); overflow: hidden; border: 1px solid var(--line); }
.level-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--hpl-caramel), var(--lv)); }
.level-panel__progress p { margin: 8px 0 0; }
.level-panel__perks { list-style: none; margin: 0; padding: 0; font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; color: var(--muted); }

@media (max-width: 980px) { .levels__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .level-panel__grid { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 820px) { .proof__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .levels__grid { grid-template-columns: 1fr; } .cotw, .calc { padding: 22px; } .calc__result b, .cotw__stats b { font-size: 1.45rem; } }

/* ---- mobile notification / menu panel fix (2026-10-26e) */
/* The top bar (z 45) sat under the mobile dock (z 60), so its dropdowns were hidden behind the dock. */
@media (max-width: 720px) { .hplbar { z-index: 70 !important; } }
@media (max-width: 639px) {
  .hplmenu__panel { position: fixed !important; top: 68px !important; left: 10px !important; right: 10px !important; width: auto !important; max-width: none !important; max-height: calc(100vh - 160px) !important; max-height: calc(100dvh - 160px) !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch; z-index: 1000 !important; transform: none !important; }
}

/* ---- icons + payout strip facts (2026-10-27) */
.ico { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.ico--sm { width: 14px; height: 14px; }
.ico--lg { width: 26px; height: 26px; }
.payout-chip--fact { color: var(--hpl-cream-dim); }
.payout-chip--fact .payout-chip__dot { background: rgba(226,173,123,.16); color: var(--hpl-caramel); }
.payout-chip__dot .ico { width: 13px; height: 13px; stroke-width: 2.4; }
.level-card__icon .ico, .level-panel__icon .ico { width: 24px; height: 24px; color: #fff; }
.card__icon { color: var(--accent); } .card__icon .ico { width: 22px; height: 22px; }
.legal { padding: 20px 0 40px; }
.legal h1 { font-size: 2rem; margin-bottom: 4px; }
.legal h2 { font-size: 1.15rem; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--text); line-height: 1.7; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
