/* bills-card.css — Bills Employee card ported from the Claude Design
   handoff (Bills Employee Card.html). All selectors prefixed `bls-`
   and scoped under `.bills-card` so the design's generic `.card`,
   `.visual`, `.stat`, `.cta` etc. don't collide with the rest of the
   marketing site. */

.bills-card {
  --paper: #ffffff;
  --ink: #1f1812;
  --ink-2: rgba(31, 24, 18, 0.62);
  --ink-3: rgba(31, 24, 18, 0.40);
  --line: rgba(31, 24, 18, 0.08);
  --line-strong: rgba(31, 24, 18, 0.14);
  --peach: #b86a38;
  --peach-deep: #8a4d26;
  --peach-soft: #f4dcc4;
  --peach-wash: #faecd9;
  --green: #3f7a57;
  --green-soft: #d9ebde;

  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: 28px;
  box-shadow:
    0 1px 0 rgba(31, 24, 18, 0.03),
    0 0 0 1px var(--line),
    0 30px 60px -36px rgba(31, 24, 18, 0.18);
  overflow: hidden;
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s;
}
.bills-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(31, 24, 18, 0.03),
    0 0 0 1px var(--line-strong),
    0 40px 70px -32px rgba(31, 24, 18, 0.26);
}

.bills-card .bls-italic {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ============================================================== */
/* VISUAL                                                          */
/* ============================================================== */
.bls-visual {
  height: 264px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 65%, var(--peach-wash) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bls-invoice {
  width: 168px;
  height: 200px;
  position: relative;
  transform: rotate(-2.5deg);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
  animation: blsFloat 5s ease-in-out infinite;
}
.bills-card:hover .bls-invoice { transform: rotate(-1deg) translateY(-2px); }

.bls-paper {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(31, 24, 18, 0.06),
    0 14px 28px -16px rgba(31, 24, 18, 0.22),
    0 4px 10px -6px rgba(31, 24, 18, 0.08);
  padding: 16px 16px 14px;
  position: relative;
  overflow: hidden;
}
@keyframes blsFloat {
  0%, 100% { transform: rotate(-2.5deg) translateY(0); }
  50%      { transform: rotate(-2deg)   translateY(-3px); }
}

/* OCR scan beam sweeping top→bottom */
.bls-scan {
  position: absolute;
  top: 0; left: -10%; right: -10%;
  height: 28px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(184, 106, 56, 0.05) 30%,
    rgba(184, 106, 56, 0.18) 50%,
    rgba(184, 106, 56, 0.05) 70%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 4;
  animation: blsScan 6s cubic-bezier(.4, 0, .2, 1) infinite;
  opacity: 0;
}
.bls-scan::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.2px;
  background: var(--peach);
  box-shadow: 0 0 8px rgba(184, 106, 56, 0.6);
}
@keyframes blsScan {
  0%   { transform: translateY(-32px); opacity: 0; }
  8%   { opacity: 1; }
  18%  { transform: translateY(210px); opacity: 1; }
  24%  { opacity: 0; }
  100% { transform: translateY(210px); opacity: 0; }
}

.bls-inv-content {
  position: relative;
  height: 100%;
  transition: opacity .35s ease;
}
.bls-inv-content.swapping { opacity: 0.25; }

.bls-inv-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 9px;
  margin-bottom: 9px;
  border-bottom: 1.2px solid var(--ink);
}
.bls-inv-logo {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--ink);
  line-height: 1;
}
.bls-inv-num {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 7.5px;
  color: var(--ink-3);
  text-align: right;
  letter-spacing: 0.04em;
}

.bls-inv-title {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 9px;
  letter-spacing: -0.01em;
}

.bls-inv-rule {
  height: 1px;
  background: var(--line-strong);
  margin: 5px 0;
}
.bls-inv-rule.short { width: 60%; }
.bls-inv-rule.med   { width: 80%; }

