/* ==========================================================================
   HAULIX website – platform look: live numbers, tours, leaderboards, feature rows, plans.
   Builds on site.css (tokens, glass, buttons). Prefix hx-.
   ========================================================================== */

.small { font-size: 13px; }
.link { color: var(--accent); }
.link:hover { text-decoration: underline; }
.pos { color: var(--ok); }
.neg { color: var(--crit); }

/* ---- hero */
.hx-hero { padding: 132px 0 40px; position: relative; }
.hx-hero__grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hx-hero h1 { font-size: clamp(38px, 5.4vw, 64px); margin: 22px 0 18px; }
.hx-hero__lead { font-size: 18px; color: var(--text-2); max-width: 560px; margin-bottom: 28px; }
@media (max-width: 980px) { .hx-hero__grid { grid-template-columns: 1fr; } .hx-hero { padding-top: 110px; } }

/* ---- live numbers band */
.hx-live { padding: 22px 26px; border-radius: var(--r-3); }
.hx-live__head { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 14px; }
.hx-live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgb(61 214 140 / 0.6); animation: hx-pulse 2s infinite; display: inline-block; flex: none; }
@keyframes hx-pulse { 70% { box-shadow: 0 0 0 10px rgb(61 214 140 / 0); } 100% { box-shadow: 0 0 0 0 rgb(61 214 140 / 0); } }
.hx-live__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.hx-live__grid > div { display: grid; gap: 2px; }
.hx-live__grid b { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hx-live__grid span { font-size: 13px; color: var(--text-3); }
.hx-live.is-offline .hx-live__dot { background: var(--text-3); animation: none; }
@media (max-width: 900px) { .hx-live__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .hx-live__grid { grid-template-columns: repeat(2, 1fr); } .hx-live { padding: 18px; } }

/* ---- audiences */
.hx-aud { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hx-aud__card { padding: 30px; border-radius: var(--r-3); display: flex; flex-direction: column; gap: 14px; }
.hx-aud__card h3 { font-size: 24px; }
.hx-aud__card .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 820px) { .hx-aud { grid-template-columns: 1fr; } }
.hx-list { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 10px; }
.hx-list li { position: relative; padding-left: 26px; color: var(--text-2); }
.hx-list li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* ---- panels: tours and top lists */
.hx-board { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; align-items: start; }
.hx-board__side { display: grid; gap: 18px; }
@media (max-width: 980px) { .hx-board { grid-template-columns: 1fr; } }
.hx-panel { border-radius: var(--r-3); padding: 18px; }
.hx-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding: 0 4px; }
.hx-panel__head h3 { font-size: 16px; display: flex; align-items: center; gap: 10px; }
.hx-empty { color: var(--text-3); padding: 18px 6px; list-style: none; }

.hx-av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-3); }
.hx-av--sq { border-radius: 10px; }
.hx-av--empty { display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--text-2); font-family: var(--mono); }

.hx-tours { display: grid; }
.hx-tour { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; padding: 10px 6px; border-top: 1px solid var(--border); border-radius: 10px; transition: background 0.2s; }
.hx-tour:first-child { border-top: 0; }
.hx-tour:hover { background: rgb(255 255 255 / 0.03); }
.hx-tour__main { min-width: 0; display: grid; }
.hx-tour__main b, .hx-tour__main small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-tour small, .hx-rank small { color: var(--text-3); font-size: 12.5px; }
.hx-tour__num { display: grid; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .hx-hide-sm { display: none; } .hx-tour { grid-template-columns: auto 1fr auto; } }

.hx-rank { list-style: none; padding: 0; margin: 0; display: grid; }
.hx-rank li a { display: grid; grid-template-columns: 30px auto 1fr auto; gap: 12px; align-items: center; padding: 9px 6px; border-top: 1px solid var(--border); border-radius: 10px; }
.hx-rank li:first-child a { border-top: 0; }
.hx-rank li a:hover { background: rgb(255 255 255 / 0.03); }
.hx-rank__pos { font: 700 14px var(--mono); color: var(--text-3); text-align: center; }
.hx-rank__pos--1 { color: #ffc940; } .hx-rank__pos--2 { color: #c9d1dc; } .hx-rank__pos--3 { color: #e0925a; }
.hx-rank__name { display: grid; min-width: 0; }
.hx-rank__name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-rank__val { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---- feature rows */
.hx-row { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; margin: 0 0 72px; }
.hx-row--flip .hx-row__text { order: 2; }
.hx-row__text h3 { font-size: clamp(24px, 2.6vw, 32px); margin: 14px 0 12px; }
.hx-row__text p { color: var(--text-2); font-size: 16.5px; }
.hx-row__visual { border-radius: var(--r-3); padding: 20px; }
@media (max-width: 900px) { .hx-row { grid-template-columns: 1fr; gap: 22px; margin-bottom: 56px; } .hx-row--flip .hx-row__text { order: 0; } }
.hx-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); padding: 6px 12px; border-radius: 999px; background: var(--glow-soft); }

