/* ============================================
   BLACK FRIDAY PLAN GUIDE
   Long-form guide page. Reuses .hp tokens, buttons
   and .program-card chrome from styles.css.
   ============================================ */

.hp.bf-root {
  --hp-section-accent: var(--ec-lilac);
  background: var(--hp-bg);
  color: var(--hp-fg);
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.hp .bf-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* HERO ─────────────────────────────────────────── */
.hp .bf-hero { padding: 104px 0 72px; }
/* Hero and article share one centred column so their edges line up. */
.hp .bf-hero-inner,
.hp .bf-layout { max-width: 908px; }
.hp .bf-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1.5px solid var(--hp-section-accent);
  border-radius: 999px;
  color: var(--hp-section-accent);
  font-family: var(--ec-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hp .bf-hero-title {
  font-family: var(--ec-sans);
  font-weight: 900;
  font-size: calc(80px * var(--hp-typescale));
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 40px;
  text-wrap: balance;
}
.hp .bf-hero-lede {
  border-left: 3px solid var(--hp-section-accent);
  padding-left: 24px;
}
.hp .bf-hero-lede p {
  font-family: var(--ec-sans);
  font-weight: 500;
  font-size: calc(21px * var(--hp-typescale));
  line-height: 1.5;
  margin: 0 0 16px;
  opacity: 0.9;
  text-wrap: pretty;
}
.hp .bf-hero-lede p:last-child { margin-bottom: 0; }

/* LAYOUT ─────────────────────────────────────── */
.hp .bf-layout { padding-bottom: 112px; }
.hp .bf-article { min-width: 0; }

/* BODY COPY ──────────────────────────────────── */
.hp .bf-p,
.hp .bf-list li {
  font-family: var(--ec-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,0.88);
  text-wrap: pretty;
}
.hp .bf-p { margin: 0 0 22px; }
.hp .bf-intro { padding-bottom: 24px; }
.hp .bf-list {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: bf-li;
}
.hp .bf-list li {
  position: relative;
  padding-left: 32px;
}
.hp .bf-list li::before {
  content: '★';
  position: absolute;
  left: 4px;
  top: 0.1em;
  color: var(--step-accent, var(--hp-section-accent));
  font-size: 14px;
}
.hp .bf-list--num li { counter-increment: bf-li; }
.hp .bf-list--num li::before {
  content: counter(bf-li);
  top: 0.25em;
  left: 0;
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--step-accent, var(--hp-section-accent));
  color: #000;
  font-family: var(--ec-mono);
  font-weight: 700;
  font-size: 12px;
}
.hp .bf-note {
  margin: 8px 0 26px;
  padding: 20px 24px;
  border: 1.5px dashed var(--step-accent, var(--hp-section-accent));
  border-radius: 14px;
  font-family: var(--ec-sans);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  color: #fff;
}

/* STEP ─────────────────────────────────────────── */
.hp .bf-step {
  padding-top: 88px;
  scroll-margin-top: 8px;
}
.hp .bf-step-head {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1.5px solid var(--hp-line);
}
.hp .bf-step-num {
  font-family: var(--ec-sans);
  font-weight: 900;
  font-size: 96px;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: var(--step-accent);
  flex: 0 0 auto;
}
.hp .bf-step-headings { min-width: 0; }
.hp .bf-step-eyebrow {
  font-family: var(--ec-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--step-accent);
  margin-bottom: 8px;
}
.hp .bf-step-title,
.hp .bf-next-title {
  font-family: var(--ec-sans);
  font-weight: 900;
  font-size: calc(40px * var(--hp-typescale));
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}
.hp .bf-anchor {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 12px;
  color: inherit;
  opacity: 0.3;
  transition: opacity .2s var(--ec-ease), color .2s var(--ec-ease);
}
.hp .bf-anchor:hover,
.hp .bf-anchor:focus-visible { opacity: 1; color: var(--step-accent, var(--hp-section-accent)); }

/* STAT CALLOUTS ─────────────────────────────────── */
.hp .bf-stats {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 30px;
}
.hp .bf-stats--3 { --cols: 3; }
.hp .bf-stat {
  padding: 24px 22px 22px;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.10);
  border-top: 3px solid var(--stat-accent);
  border-radius: 14px;
}
.hp .bf-stat-n {
  font-family: var(--ec-sans);
  font-weight: 900;
  font-size: calc(56px * var(--hp-typescale));
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--stat-accent);
  margin-bottom: 10px;
}
.hp .bf-stat-l {
  font-family: var(--ec-sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255,255,255,0.8);
}

