* { box-sizing: border-box; }
body { margin: 0; overflow-x: hidden; background: #050505; color: #e8e3da; font-family: 'IBM Plex Sans', Arial, sans-serif; }
main { width: min(92vw, 90rem); margin: 0 auto; padding: clamp(4rem, 9vw, 8rem) 0 clamp(5rem, 10vw, 9rem); }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, .bkf-drop:focus-within { outline: 2px solid #8f5bd7; outline-offset: 4px; }

.bkf-label { margin: 0 0 1.5rem; color: #a2a7a5; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 72rem; margin: 0; font: 700 clamp(3rem, 6vw, 6.75rem)/1.02 'Cabinet Grotesk', Arial, sans-serif; letter-spacing: -.045em; }
.bkf-intro { max-width: 46ch; margin: 1.5rem 0 0; color: #b4b7b3; font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.bkf-private { display: flex; gap: .5rem; align-items: center; margin: 1.25rem 0 0; color: #e8e3da; font-size: 14px; }
.bkf-private .ph { color: #8f5bd7; font-size: 17px; }

.bkf-tool { margin-top: clamp(2.5rem, 5vw, 4rem); }
.bkf-drop { position: relative; display: flex; flex-direction: column; gap: .5rem; justify-content: center; min-height: clamp(11rem, 22vw, 15rem); padding: 2rem clamp(1.25rem, 4vw, 3rem); border: 1px dashed #3a3b3a; background: #0a0a0a; cursor: pointer; transition: border-color 180ms ease, background 180ms ease; }
.bkf-drop:hover, .bkf-drop.is-over { border-color: #8f5bd7; background: rgba(143, 91, 215, .06); }
.bkf-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bkf-drop-title { font: 700 clamp(1.5rem, 3vw, 2.25rem)/1.1 'Cabinet Grotesk', Arial, sans-serif; letter-spacing: -.02em; }
.bkf-drop-sub { color: #8d9292; font-size: 15px; }
.bkf-pick { color: #e8e3da; text-decoration: underline; text-underline-offset: 3px; }
.is-busy .bkf-drop { pointer-events: none; opacity: .55; }
.is-busy .bkf-status::before { content: ''; display: inline-block; width: .6rem; height: .6rem; margin-right: .6rem; background: #8f5bd7; animation: bkf-pulse 1s ease-in-out infinite alternate; }
@keyframes bkf-pulse { from { opacity: .25; } to { opacity: 1; } }

.bkf-status { min-height: 1.6em; margin: 1rem 0 0; color: #b4b7b3; font-size: 15px; }
.bkf-status.is-error { color: #d98a80; }

.bkf-results { margin-top: 1.5rem; padding-top: 2rem; border-top: 1px solid #2a2b2a; }
.bkf-results h2 { margin: 0; font: 500 clamp(1.5rem, 2.5vw, 2rem)/1.2 'Cabinet Grotesk', Arial, sans-serif; outline: none; }
.bkf-file { margin: .5rem 0 0; color: #8d9292; font: 13px/1.5 'IBM Plex Mono', monospace; overflow-wrap: anywhere; }
.bkf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 2rem 0 0; border-top: 1px solid #2a2b2a; border-left: 1px solid #2a2b2a; }
.bkf-cell { padding: 1.5rem; border-right: 1px solid #2a2b2a; border-bottom: 1px solid #2a2b2a; }
.bkf-cell dt { color: #a2a7a5; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.bkf-cell dd { margin: 0; }
.bkf-value { margin-top: .75rem !important; font: 700 clamp(2.25rem, 5vw, 4rem)/1 'Cabinet Grotesk', Arial, sans-serif; letter-spacing: -.03em; }
.bkf-meta { margin-top: .75rem !important; color: #8d9292; font-size: 14px; line-height: 1.5; }
.bkf-note { margin: 1.25rem 0 0; color: #8d9292; font-size: 14px; }
.bkf-again { min-height: 44px; margin-top: 1.25rem; padding: .7rem 1.1rem; border: 1px solid #8d9292; background: transparent; color: #e8e3da; font: 600 14px 'IBM Plex Sans', Arial, sans-serif; cursor: pointer; }
.bkf-again:hover { border-color: #e8e3da; }

.bkf-next { margin-top: clamp(3rem, 6vw, 5rem); padding: clamp(1.5rem, 4vw, 3rem); background: #0a0a0a; border: 1px solid #2a2b2a; }
.bkf-next h2 { margin: 0; font: 700 clamp(1.75rem, 3.5vw, 3rem)/1.05 'Cabinet Grotesk', Arial, sans-serif; letter-spacing: -.03em; }
.bkf-next p { max-width: 52ch; margin: 1rem 0 0; color: #b4b7b3; font-size: 17px; line-height: 1.6; }
.bkf-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }
.bkf-primary, .bkf-secondary { display: inline-flex; gap: 1.25rem; align-items: center; min-height: 48px; padding: .75rem 1.25rem; text-decoration: none; font-size: 14px; font-weight: 600; transition: background 180ms ease, border-color 180ms ease; }
.bkf-primary { background: #e8e3da; color: #050505; }
.bkf-primary:hover { background: #fff; }
.bkf-secondary { border: 1px solid #8d9292; color: #e8e3da; }
.bkf-secondary:hover { border-color: #e8e3da; }

.bkf-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 5rem) clamp(2rem, 6vw, 7rem); margin-top: clamp(5rem, 10vw, 9rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid #2a2b2a; }
.bkf-copy h2 { margin: 0 0 1rem; font: 700 clamp(1.5rem, 2.6vw, 2.25rem)/1.1 'Cabinet Grotesk', Arial, sans-serif; letter-spacing: -.02em; }
.bkf-copy p { max-width: 62ch; margin: 0 0 1rem; color: #b4b7b3; font-size: 17px; line-height: 1.65; }
.bkf-copy a { text-decoration: underline; text-underline-offset: 3px; }
.bkf-faq { grid-column: 1 / -1; }
.bkf-faq details { border-top: 1px solid #2a2b2a; }
.bkf-faq details:last-child { border-bottom: 1px solid #2a2b2a; }
.bkf-faq summary { display: flex; align-items: center; min-height: 56px; padding: .75rem 0; font-size: 17px; font-weight: 500; cursor: pointer; }
.bkf-faq details p { padding-bottom: .5rem; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 1000; padding: .75rem 1rem; background: #e8e3da; color: #050505; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.5rem 4vw; border-top: 1px solid #2a2b2a; }
footer a { display: inline-flex; align-items: center; min-height: 44px; color: #a2a7a5; font-size: 12px; text-decoration: none; }

@media (max-width: 767px) {
  main { width: auto; margin: 0 1.25rem; }
  .bkf-grid { grid-template-columns: 1fr; }
  .bkf-cell { display: grid; grid-template-columns: 6.5rem 1fr; column-gap: 1rem; align-items: baseline; padding: 1.1rem 1rem; }
  .bkf-cell dt { grid-row: 1 / span 2; }
  .bkf-value { margin-top: 0 !important; font-size: 2rem; }
  .bkf-meta { margin-top: .35rem !important; }
  .bkf-copy { grid-template-columns: 1fr; }
  .bkf-actions a { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .bkf-drop, .bkf-primary, .bkf-secondary { transition: none; }
  .is-busy .bkf-status::before { animation: none; }
}
