/* Whitelist = a guided session with the agent in a terminal window. Animations: transform/opacity only. */
.hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: center; padding: 34px 0 22px; }
@media (max-width: 700px) { .hero { grid-template-columns: 1fr; text-align: center; gap: 12px; padding-top: 22px; } }
.coin { position: relative; width: 140px; aspect-ratio: 1; margin-inline: auto; }
.coin img { display: block; width: 100%; border-radius: 50%; box-shadow: 0 0 0 1px var(--line2), 0 0 60px -6px rgba(0, 255, 65, .4); }
.cg { position: absolute; inset: 0; border-radius: 50%; background: url('/media/logo.png') center / cover; clip-path: inset(40% 0 44% 0); animation: cgA 3s steps(1) infinite; pointer-events: none; }
@keyframes cgA { 0%, 80%, 100% { transform: none; } 82% { transform: translateX(-9px); } 87% { transform: translateX(6px); } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 10px; border: 1px solid var(--line2); border-radius: 6px; font: 700 12px/1 var(--f-mono); letter-spacing: .08em; color: var(--accent); }
h1 { margin: 12px 0 0; font: 900 clamp(28px, 5vw, 48px)/1.08 var(--f-display); letter-spacing: -.03em; }
h1 em { font-style: normal; color: var(--accent); }
.lede { color: var(--text); opacity: .85; max-width: 640px; font-size: 15.5px; margin: 12px 0 0; }
@media (max-width: 700px) { .lede { margin-inline: auto; } }
.lede b { color: var(--accent); }

.session { max-width: 760px; margin: 6px auto 0; }
.boot p { margin: 0 0 4px; font-size: 14px; }
.boot { padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px dashed var(--line); }

.flow { margin: 0; }
.progrow { display: flex; align-items: center; gap: 12px; }
.prog-label { flex: none; margin: 0; font: 700 12.5px/1 var(--f-mono); color: var(--accent); letter-spacing: .04em; }
.prog-label::before { content: '> '; color: var(--mute); }
/* segmented bar like [■■■■□□□□] */
.prog { flex: 1; height: 12px; border: 1px solid var(--line2); border-radius: 2px; padding: 2px; overflow: hidden; }
.prog i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 11px); transform-origin: left; transform: scaleX(.04); transition: transform .6s var(--ease); }
.done-chips { list-style: none; display: grid; gap: 2px; padding: 0; margin: 12px 0 10px; font-size: 13.5px; color: var(--mute); }
.done-chips li::first-letter { color: var(--accent); }
.done-chips li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.done-chips li.last { color: var(--text); animation: chipIn .4s var(--ease) both; }
@keyframes chipIn { from { opacity: 0; transform: translateX(-8px); } }