/* STEP 2: MARGIN GRID ────────────────────────────── */
.hp .bf-margin {
  margin: 8px 0 30px;
  border: 1.5px solid var(--hp-line);
  border-radius: 14px;
  overflow: hidden;
  font-family: var(--ec-sans);
}
.hp .bf-margin-row {
  display: grid;
  grid-template-columns: 1.05fr repeat(3, minmax(0, 1fr));
}
.hp .bf-margin-row + .bf-margin-row { border-top: 1px solid var(--hp-line); }
.hp .bf-margin-row > div {
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}
.hp .bf-margin-row > div + div { border-left: 1px solid var(--hp-line); }
.hp .bf-margin-row--head > div {
  background: #0a0a0a;
  font-family: var(--ec-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.hp .bf-margin-margin {
  font-weight: 900 !important;
  font-size: 22px !important;
  color: var(--step-accent);
}
.hp .bf-margin-cell.is-hot {
  background: var(--step-accent);
  color: #000;
  font-weight: 800;
  box-shadow: inset 0 0 0 2px #000;
}
.hp .bf-margin-star { font-size: 14px; }

/* STEP 3: VALUE / BUNDLE / DROP ─────────────────── */
.hp .bf-levers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 30px;
}
.hp .bf-lever { padding: 26px 22px 24px; gap: 12px; }
.hp .bf-lever:hover { transform: translateY(-4px); }
.hp .bf-lever-lead {
  margin: 0;
  font-family: var(--ec-sans);
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--program-accent);
}
.hp .bf-lever-lead strong { font-weight: inherit; }
.hp .bf-lever-text {
  margin: 0;
  font-family: var(--ec-sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.86);
}

