/* ============================================================
   ZAILY — Halloween sale (2026-10-10).
   js/sale.js puts class "hw-on" on <html> while the sale runs.
     .hw-only  shown ONLY during the sale
     .hw-off   shown ONLY outside it (what the sale replaces)
   Same tokens as the site (paper, ink, signal, heat; Archivo / Source Serif /
   IBM Plex Mono). The orange is the only new colour: a brighter pumpkin on
   dark, the brand's burnt orange (--heat) on light. Loaded by the home, the
   dashboard and the plan page; harmless where none of these classes exist.
   ============================================================ */

html:not(.hw-on) .hw-only { display: none !important; }
html.hw-on .hw-off { display: none !important; }

:root { --hw: #F28A1E; --hw-deep: #B45309; --hw-wash: #FDF1DF; --hw-line: #F2CD97; --hw-ink: #2A1503; }

.hw-pk { width: 18px; height: 18px; flex: none; display: block; }

/* ── site-wide bar ─────────────────────────────────────── */
.hw-bar {
  background: var(--ink, #0E1116); color: #D5DBE2; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 18px; padding: 10px var(--gutter, 32px); text-align: center;
  font-family: 'IBM Plex Mono', monospace; font-size: .76rem; line-height: 1.45; letter-spacing: .01em;
}
.hw-bar-tag {
  display: inline-flex; align-items: center; gap: 8px; background: var(--hw); color: var(--hw-ink);
  font-weight: 600; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; padding: 5px 11px 5px 8px; border-radius: 2px;
}
.hw-bar-tag .hw-pk { width: 16px; height: 16px; }
.hw-bar-text b { color: #fff; font-weight: 600; }
.hw-bar-text i { font-style: normal; color: #5E6A78; margin: 0 9px; }
.hw-bar-link { color: var(--hw); font-weight: 600; text-decoration: none; white-space: nowrap; }
.hw-bar-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.hw-bar-end { color: #98A3B0; border-left: 1px solid #3A434F; padding-left: 18px; white-space: nowrap; }
@media (max-width: 760px) { .hw-bar-end { border-left: 0; padding-left: 0; } .hw-bar-text i { margin: 0 5px; } }

/* ── hero line ─────────────────────────────────────────── */
.hw-hero {
  margin-top: 18px; display: flex; align-items: center; gap: 12px; max-width: 62ch;
  padding: 11px 14px; background: var(--hw-wash); border: 1px solid var(--hw-line); border-left: 3px solid var(--hw);
  font-size: .92rem; line-height: 1.4; color: var(--ink-2);
}
.hw-hero .hw-pk { width: 26px; height: 26px; }
.hw-hero b { color: var(--ink); font-weight: 600; }
.hw-hero s { color: var(--steel); text-decoration-thickness: 2px; }
.hero-actions + .hw-hero + .hm-checks { margin-top: 14px; }

/* ── banner above the Weekly card ──────────────────────── */
.hw-banner {
  display: flex; align-items: center; gap: 22px; padding: 22px 26px; margin-bottom: 22px;
  background: var(--hw-wash); border: 1px solid var(--hw-line); border-left: 5px solid var(--hw);
}
.hw-banner > .hw-pk { width: 52px; height: 52px; }
.hw-banner-text { min-width: 0; }
.hw-kicker { font-family: 'IBM Plex Mono', monospace; font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--hw-deep); }
.hw-banner h3 { margin-top: 5px; font-size: clamp(1.3rem, 2.1vw, 1.75rem); color: var(--ink); }
.hw-banner p { margin-top: 7px; font-size: .96rem; color: var(--ink-2); max-width: 84ch; }
.hw-end {
  margin-left: auto; flex: none; align-self: flex-start; background: var(--ink); color: #fff;
  font-family: 'IBM Plex Mono', monospace; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 7px 11px; border-radius: 2px;
}
@media (max-width: 700px) { .hw-banner { flex-wrap: wrap; gap: 14px; padding: 18px; } .hw-end { margin-left: 0; align-self: auto; } .hw-banner > .hw-pk { width: 40px; height: 40px; } }

/* ── Weekly card: same card, price justified by the sale ─ */
.wk-tag-hw { background: var(--hw); border-color: var(--hw); color: var(--hw-ink); font-weight: 600; }
.wk-save-hw { color: #FFC37F; background: rgba(242,138,30,.14); border-color: rgba(242,138,30,.55); }

/* ── monthly cards: -10 % ──────────────────────────────── */
.hw-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; min-height: 60px; align-content: flex-start; }
html:not(.hw-on) .hw-tags { display: none; }
.hw-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--hw); color: var(--hw-ink); font-family: 'IBM Plex Mono', monospace; font-size: .62rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px 4px 7px; border-radius: 2px;
}
.hw-chip .hw-pk { width: 14px; height: 14px; }
.hw-tags .pricing-badge { position: static; display: inline-block; width: auto; margin: 0; }
/* outside the sale the Best-value badge goes back to where it was: above the name */
html:not(.hw-on) .pricing-card.is-pick .hw-tags { display: block; min-height: 0; margin: 0; }
html:not(.hw-on) .pricing-card.is-pick .hw-tags .pricing-badge { margin-bottom: 14px; }
.plan-price.hw-price { flex-wrap: wrap; row-gap: 2px; align-items: baseline; }
.hw-was {
  flex-basis: 100%; font-family: 'IBM Plex Mono', monospace; font-size: 1.05rem; font-weight: 500; letter-spacing: 0; line-height: 1.2;
  color: var(--steel); text-decoration: line-through; text-decoration-thickness: 2px; margin-bottom: 2px;
}
.hw-now { font: inherit; letter-spacing: inherit; }
.hw-save { margin-top: 10px; font-family: 'IBM Plex Mono', monospace; font-size: .7rem; font-weight: 600; letter-spacing: .04em; color: var(--hw-deep); }
.hw-save b { font-weight: 600; }
.pricing-card.is-pick { position: relative; }

/* ── the dashboard / plan page: the chip and the "was" price in a compact form ── */
.hw-line { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-family: 'IBM Plex Mono', monospace; font-size: .72rem; color: var(--hw-deep); font-weight: 600; }

/* ── signed-in surfaces ────────────────────────────────── */
.hw-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.hw-row .pricing-badge { margin: 0; }
.hw-bw { background: var(--hw); border-color: var(--hw); color: var(--hw-ink); font-weight: 600; }
.hw-wasline { display: block; font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--steel); text-decoration: line-through; text-decoration-thickness: 2px; margin-bottom: 2px; }
.hw-li { color: var(--hw-deep); font-weight: 600; }
.bw-tag + .bw-tag { margin-left: 6px; }