.bls-inv-total {
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1.2px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.bls-inv-total .lbl {
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  font-weight: 500;
  text-transform: uppercase;
}
.bls-inv-total .val {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1;
}

/* AI "coded" badge */
.bls-coded-badge {
  position: absolute;
  bottom: -12px; right: -16px;
  background: var(--ink);
  color: #fff;
  padding: 8px 13px 8px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.02em;
  transform: rotate(3deg) scale(1);
  box-shadow:
    0 10px 22px -10px rgba(31, 24, 18, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  animation: blsBadgeCycle 6s cubic-bezier(.4, 0, .2, 1) infinite;
  z-index: 5;
}
.bls-coded-badge .check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--peach);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}
.bls-coded-badge .label { color: rgba(255, 255, 255, 0.6); }
.bls-coded-badge .code {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9px;
  color: var(--peach-soft);
  letter-spacing: 0.04em;
}
@keyframes blsBadgeCycle {
  0%, 22%  { transform: rotate(3deg) scale(0.4) translate(-12px, -8px); opacity: 0; }
  28%      { transform: rotate(3deg) scale(1.12); opacity: 1; }
  32%      { transform: rotate(3deg) scale(0.96); opacity: 1; }
  36%, 88% { transform: rotate(3deg) scale(1); opacity: 1; }
  96%,100% { transform: rotate(3deg) scale(0.92); opacity: 0; }
}

.bls-spark {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--peach);
  opacity: 0;
  animation: blsSparkle 5s ease-in-out infinite;
}
.bls-spark.s1 { top: 28%;    left: 22%;  animation-delay: 0s; }
.bls-spark.s2 { top: 22%;    right: 24%; animation-delay: 1.6s; }
.bls-spark.s3 { bottom: 30%; right: 18%; animation-delay: 3.2s; }
@keyframes blsSparkle {
  0%, 100% { opacity: 0;   transform: scale(0.5); }
  10%, 30% { opacity: 0.7; transform: scale(1); }
  40%      { opacity: 0;   transform: scale(1.6); }
}

/* ============================================================== */
/* BODY                                                            */
/* ============================================================== */
.bls-body { padding: 24px 24px 22px; flex: 1; display: flex; flex-direction: column; }

.bls-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.bills-card .bls-head-row h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--ink);
  font-family: inherit;
}
.bls-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--green);
  font-weight: 500;
}
.bls-live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: blsLivePulse 1.8s ease-in-out infinite;
}
@keyframes blsLivePulse {
  0%, 100% { opacity: 1;   box-shadow: 0 0 0 0 rgba(63, 122, 87, 0.5); }
  50%      { opacity: 0.6; box-shadow: 0 0 0 5px rgba(63, 122, 87, 0); }
}

.bls-subtitle {
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.bls-subtitle .bls-italic { color: var(--ink); }

.bls-desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 18px;
}
.bls-desc .bls-italic { color: var(--ink); }

.bls-stats {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.bls-stat .num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.018em;
  line-height: 1;
}
.bls-stat .num .small {
  font-size: 13px;
  color: var(--peach);
}
.bls-stat .lbl {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  font-weight: 500;
  margin-top: 6px;
  text-transform: uppercase;
}

.bls-integrations {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px dashed var(--line);
}
.bls-integrations-lbl {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  font-weight: 500;
  text-transform: uppercase;
}
.bls-integrations-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.bls-int-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-2);
}
.bls-int {
  width: 18px; height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bls-int svg { width: 100%; height: 100%; display: block; }

.bls-cta-row {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
}
.bls-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 0 10px 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 16px 28px -18px rgba(217, 119, 6, 0.8);
}
.bills-card:hover .bls-cta {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px -18px rgba(217, 119, 6, 0.9);
}
.bls-cta .bls-italic { color: rgba(255, 255, 255, 0.8); }
.bls-cta-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.bills-card:hover .bls-cta-arrow { transform: translateX(2px); }

@media (prefers-reduced-motion: reduce) {
  .bls-invoice,
  .bls-scan,
  .bls-coded-badge,
  .bls-spark,
  .bls-live::before {
    animation: none !important;
  }
  .bls-invoice  { transform: rotate(-2.5deg); }
  .bls-coded-badge { transform: rotate(3deg) scale(1); opacity: 1; }
}