/* STEP 3: BRANDS VS SHOPPERS ─────────────────────── */
.hp .bf-compare {
  margin: 8px 0 30px;
  border: 1.5px solid var(--hp-line);
  border-radius: 14px;
  overflow: hidden;
  font-family: var(--ec-sans);
}
.hp .bf-compare-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  align-items: center;
}
.hp .bf-compare-row + .bf-compare-row { border-top: 1px solid var(--hp-line); }
.hp .bf-compare-row > div { padding: 16px 18px; min-width: 0; }
.hp .bf-compare-row--head > div {
  background: #0a0a0a;
  font-family: var(--ec-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}
.hp .bf-compare-h--1 { color: var(--ec-lilac) !important; }
.hp .bf-compare-h--2 { color: var(--ec-aqua) !important; }
.hp .bf-compare-offer {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
}
.hp .bf-compare-metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hp .bf-compare-label { display: none; }
.hp .bf-compare-value {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
}
.hp .bf-compare-bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.hp .bf-compare-bar > span { display: block; height: 100%; border-radius: inherit; }
.hp .bf-compare-metric--brands .bf-compare-bar > span { background: var(--ec-lilac); }
.hp .bf-compare-metric--shoppers .bf-compare-bar > span { background: var(--ec-aqua); }
.hp .bf-compare-row.is-hot {
  background: color-mix(in oklab, var(--ec-lime) 14%, #000);
  box-shadow: inset 4px 0 0 var(--ec-lime);
}
.hp .bf-compare-row.is-hot .bf-compare-offer { color: var(--ec-lime); }
.hp .bf-compare-row.is-hot .bf-compare-metric--shoppers .bf-compare-value {
  color: var(--ec-lime);
  font-weight: 900;
  font-size: 22px;
}
.hp .bf-compare-row.is-hot .bf-compare-metric--shoppers .bf-compare-bar > span { background: var(--ec-lime); }
.hp .bf-compare-star { color: var(--ec-lime); margin-right: 6px; }

/* STEP 4: LAUNCH CHART ───────────────────────────── */
.hp .bf-launch {
  margin: 8px 0 30px;
  padding: 24px 24px 20px;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
}
.hp .bf-launch-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  font-family: var(--ec-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.hp .bf-launch-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.hp .bf-launch-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 64px;
  gap: 16px;
  align-items: center;
  font-family: var(--ec-sans);
}
.hp .bf-launch-when { font-weight: 600; font-size: 15px; line-height: 1.3; }
.hp .bf-launch-track {
  height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.hp .bf-launch-bar {
  display: block;
  height: 100%;
  width: var(--bar);
  border-radius: 6px;
  background: var(--step-accent);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1s var(--ec-ease-out);
  transition-delay: calc(var(--i) * 90ms + 200ms);
}
.hp .bf-launch.is-in .bf-launch-bar { transform: scaleX(1); }
.hp .bf-launch-share {
  font-weight: 900;
  font-size: 20px;
  text-align: right;
  color: var(--step-accent);
}
@media (prefers-reduced-motion: reduce) {
  .hp .bf-launch-bar { transform: none; transition: none; }
}

/* STEP 5: TIMELINE ───────────────────────────────── */
.hp .bf-timeline {
  list-style: none;
  margin: 8px 0 30px;
  padding: 0 0 0 36px;
  position: relative;
}
.hp .bf-timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, var(--ec-lime), var(--ec-cherry), var(--ec-aqua), var(--ec-violet));
  border-radius: 2px;
}
.hp .bf-tl-item { position: relative; padding-bottom: 28px; }
.hp .bf-tl-item:last-child { padding-bottom: 0; }
.hp .bf-tl-dot {
  position: absolute;
  left: -36px;
  top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--tl-accent);
  border: 3px solid #000;
  box-shadow: 0 0 0 1.5px var(--tl-accent);
}
.hp .bf-tl-when {
  font-family: var(--ec-sans);
  font-weight: 900;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--tl-accent);
  margin-bottom: 12px;
}
.hp .bf-tl-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 20px 22px;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
}
.hp .bf-tl-label {
  display: block;
  font-family: var(--ec-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tl-accent);
  margin-bottom: 6px;
}
.hp .bf-tl-field p {
  margin: 0;
  font-family: var(--ec-sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,0.88);
}

