/* Get It Jumping — standard US business card: 3.5" × 2" (trim size) */
@page {
  size: 3.5in 2in;
  margin: 0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

body {
  background: #64748b;
}

.preview-banner {
  display: none;
}

.card {
  width: 3.5in;
  height: 2in;
  overflow: hidden;
  position: relative;
  color: #fff;
  background: linear-gradient(135deg, #4c1d95 0%, #1e1b4b 55%, #0e7490 100%);
  padding: 0.15in 0.17in;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  gap: 0.06in;
}

.card__brand {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 0.09in;
}

.card__logo {
  width: 0.42in;
  height: 0.42in;
  border-radius: 0.08in;
  border: 2px solid #fbbf24;
}

.card__name {
  font-size: 12.5pt;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
}

.card__tag {
  font-size: 6pt;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f472b6;
  margin-top: 2px;
}

.card__qr {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: start;
  width: 0.78in;
  height: 0.78in;
  border-radius: 6px;
  border: 2px solid #fbbf24;
  background: #fff;
  padding: 2px;
}

.card__main {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.04in;
}

.card__rates {
  font-size: 9.5pt;
  font-weight: 900;
  color: #fbbf24;
}

.card__line {
  font-size: 7pt;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.35;
}

.card__line strong {
  color: #fff;
  font-weight: 800;
}

.card__footer {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 0.05in;
}

.card__site {
  font-size: 9.5pt;
  font-weight: 900;
  color: #fff;
}

.card__email {
  font-size: 6.5pt;
  font-weight: 700;
  color: #38bdf8;
}

.card__badge {
  font-size: 6pt;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #fbbf24;
  color: #78350f;
  padding: 2px 6px;
  border-radius: 999px;
}

.size-label {
  display: none;
}

/* Screen: show card large (prints at real 3.5×2) */
@media screen {
  html,
  body {
    width: auto;
    height: auto;
    min-height: 100vh;
  }

  body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    gap: 16px;
  }

  .preview-banner {
    display: block;
    max-width: 36rem;
    text-align: center;
    color: #f8fafc;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .preview-banner strong {
    color: #fbbf24;
  }

  .card-wrap {
    position: relative;
    width: min(1050px, 92vw);
    aspect-ratio: 3.5 / 2;
  }

  .card {
    width: 100%;
    height: 100%;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
  }

  .size-label {
    display: block;
    margin-top: 8px;
    text-align: center;
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 600;
  }
}

@media print {
  html,
  body {
    width: 3.5in;
    height: 2in;
  }

  body {
    background: none;
    padding: 0;
    display: block;
  }

  .preview-banner,
  .size-label {
    display: none !important;
  }

  .card-wrap {
    width: 3.5in;
    height: 2in;
    aspect-ratio: auto;
  }

  .card {
    border-radius: 0;
    box-shadow: none;
  }
}