.stepcard { position: relative; padding: 4px 0 0; }
.stepcard .act, .stepcard .qc-img, .stepcard .qc-steps { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.stepcard.typing .act, .stepcard.typing .qc-img, .stepcard.typing .qc-steps { opacity: 0; transform: translateY(6px); pointer-events: none; }
.stepcard.nope { animation: nope .35s; }
@keyframes lnIn { from { opacity: 0; transform: translateY(5px); } }
@keyframes nope { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.ln { margin: 0 0 6px; font-size: 15px; }
.ln.big { font: 700 clamp(19px, 3.4vw, 24px)/1.3 var(--f-display); color: var(--text); margin: 4px 0 8px; }
.kick { display: inline-block; margin: 0; color: var(--mute); font: 400 13px/1 var(--f-mono); }
.kick::before { content: '# '; }
.stepcard h3 { margin: 6px 0 6px; font: 700 clamp(19px, 3.4vw, 24px)/1.3 var(--f-display); }
.line { margin: 0 0 16px; color: var(--mute); }
.act { margin-top: 14px; }
.field { width: 100%; padding: 14px 14px; border-radius: 6px; border: 1px solid var(--line2); background: #000; color: var(--text); font: 400 16px/1.2 var(--f-mono); caret-color: var(--accent); outline: none; }
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 255, 65, .15); }
.field-row { display: flex; gap: 10px; align-items: center; }
.field-row .at { font: 700 15px/1 var(--f-display); color: var(--accent2); white-space: nowrap; }
.field-col { display: grid; gap: 12px; }
.prompt { display: block; margin: 0 0 8px; color: var(--accent2); font-size: 13.5px; font-weight: 700; }
@media (max-width: 520px) { .field-row { flex-wrap: wrap; } .field-row .field { flex: 1; } .field-row .btn { width: 100%; } }
.err { min-height: 1.2em; margin: 10px 0 0; color: var(--warn); font-size: 14px; }
.err:not(:empty)::before { content: 'agent> '; color: var(--warn); font-weight: 700; }
.go { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.02); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.board { margin: 0; animation: lnIn .5s var(--ease) both; }
.bd-top { display: flex; gap: 14px; align-items: center; }
.bd-top img { border-radius: 50%; border: 1px solid var(--line2); }
.bd-top .kick::before { content: 'user: '; }
.bd-top h3 { margin: 6px 0 0; font: 900 26px/1 var(--f-display); color: var(--accent); }
.bd-st { display: flex; gap: 8px; align-items: center; margin: 18px 0 14px; font-weight: 700; }
.bd-st::before { content: 'agent>'; color: var(--accent); flex: none; }
.bd-st.ok { color: var(--ok); } .bd-st.warn { color: var(--warn); }
.bd-act { display: flex; flex-wrap: wrap; gap: 8px; }
.bd-note { margin: 16px 0 0; color: var(--mute); font-size: 13px; }
.bd-note::before { content: '// '; }

.live { margin-top: 60px; }
.live-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.live-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 22px/1 var(--f-display); }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 18px 0; border: 1px solid var(--line2); border-radius: var(--r); background: var(--card); overflow: hidden; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stats div { padding: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-right: -1px; margin-bottom: -1px; }
.stats dt { color: var(--mute); font: 400 11.5px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; }
.stats dd { margin: 8px 0 0; font: 700 22px/1 var(--f-display); color: var(--accent); }
.feed { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(0, 0, 0, .55); }
.feed li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 6px; font-size: 13.5px; }
.feed li:nth-child(odd) { background: rgba(0, 255, 65, .03); }
.feed li.empty { display: block; color: var(--mute); text-align: center; padding: 22px; }
.feed li.empty::before { content: '$ tail -f whitelist.log  →  '; color: var(--accent); }
.feed img, .feed .pf { width: 34px; height: 34px; border-radius: 6px; }
.feed .pf { display: grid; place-items: center; background: var(--bg2); color: var(--accent); font-weight: 700; }
.who { display: grid; min-width: 0; } .who b, .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who span { color: var(--mute); font-size: 12px; }
.what { color: var(--mute); font-size: 12.5px; white-space: nowrap; }
.tx { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 10px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); font: 700 12px/1 var(--f-body); text-decoration: none; white-space: nowrap; }
.fs { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 10px; border-radius: 4px; border: 1px solid var(--line2); color: var(--mute); font: 400 12px/1 var(--f-mono); white-space: nowrap; }
@media (max-width: 560px) { .feed li { grid-template-columns: 32px minmax(0, 1fr) auto; } .what { display: none; } }
.feed-more { margin: 14px auto 0; display: flex; }

.popwrap { position: fixed; left: 50%; bottom: 18px; z-index: 50; display: grid; gap: 8px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); pointer-events: none; }
.livepop { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 6px; background: #000; border: 1px solid var(--accent); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 0 30px rgba(0, 255, 65, .25); animation: popIn .45s var(--spring) both; }
.livepop.out { animation: popOut .4s ease-in forwards; }
.lp-dot { width: 9px; height: 9px; border-radius: 1px; background: var(--accent); flex: none; animation: blink 1s steps(2, jump-none) infinite; }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.95); } }
@keyframes popOut { to { opacity: 0; transform: translateY(10px); } }

.sentfx { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(0, 4, 1, .92); animation: fadeIn .3s both; }
.sentfx[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.sf-in { position: relative; z-index: 2; text-align: center; }
.sf-badge { width: 110px; height: 110px; margin: 0 auto; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 900 60px/1 var(--f-display); box-shadow: 0 0 60px rgba(0, 255, 65, .5); animation: pop 1s var(--spring) both; }
@keyframes pop { from { transform: scale(0) rotate(-30deg); } }
.sentfx h2 { margin: 22px 0 0; font: 900 clamp(40px, 9vw, 88px)/1 var(--f-display); color: var(--accent); animation: rise .7s .3s var(--spring) both; }
.sf-amt { margin: 10px 0 0; font: 700 22px/1.2 var(--f-display); animation: rise .7s .45s var(--spring) both; }
.sf-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; animation: rise .7s .6s var(--spring) both; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
.sf-bits { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sf-bits i { position: absolute; left: 50%; top: 45%; color: var(--accent); font: 700 22px/1 var(--f-mono); font-style: normal; opacity: 0;
  animation: burst 1.6s var(--d) cubic-bezier(.2, .7, .3, 1) forwards; }
.sf-bits i::before { content: '1'; } .sf-bits i:nth-child(odd)::before { content: '0'; }
@keyframes burst { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(calc(var(--x) * 42vw), 38vh) rotate(540deg); } }

/* the card step: preview of the visitor's card + three short beats */
.qc-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 4px 0 12px; border-radius: 8px; border: 1px solid var(--line2); background: #000; }
.qc-steps { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 16px; padding: 0; list-style: none; counter-reset: qc; color: var(--mute); font-size: 13.5px; }
.qc-steps li { counter-increment: qc; }
.qc-steps li::before { content: '[' counter(qc) '] '; color: var(--accent); font-weight: 700; }
.bd-link { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.bd-link label { display: block; margin: 0 0 8px; color: var(--mute); font-size: 14px; }