/* STEP 6: CHECKLIST ──────────────────────────────── */
.hp .bf-checklist {
  margin: 8px 0 30px;
  padding: 22px 22px 14px;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
}
.hp .bf-checklist-count {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  font-family: var(--ec-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--step-accent);
}
.hp .bf-checklist-meter {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.hp .bf-checklist-meter > span {
  display: block;
  height: 100%;
  background: var(--step-accent);
  transition: width .3s var(--ec-ease);
}
.hp .bf-checklist ul { list-style: none; margin: 0; padding: 0; }
.hp .bf-checklist li + li { border-top: 1px solid var(--hp-line); }
.hp .bf-checklist label {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  cursor: pointer;
}
.hp .bf-checklist input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.hp .bf-check-box {
  width: 26px; height: 26px;
  border-radius: 7px;
  border: 2px solid var(--step-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: background .15s var(--ec-ease), color .15s var(--ec-ease);
}
.hp .bf-checklist input:focus-visible + .bf-check-box { outline: 2px solid #fff; outline-offset: 2px; }
.hp .bf-checklist label.is-done .bf-check-box { background: var(--step-accent); color: #000; }
.hp .bf-check-text {
  font-family: var(--ec-sans);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  transition: opacity .2s var(--ec-ease);
}
.hp .bf-checklist label.is-done .bf-check-text { opacity: 0.5; text-decoration: line-through; text-decoration-color: var(--step-accent); }

/* YOUR NEXT MOVE ─────────────────────────────────── */
.hp .bf-next { padding-top: 96px; scroll-margin-top: 8px; }
.hp .bf-next-card { padding: 44px 44px 40px; align-items: flex-start; }
.hp .bf-next-card:hover { transform: none; box-shadow: none; }
.hp .bf-next-title { font-size: calc(56px * var(--hp-typescale)); }
.hp .bf-next-p {
  margin: 0;
  font-family: var(--ec-sans);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  max-width: 620px;
  text-wrap: pretty;
}
.hp .bf-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}
.hp .bf-next-actions .btn { white-space: normal; }

.hp .bf-source {
  margin: 40px 0 0;
  font-family: var(--ec-sans);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.55);
}

/* TABLET ───────────────────────────────────────── */
@container hp (min-width: 761px) and (max-width: 1040px) {
  .hp .bf-hero-title { font-size: calc(72px * var(--hp-typescale)); }
}

/* MOBILE ───────────────────────────────────────── */
@container hp (max-width: 760px) {
  .hp .bf-hero { padding: 48px 0 40px; }
  .hp .bf-hero-pill { font-size: 11px; padding: 7px 14px; margin-bottom: 20px; }
  .hp .bf-hero-title { font-size: calc(44px * var(--hp-typescale)); margin-bottom: 28px; letter-spacing: -0.025em; }
  .hp .bf-hero-lede { padding-left: 16px; }
  .hp .bf-hero-lede p { font-size: 17px; }

  .hp .bf-layout { padding-bottom: 64px; }

  .hp .bf-p, .hp .bf-list li { font-size: 17px; }
  .hp .bf-note { font-size: 16px; padding: 16px 18px; }

  .hp .bf-step { padding-top: 64px; }
  .hp .bf-step-head { gap: 14px; padding-bottom: 16px; margin-bottom: 22px; }
  .hp .bf-step-num { font-size: 64px; }
  .hp .bf-step-title { font-size: calc(28px * var(--hp-typescale)); }
  .hp .bf-anchor { margin-left: 8px; }

  .hp .bf-stats, .hp .bf-stats--3 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hp .bf-stat { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 18px; }
  .hp .bf-stat-n { font-size: 40px; margin: 0; }

  .hp .bf-margin-row { grid-template-columns: 0.8fr repeat(3, minmax(0, 1fr)); }
  .hp .bf-margin-row > div { padding: 12px 8px; font-size: 13px; }
  .hp .bf-margin-row--head > div { font-size: 9px; letter-spacing: 0.08em; }
  .hp .bf-margin-margin { font-size: 17px !important; }
  .hp .bf-margin-star { display: none; }

  .hp .bf-levers { grid-template-columns: minmax(0, 1fr); gap: 12px; }

  .hp .bf-compare-row--head { display: none; }
  .hp .bf-compare-row { grid-template-columns: 1fr 1fr; }
  .hp .bf-compare-row > div { padding: 12px 16px; }
  .hp .bf-compare-offer { grid-column: 1 / -1; padding-bottom: 0 !important; }
  .hp .bf-compare-label {
    display: block;
    font-family: var(--ec-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.3;
  }
  .hp .bf-compare-metric--brands .bf-compare-label { color: var(--ec-lilac); }
  .hp .bf-compare-metric--shoppers .bf-compare-label { color: var(--ec-aqua); }
  .hp .bf-compare-value { font-size: 14px; }

  .hp .bf-launch { padding: 18px 16px 16px; }
  .hp .bf-launch-head { flex-direction: column; gap: 4px; }
  .hp .bf-launch-row { grid-template-columns: minmax(0, 1fr) 56px; gap: 6px 12px; }
  .hp .bf-launch-when { grid-column: 1 / -1; font-size: 14px; }
  .hp .bf-launch-track { height: 20px; }
  .hp .bf-launch-share { font-size: 17px; }

  .hp .bf-timeline { padding-left: 30px; }
  .hp .bf-timeline::before { left: 7px; }
  .hp .bf-tl-dot { left: -30px; width: 18px; height: 18px; }
  .hp .bf-tl-when { font-size: 20px; }
  .hp .bf-tl-card { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; }

  .hp .bf-checklist { padding: 18px 16px 8px; }
  .hp .bf-check-text { font-size: 16px; }

  .hp .bf-next { padding-top: 64px; }
  .hp .bf-next-card { padding: 30px 22px 26px; }
  .hp .bf-next-title { font-size: calc(38px * var(--hp-typescale)); }
  .hp .bf-next-p { font-size: 17px; }
  .hp .bf-next-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hp .bf-next-actions .btn { justify-content: center; text-align: center; }
}
