/* ============================================================
   app-mock.css — self-contained HTML/CSS recreations of the
   Covly app screens shown inside the .phone mockups on the
   landing page. These replace the missing assets/screens/*.png.
   The .phone frame (covly.css) draws the bezel + notch and clips
   to a 34px radius; each .scr fills that inner area.
   ============================================================ */

.scr {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: #fff;
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.scr * { box-sizing: border-box; }

/* ---- Status bar ---- */
.scr .statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px 2px;   /* clears the Dynamic Island so time/icons sit level with it */
  font-size: 10px;
  font-weight: 600;
  color: var(--ink);
}
.scr .statusbar .sb-icons { display: flex; gap: 6px; color: var(--ink-2); font-size: 9px; }

/* ---- Generic screen header ---- */
.scr .scr-head {
  padding: 4px 14px 10px;
}
.scr .scr-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  line-height: 1.15;
}
.scr .scr-sub { color: var(--muted); font-size: 10px; margin-top: 1px; }

.scr .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 13px;
  flex: 0 0 30px;
}

/* ---- Scrollable body ---- */
.scr .scr-body { flex: 1 1 auto; overflow: hidden; padding: 0 14px; }

/* ---- Search field ---- */
.scr .search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 11px;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 10px;
}
.scr .search i { font-size: 10px; }

/* ---- Filter chips ---- */
.scr .chips {
  display: flex; gap: 6px;
  overflow: hidden; white-space: nowrap;
  margin-bottom: 12px;
}
.scr .chip {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-2);
  background: #fff;
}
.scr .chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---- Card list rows ---- */
.scr .card-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.scr .card-logo {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  color: #fff; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 12px;
  flex: 0 0 34px;
}
.scr .card-info { flex: 1 1 auto; min-width: 0; }
.scr .card-info .co { font-weight: 600; font-size: 11.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr .card-info .pr { color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr .card-info .ph { color: var(--faint); font-size: 10px; }
.scr .card-time { color: var(--faint); font-size: 9px; flex: 0 0 auto; align-self: flex-start; padding-top: 2px; }

/* ---- Floating scan button ---- */
.scr .fab-scan {
  position: absolute; right: 14px; bottom: 52px;
  background: var(--navy); color: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 11px; font-weight: 600;
  display: flex; align-items: center; gap: 7px;
  box-shadow: 0 8px 18px rgba(36,38,92,.28);
  z-index: 3;
}

/* ---- Bottom tab bar ---- */
.scr .tabbar {
  display: flex;
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 6px 4px 8px;
}
.scr .tab {
  flex: 1 1 0;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--faint);
  font-size: 8.5px;
}
.scr .tab i { font-size: 14px; }
.scr .tab.active { color: var(--navy); }

/* ============================================================
   Screen 2 — Card detail
   ============================================================ */
.scr .detail-head {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px 10px;
}
.scr .detail-head .ico-btn { color: var(--ink-2); font-size: 13px; width: 16px; text-align: center; }
.scr .detail-head .dh-title { flex: 1 1 auto; text-align: center; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 13px; }

.scr .biz-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  position: relative;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}
.scr .complete-pill {
  position: absolute; top: 10px; left: 10px;
  background: var(--success-soft); color: var(--success);
  font-size: 8px; font-weight: 700; letter-spacing: .3px;
  padding: 3px 7px; border-radius: 999px;
}
.scr .biz-logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--navy));
  color: #fff; display: grid; place-items: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 14px;
  margin: 16px 0 8px;
}
.scr .biz-name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .3px; }
.scr .biz-role { color: var(--muted); font-size: 10px; margin-bottom: 9px; }
.scr .biz-line { display: flex; align-items: center; gap: 9px; margin-top: 7px; font-size: 10px; color: var(--ink-2); }
.scr .biz-line .bi {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fbeecb; color: #b8860b;
  display: grid; place-items: center; font-size: 9px;
  flex: 0 0 20px;
}
.scr .biz-line span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.scr .biz-foot { margin-bottom: 12px; }
.scr .biz-foot .bf-name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 13px; }
.scr .biz-foot .bf-web { color: var(--brand); font-size: 10px; }
.scr .tag-chip {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px dashed var(--border); border-radius: 999px;
  padding: 3px 9px; font-size: 9px; color: var(--muted);
  margin-top: 6px;
}

.scr .section-label {
  font-size: 8.5px; font-weight: 700; letter-spacing: .6px;
  color: var(--faint); text-transform: uppercase;
  margin: 4px 0 7px;
}
.scr .contact-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px;
  box-shadow: var(--shadow-sm);
}
.scr .contact-top { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.scr .contact-top .avatar { width: 28px; height: 28px; flex: 0 0 28px; font-size: 11px; }
.scr .contact-top .cn { font-weight: 600; font-size: 11.5px; }
.scr .contact-line { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 10px; color: var(--ink-2); border-top: 1px solid var(--border); }
.scr .contact-line i { color: var(--muted); width: 12px; text-align: center; font-size: 10px; }
.scr .primary-badge {
  margin-left: auto;
  background: var(--brand-soft); color: var(--brand);
  font-size: 7.5px; font-weight: 700; letter-spacing: .3px;
  padding: 2px 6px; border-radius: 999px;
}
.scr .action-row {
  display: flex; margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--border);
}
.scr .action {
  flex: 1 1 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 8.5px; color: var(--ink-2);
}
.scr .action i {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface); color: var(--ink-2);
  display: grid; place-items: center; font-size: 11px;
}
.scr .action.green i { background: var(--success-soft); color: var(--success); }
.scr .action.green { color: var(--success); }

/* ============================================================
   Screen 3 — Settings
   ============================================================ */
.scr .settings-title {
  text-align: center;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15px;
  padding: 6px 14px 12px;
}
.scr .set-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.scr .set-ico {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; font-size: 12px;
  flex: 0 0 28px;
}
.scr .set-ico.green { background: var(--success-soft); color: var(--success); }
.scr .set-ico.brand { background: var(--brand-soft); color: var(--brand); }
.scr .set-ico.navy { background: #e6e7f2; color: var(--navy); }
.scr .set-txt { flex: 1 1 auto; min-width: 0; }
.scr .set-txt .st { font-weight: 600; font-size: 11px; color: var(--ink); }
.scr .set-txt .ss { color: var(--muted); font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr .set-chevron { color: var(--faint); font-size: 10px; flex: 0 0 auto; }

.scr .seg {
  display: flex; gap: 3px; flex: 0 0 auto;
  background: var(--surface); border-radius: 8px; padding: 2px;
}
.scr .seg span {
  font-size: 8.5px; padding: 3px 7px; border-radius: 6px;
  color: var(--muted); font-weight: 500;
}
.scr .seg span.active { background: var(--navy); color: #fff; }
