/* Black Friday landing page (Hearsay HEA-51). Builds on home.css: same tokens, buttons,
   nav, aurora, ask/setup/faq/close sections. Only what is new for this page lives here. */

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* Hero */
.bf-hero { padding-bottom: 120px; }
.bf-hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.bf-hero .lede { margin-inline: auto; max-width: 58ch; }
.bf-hero .cta-row { justify-content: center; }
.bf-title { font-size: clamp(48px, 6.6vw, 96px); }
.bf-title .line { white-space: normal; }
.bf-count { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); font-size: 14px; color: var(--sub); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-variant-numeric: tabular-nums; }
.bf-count b { color: var(--ink); font-weight: 500; }
.bf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }

/* Live board */
.board { width: 100%; margin-top: 34px; border-radius: var(--r-surface); background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(20, 21, 28, 0.04), 0 40px 80px -40px rgba(20, 21, 28, 0.28); overflow: hidden; text-align: left; }
.board-top { display: flex; align-items: center; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.board-url { flex: 1; min-width: 0; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.board-clock { font-size: 13px; color: var(--sub); padding: 4px 10px; border-radius: var(--r-ctl); background: var(--chip); }
.board-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }

.bpage { position: relative; padding: 18px 22px 22px; overflow: hidden; background: #fff; min-height: 460px; }
.bp-bar { display: flex; gap: 18px; align-items: center; font-size: 13px; color: var(--sub); }
.bp-bar b { color: var(--ink); letter-spacing: 0.08em; font-size: 12px; margin-right: 6px; }
.bp-cart { margin-left: auto; }
.bp-hero { margin-top: 16px; border-radius: 10px; padding: 26px 26px 22px; background: #14151c; color: #fff; position: relative; overflow: hidden; }
.bp-hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 0, 85, 0.5), transparent); }
.bp-kicker { font-size: 12px; color: #c6c8d3; }
.bp-head { margin-top: 6px; font-family: var(--display); font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.035em; line-height: 1.05; font-weight: 500; }
.bp-row { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.bp-shop { height: 38px; padding: 0 16px; border-radius: 6px; background: #fff; color: #14151c; display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; }
.bp-code { height: 38px; padding: 0 12px; border-radius: 6px; border: 1px dashed rgba(255, 255, 255, 0.4); display: inline-flex; align-items: center; gap: 10px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.bp-code i { font-style: normal; font-family: Inter, system-ui, sans-serif; font-size: 12px; color: #ff9dbb; }
.bp-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bp-card img, .bp-ph { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; background: var(--tint); }
.bp-ph-a { background: linear-gradient(140deg, #ece5dc, #d8cdbf); }
.bp-ph-b { background: linear-gradient(140deg, #dfe3ea, #c7cdd8); }
.bp-card span { display: block; margin-top: 6px; font-size: 12px; color: var(--sub); }
.bp-card s { color: var(--mute); margin-right: 2px; }
.bp-ship { margin-top: 12px; font-size: 12px; color: var(--mute); }
.bp-heat { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.82; filter: blur(5px); }
.bp-tap { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; pointer-events: none; }
.bp-tap.go { animation: bfTap 0.6s var(--ease); }
@keyframes bfTap { 0% { transform: scale(0.4); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

.bside { border-left: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; gap: 14px; background: #fcfcfd; }
.bs-stat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bs-stat div { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: #fff; }
.bs-stat span { display: block; font-size: 12px; color: var(--mute); }
.bs-stat b { display: block; margin-top: 4px; font-size: 24px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bs-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--mute); padding: 0 2px; }
.bs-rank { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 200px; }
.bs-rank li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: var(--r-ctl); background: #fff; border: 1px solid var(--line); font-size: 13px; transition: transform 0.5s var(--ease), border-color 0.3s, background 0.3s; }
.bs-rank li .n { font-size: 11px; color: var(--mute); }
.bs-rank li .bar { position: relative; min-width: 0; }
.bs-rank li .bar span { position: relative; z-index: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.bs-rank li .bar i { position: absolute; left: -4px; top: -4px; bottom: -4px; border-radius: 4px; background: var(--accent-subtle); width: var(--w, 0%); transition: width 0.5s var(--ease); }
.bs-rank li b { font-size: 12px; font-variant-numeric: tabular-nums; font-family: ui-monospace, Menlo, monospace; font-weight: 500; }
.bs-rank li.hot { border-color: #ffb3cb; background: #fff7fa; }
.bs-rank li em { font-style: normal; font-size: 11px; color: var(--accent-deep); margin-left: 6px; }
.bs-kept { margin-top: auto; padding: 12px 14px; border-radius: var(--r-ctl); background: #14151c; color: #fff; display: flex; flex-direction: column; gap: 4px; font-size: 13px; opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.5s var(--ease); }
.bs-kept span { color: #c6c8d3; }
.bs-kept.show { opacity: 1; transform: none; }

/* Three moments */
.bf-moments { padding: 150px 0 140px; }
.bf-moments .lede { margin-top: 22px; }
.moments { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.moment { border: 1px solid var(--line); border-radius: var(--r-surface); padding: 26px; display: flex; flex-direction: column; gap: 12px; background: #fff; transition: transform 0.4s var(--ease), box-shadow 0.4s; }
@media (hover: hover) and (pointer: fine) { .moment:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -28px rgba(20, 21, 28, 0.3); } }
.moment:nth-child(2) { transition-delay: 0.08s; }
.moment:nth-child(3) { transition-delay: 0.16s; }
.m-when { font-size: 13px; color: var(--accent-deep); font-weight: 500; }
.moment h3 { font-family: var(--display); font-size: 24px; letter-spacing: -0.025em; font-weight: 500; line-height: 1.15; }
.moment > p:not(.m-when) { color: var(--sub); font-size: 15px; }
.m-art { margin-top: auto; padding: 16px; border-radius: var(--r-ctl); background: var(--tint); font-size: 13px; display: flex; flex-direction: column; gap: 10px; min-height: 150px; }
.m-exit > div { display: grid; grid-template-columns: 96px 1fr 40px; gap: 10px; align-items: center; color: var(--sub); }
.m-exit .eb { height: 10px; border-radius: 3px; background: #e3e3ea; overflow: hidden; }
.m-exit .eb i { display: block; height: 100%; width: 0; border-radius: 3px; background: #8a8ea0; transition: width 1.2s 0.4s var(--ease); }
.m-exit .eb.hot i { background: var(--accent); }
.moment.in .m-exit .eb i { width: var(--w); }
.m-exit p { font-size: 11px; color: var(--mute); }
.m-feed p { display: flex; gap: 10px; align-items: center; color: var(--sub); opacity: 0; transform: translateX(-6px); transition: opacity 0.4s, transform 0.4s; }
.m-feed p .mono { font-size: 11px; color: var(--mute); }
.m-feed p i { width: 8px; height: 8px; border-radius: 50%; background: #1a9c5a; flex: none; }
.m-feed p i.hot { background: var(--accent); }
.m-feed p.show { opacity: 1; transform: none; }
.m-brief .b-line { padding-left: 12px; border-left: 2px solid #8a8ea0; color: var(--sub); }
.m-brief .b-line.hot { border-color: var(--accent); }
.m-brief .b-line b { color: var(--ink); }
.m-brief .b-skip { font-size: 12px; color: var(--mute); }

/* Devices */
.bf-devices { padding: 140px 0; }
.dev-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.dev-grid .lede { margin-top: 22px; }
.dev-tabs { position: relative; margin-top: 32px; display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-ctl); background: #fff; border: 1px solid var(--line); }
.dev-tabs button { position: relative; z-index: 1; height: 34px; padding: 0 14px; border: 0; border-radius: 6px; background: transparent; font-size: 14px; font-weight: 500; color: var(--sub); transition: color 0.2s; }
.dev-tabs button[aria-selected="true"] { color: #fff; }
.dev-ink { position: absolute; z-index: 0; top: 4px; height: 34px; left: var(--l, 4px); width: var(--w, 80px); border-radius: 6px; background: var(--ink); transition: left 0.35s var(--ease), width 0.35s var(--ease); }
#dev-note { margin-top: 16px; min-height: 44px; }
.dev-stage { position: relative; height: 460px; display: flex; align-items: center; justify-content: center; }
.dv { position: absolute; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); box-shadow: 0 30px 60px -30px rgba(20, 21, 28, 0.35); }
.dv-desktop { width: 100%; height: 340px; border-radius: 10px; padding: 16px; }
.dv-mobile { width: 230px; height: 440px; border-radius: 28px; padding: 16px 14px; border: 6px solid #14151c; }
.dev-stage[data-view="desktop"] .dv-mobile, .dev-stage:not([data-view="desktop"]) .dv-desktop { opacity: 0; transform: scale(0.94); pointer-events: none; }
.dv-bar { display: flex; gap: 14px; font-size: 12px; color: var(--sub); align-items: center; }
.dv-bar b { color: var(--ink); font-size: 11px; letter-spacing: 0.08em; }
.dv-mobile .dv-bar { justify-content: space-between; }
.dv-hero { margin-top: 12px; border-radius: 8px; background: #14151c; color: #fff; padding: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dv-hero p { width: 100%; font-family: var(--display); font-size: 22px; letter-spacing: -0.03em; }
.dv-shop { height: 30px; padding: 0 12px; border-radius: 6px; background: #fff; color: #14151c; font-size: 12px; display: inline-flex; align-items: center; }
.dv-code { height: 30px; padding: 0 10px; border-radius: 6px; border: 1px dashed rgba(255, 255, 255, 0.4); font-size: 11px; display: inline-flex; align-items: center; font-family: ui-monospace, Menlo, monospace; }
.dv-mobile .dv-hero p { font-size: 18px; }
.dv-mobile .dv-shop, .dv-mobile .dv-code { width: 100%; justify-content: center; }
.dv-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dv-mobile .dv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dv-grid i { aspect-ratio: 1 / 1; border-radius: 6px; background: var(--tint); }
.dv-menu { position: absolute; inset: 52px 0 0; background: #fff; padding: 18px; display: flex; flex-direction: column; gap: 16px; font-size: 16px; transform: translateX(-100%); transition: transform 0.5s var(--ease); }
.dev-stage[data-view="menu"] .dv-menu { transform: none; }
.blob { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 30, 30, var(--o)), rgba(255, 140, 0, calc(var(--o) * 0.6)) 45%, rgba(255, 220, 0, calc(var(--o) * 0.25)) 70%, transparent); mix-blend-mode: multiply; transition: opacity 0.5s, transform 0.6s var(--ease); transform: scale(0.6); opacity: 0; pointer-events: none; }
.dev-stage.in .dv-desktop .blob, .dev-stage[data-view="mobile"] .b-mobile, .dev-stage[data-view="menu"] .b-menu { opacity: 1; transform: none; }
.dev-stage[data-view="menu"] .b-mobile { opacity: 0; }
.dv-flag { position: absolute; left: 50%; top: 46%; transform: translateX(-50%); font-size: 11px; background: #14151c; color: #fff; border-radius: 6px; padding: 4px 8px; white-space: nowrap; opacity: 0; transition: opacity 0.4s 0.3s; }
.dev-stage[data-view="mobile"] .dv-flag { opacity: 1; transform: translateX(-50%); }

/* Ask */
.convo .q:empty { min-height: 48px; }
.convo .q.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: #fff; animation: bfBlink 1s steps(1) infinite; }
@keyframes bfBlink { 50% { opacity: 0; } }

/* Traffic quality */
.bf-traffic { padding: 150px 0; }
.bf-traffic .split { align-items: center; }
.bf-traffic .lede { margin-top: 22px; }
.tq { border: 1px solid var(--line); border-radius: var(--r-surface); padding: 22px; display: flex; flex-direction: column; gap: 14px; background: #fff; }
.tq-head, .tq-row { display: grid; grid-template-columns: 96px repeat(3, minmax(0, 1fr)); gap: 14px; align-items: center; }
.tq-head { font-size: 12px; color: var(--mute); }
.tq-row b { font-size: 14px; }
.tq-bar { position: relative; height: 30px; border-radius: 6px; background: var(--tint); overflow: hidden; display: flex; align-items: center; }
.tq-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: #ffd3e1; transition: width 1.1s var(--ease); }
.tq-bar.warn i { background: #ffe2b8; }
.tq-bar em { position: relative; color: var(--ink); font-style: normal; font-size: 12px; font-family: ui-monospace, Menlo, monospace; padding-left: 10px; }
.tq.in .tq-bar i { width: var(--w); }
.tq.in .tq-row:nth-child(3) .tq-bar i { transition-delay: 0.15s; }
.tq.in .tq-row:nth-child(4) .tq-bar i { transition-delay: 0.3s; }

/* GhostClick pair */
.bf-pair { padding: 150px 0; position: relative; overflow: hidden; }
.pair-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.pair-grid .lede { margin-top: 22px; }
.pair-grid .cta-row { margin-top: 32px; }
.pair-steps { position: relative; display: flex; flex-direction: column; gap: 10px; }
.pair-steps::before { content: ""; position: absolute; left: 13px; top: 18px; bottom: 18px; width: 1px; background: var(--line-strong); }
.pair-steps li { position: relative; display: grid; grid-template-columns: 28px 1fr; column-gap: 18px; padding: 14px 0; }
.pair-steps li::before { content: ""; grid-row: span 3; width: 11px; height: 11px; margin: 4px 0 0 8px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.pair-steps li:nth-child(-n+2)::before { border-color: #ea580c; }
.pair-steps .mono { font-size: 12px; color: var(--mute); }
.pair-steps b { font-size: 18px; margin-top: 2px; }
.pair-steps span:last-child { color: var(--sub); font-size: 15px; }

/* Setup */
.bf .setup .section-title { max-width: 12ch; }

@media (max-width: 960px) {
  .board-body, .moments, .dev-grid, .pair-grid { grid-template-columns: 1fr; }
  .bside { border-left: 0; border-top: 1px solid var(--line); }
  .dev-grid, .pair-grid { gap: 48px; }
}
@media (max-width: 600px) {
  .bf-moments, .bf-devices, .bf-traffic, .bf-pair { padding: 96px 0; }
  .bpage { min-height: 0; padding: 14px; }
  .bp-bar span:not(.bp-cart) { display: none; }
  .bp-hero { padding: 18px; }
  .board-url { display: none; }
  .tq-head, .tq-row { grid-template-columns: 74px repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tq-head { font-size: 11px; }
  .dev-tabs button { padding: 0 10px; font-size: 13px; }
  .dv-desktop { height: 300px; }
  .dev-stage { height: 460px; }
}
@media (prefers-reduced-motion: reduce) {
  .m-feed p { opacity: 1; transform: none; }
  .bs-kept { opacity: 1; transform: none; }
}