.hx-fake { display: grid; }
.hx-fake__row { display: grid; grid-template-columns: 1fr 60px 90px 50px; gap: 12px; align-items: center; padding: 11px 6px; border-top: 1px solid var(--border); font-variant-numeric: tabular-nums; font-size: 14px; }
.hx-fake__row:first-child { border-top: 0; }
.hx-fake__row > span:not(:first-child) { text-align: right; }
.hx-fake__row > span:first-child { display: grid; min-width: 0; }
.hx-fake__row small { color: var(--text-3); }
.hx-fake__row--head { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.hx-score { justify-self: end; min-width: 36px; text-align: center; padding: 2px 8px; border-radius: 8px; background: rgb(61 214 140 / 0.14); color: var(--ok); font-weight: 700; }
.hx-score--mid { background: rgb(255 176 32 / 0.14); color: var(--accent); }
.hx-bank__top { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 6px 14px; }
.hx-bank__top b { font-size: 28px; letter-spacing: -0.02em; }
.hx-bank .hx-fake__row { grid-template-columns: 1fr 0 0 100px; }

.hx-trucks { display: grid; gap: 10px; }
.hx-truck { display: grid; grid-template-columns: 1fr 120px 44px; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; }
.hx-truck > div:first-child { display: grid; }
.hx-truck small { color: var(--text-3); }
.hx-truck > span { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.hx-meter { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.hx-meter i { display: block; height: 100%; background: var(--ok); border-radius: 3px; }
.hx-meter--warn i { background: var(--accent); }
.hx-meter--crit i { background: var(--crit); }

.hx-discord__msg { display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.hx-discord__av img { width: 40px; height: 40px; border-radius: 50%; }
.hx-discord__bot { font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; background: #5865f2; color: #fff; vertical-align: 1px; }
.hx-embed { margin-top: 6px; padding: 12px 14px; border-radius: 6px; background: #2b2d31; border-left: 4px solid var(--ok); display: grid; gap: 10px; font-size: 14px; }
.hx-embed small { display: block; font-size: 12px; font-weight: 700; color: #dbdee1; }
.hx-embed__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; color: #c4c9ce; }
@media (max-width: 520px) { .hx-embed__grid { grid-template-columns: repeat(2, 1fr); } }

.hx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 980px) { .hx-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .hx-grid { grid-template-columns: 1fr; } }

/* ---- plans */
.hx-plans { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 14px; align-items: stretch; }
.hx-plan { border-radius: var(--r-3); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.hx-plan h3 { font-size: 18px; }
.hx-plan__price { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; }
.hx-plan .btn { margin-top: auto; align-self: flex-start; }
.hx-plan__badge { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: var(--tier); border: 1px solid color-mix(in srgb, var(--tier) 50%, transparent); background: color-mix(in srgb, var(--tier) 12%, transparent); }
@media (max-width: 980px) { .hx-plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hx-plans { grid-template-columns: 1fr; } }

/* ---- leaderboards page */
.hx-board-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.hx-seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: var(--glass); border: 1px solid var(--border); }
.hx-seg button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; cursor: pointer; color: var(--text-2); font-size: 14px; font-weight: 600; }
.hx-seg button:hover { color: var(--text); }
.hx-seg button.is-on { background: var(--accent); color: var(--accent-ink); }
.hx-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; margin-bottom: 18px; }
.hx-podium__step { border-radius: var(--r-3); padding: 20px 14px; display: grid; justify-items: center; gap: 8px; text-align: center; }
.hx-podium__step .hx-av { width: 56px; height: 56px; }
.hx-podium__step b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-podium__step--1 { padding-top: 34px; border-color: rgb(255 201 64 / 0.4); box-shadow: 0 30px 80px -40px rgb(255 201 64 / 0.5); }
.hx-podium__pos { font: 800 13px var(--mono); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); }
.hx-podium__step--1 .hx-podium__pos { background: #ffc940; color: #1a1204; }
.hx-podium__step--2 .hx-podium__pos { background: #c9d1dc; color: #111; }
.hx-podium__step--3 .hx-podium__pos { background: #e0925a; color: #1a0f04; }
.hx-podium__val { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.hx-rank--full li a { grid-template-columns: 40px auto 1fr auto; padding: 11px 8px; }
[data-pl-board].is-loading { opacity: 0.55; transition: opacity 0.2s; }
@media (max-width: 560px) { .hx-podium { grid-template-columns: 1fr; } .hx-podium__step--1 { order: -1; } }

/* ---- features page */
.hx-anchor-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 40px; }
.hx-feat-group { margin-bottom: 64px; scroll-margin-top: 90px; }
.hx-feat-group > h2 { font-size: clamp(26px, 3vw, 36px); margin: 10px 0 8px; }
.hx-feat-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.hx-feat { border-radius: var(--r-2); padding: 20px; }
.hx-feat svg.i { width: 22px; height: 22px; color: var(--accent); }
.hx-feat h4 { margin: 12px 0 6px; font-size: 16px; }
.hx-feat p { margin: 0; color: var(--text-2); font-size: 14.5px; }
@media (max-width: 900px) { .hx-feat-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hx-feat-list { grid-template-columns: 1fr; } }


/* hero mockup: the promotion toast sits below the drive card instead of over its route */
.hx-hero .toast { top: auto; bottom: 70px; left: -34px; }
@media (max-width: 520px) { .hx-panel__head .small { display: none; } }
